# Magento Connect

> Test Magento connectivity and show store configuration. Use when setting up or verifying the Magento connection.

- **Type:** Skill
- **Install:** `agentstack add skill-magendooro-magento-claude-skills-magento-connect`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [magendooro](https://agentstack.voostack.com/s/magendooro)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [magendooro](https://github.com/magendooro)
- **Source:** https://github.com/magendooro/magento-claude-skills/tree/master/.claude/skills/magento-connect

## Install

```sh
agentstack add skill-magendooro-magento-claude-skills-magento-connect
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Magento Connection Check

Test connectivity to a Magento 2 instance and display store configuration.

## Required Environment Variables

| Variable | Purpose | Example |
|----------|---------|---------|
| `MAGENTO_BASE_URL` | Magento base URL (no trailing slash) | `https://m248.magendoo.ro` |
| `MAGENTO_ADMIN_TOKEN` | Integration Bearer token for admin REST API | `53u9t46do...` |
| `MAGENTO_STORE_CODE` | Store view code (optional, defaults to `default`) | `default` |

## Step 1: Check environment variables

Verify all required env vars are set. If missing, tell the user what to set and how:
```bash
echo "MAGENTO_BASE_URL=${MAGENTO_BASE_URL:-NOT SET}"
echo "MAGENTO_ADMIN_TOKEN=${MAGENTO_ADMIN_TOKEN:+SET (${#MAGENTO_ADMIN_TOKEN} chars)}"
echo "MAGENTO_STORE_CODE=${MAGENTO_STORE_CODE:-default}"
```

If `MAGENTO_BASE_URL` is not set, stop and ask the user to set it:
```bash
export MAGENTO_BASE_URL=https://your-store.example.com
export MAGENTO_ADMIN_TOKEN=your-token-here
```

## Step 2: Test GraphQL (storefront)

```bash
curl -s --max-time 10 -w "\nHTTP_STATUS:%{http_code}" \
  -X POST "${MAGENTO_BASE_URL}/graphql" \
  -H "Content-Type: application/json" \
  -H "Store: ${MAGENTO_STORE_CODE:-default}" \
  -d '{"query":"{ storeConfig { store_code store_name locale base_currency_code default_display_currency_code timezone base_url base_media_url } }"}'
```

Parse the JSON response. Show: store name, currency, locale, timezone, base URL.

## Step 3: Test REST (admin)

```bash
curl -s --max-time 10 -g -w "\nHTTP_STATUS:%{http_code}" \
  "${MAGENTO_BASE_URL}/rest/${MAGENTO_STORE_CODE:-default}/V1/store/storeConfigs" \
  -H "Authorization: Bearer ${MAGENTO_ADMIN_TOKEN}" \
  -H "Content-Type: application/json"
```

If HTTP 200: admin token is valid. Show store view count.
If HTTP 401: token is invalid or `oauth/consumer/enable_integration_as_bearer` is not set to Yes.

## Step 4: Summary

Report connectivity status:
- GraphQL: OK/FAIL
- REST Admin: OK/FAIL
- Store: name, code, currency, timezone
- Base URL confirmed

## User Request

$ARGUMENTS

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [magendooro](https://github.com/magendooro)
- **Source:** [magendooro/magento-claude-skills](https://github.com/magendooro/magento-claude-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-magendooro-magento-claude-skills-magento-connect
- Seller: https://agentstack.voostack.com/s/magendooro
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
