Model Context Protocol (MCP) server for Swell e-commerce platform integration with AI assistants
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add swell --env SWELL_STORE_ID='<SWELL_STORE_ID>' --env SWELL_SECRET_KEY='<SWELL_SECRET_KEY>' -- npx -y swell-mcp~/.codex/config.toml
[mcp_servers.swell]
command = "npx"
args = ["-y", "swell-mcp"]
env = { SWELL_STORE_ID = "<SWELL_STORE_ID>", SWELL_SECRET_KEY = "<SWELL_SECRET_KEY>" }
# codex mcp add swell --env SWELL_STORE_ID='<SWELL_STORE_ID>' --env SWELL_SECRET_KEY='<SWELL_SECRET_KEY>' -- npx -y swell-mcp~/.cursor/mcp.json
{
"mcpServers": {
"swell": {
"command": "npx",
"args": [
"-y",
"swell-mcp"
],
"env": {
"SWELL_STORE_ID": "<SWELL_STORE_ID>",
"SWELL_SECRET_KEY": "<SWELL_SECRET_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"swell": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"swell-mcp"
],
"env": {
"SWELL_STORE_ID": "<SWELL_STORE_ID>",
"SWELL_SECRET_KEY": "<SWELL_SECRET_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"swell": {
"command": "npx",
"args": [
"-y",
"swell-mcp"
],
"env": {
"SWELL_STORE_ID": "<SWELL_STORE_ID>",
"SWELL_SECRET_KEY": "<SWELL_SECRET_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"swell": {
"command": "npx",
"args": [
"-y",
"swell-mcp"
],
"env": {
"SWELL_STORE_ID": "<SWELL_STORE_ID>",
"SWELL_SECRET_KEY": "<SWELL_SECRET_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"swell": {
"command": "npx",
"args": [
"-y",
"swell-mcp"
],
"env": {
"SWELL_STORE_ID": "<SWELL_STORE_ID>",
"SWELL_SECRET_KEY": "<SWELL_SECRET_KEY>"
}
}
}
}需要的环境变量
SWELL_STORE_IDSWELL_SECRET_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。