Package Exports
- @shopify/consumer-agent-mcp
- @shopify/consumer-agent-mcp/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@shopify/consumer-agent-mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Shopify Consumer Agent MCP Bridge
This repository acts as a stdio bridge to facilitate communication between LLM agents and MCP (Model Context Protocol) servers.
This bridge supports both unauthenticated servers and servers protected by Basic Authentication or Bearer Tokens.
Configuration
To set up the MCP servers locally, use the following configuration file. Below, you will find examples for each type of authentication supported: unauthenticated, Basic Authentication, and Bearer Token.
- Unauthenticated Server: No additional credentials are required. Use the - unauthedconfiguration as shown in the example.
- Basic Authentication: Provide your username and password in the - USERNAMEand- PASSWORDfields of the- basic-authconfiguration.
- Bearer Token Authentication: Supply your authentication token in the - BEARER_TOKENfield of the- bearer-authconfiguration.
- Custom Headers: Add any custom headers by using the - --headercommand line argument in the format- --header "Name: Value". Multiple headers can be specified by repeating the- --headerargument. Copy and customize the JSON configuration below to match your setup. Replace placeholder values like- your_username,- your_password, and- your_auth_tokenwith your actual credentials.
{
  "mcpServers": {
    "unauthed": {
      "command": "npx",
      "args": ["-y", "@shopify/consumer-agent-mcp@latest"],
      "env": {
        "MCP_SERVER": "https://unauthed-mcp-server.ai"
      }
    },
    "basic-auth": {
      "command": "npx",
      "args": ["-y", "@shopify/consumer-agent-mcp@latest"],
      "env": {
        "MCP_SERVER": "https://basic-auth-mcp-server.ai",
        "USERNAME": "your_username",
        "PASSWORD": "your_password"
      }
    },
    "bearer-auth": {
      "command": "npx",
      "args": ["-y", "@shopify/consumer-agent-mcp@latest"],
      "env": {
        "MCP_SERVER": "https://bearer-auth.mcp-server.ai",
        "BEARER_TOKEN": "your_auth_token"
      }
    }
  }
}