Open-source MCP server template for e-commerce storefronts — serve AI agents from your own domain, with public/gated tool separation and agent discovery built in
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add storefront --env MCP_SECRET='<MCP_SECRET>' -- npx -y storefront-mcp~/.codex/config.toml
[mcp_servers.storefront]
command = "npx"
args = ["-y", "storefront-mcp"]
env = { MCP_SECRET = "<MCP_SECRET>" }
# codex mcp add storefront --env MCP_SECRET='<MCP_SECRET>' -- npx -y storefront-mcp~/.cursor/mcp.json
{
"mcpServers": {
"storefront": {
"command": "npx",
"args": [
"-y",
"storefront-mcp"
],
"env": {
"MCP_SECRET": "<MCP_SECRET>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"storefront": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"storefront-mcp"
],
"env": {
"MCP_SECRET": "<MCP_SECRET>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"storefront": {
"command": "npx",
"args": [
"-y",
"storefront-mcp"
],
"env": {
"MCP_SECRET": "<MCP_SECRET>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"storefront": {
"command": "npx",
"args": [
"-y",
"storefront-mcp"
],
"env": {
"MCP_SECRET": "<MCP_SECRET>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"storefront": {
"command": "npx",
"args": [
"-y",
"storefront-mcp"
],
"env": {
"MCP_SECRET": "<MCP_SECRET>"
}
}
}
}需要的环境变量
MCP_SECRET
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。