WAS Stape MCP

WAS Stape MCP

Enables AI assistants to manage Stape.io sGTM containers, CAPI Gateways, custom domains, and power-ups via 10 tools.

Category
访问服务器

README

WAS Stape MCP

Production-quality shareable Model Context Protocol (MCP) server for Stape.io — standard stdio transport, zero-server setup, interactive credential CLI, cross-platform support.

Exposes 10 tools to AI assistants (Claude, Cursor, Antigravity, VS Code, Zed) for automating server-side Google Tag Manager (sGTM) containers, Conversions API (CAPI) Gateways, custom domains, and power-ups.

Prerequisites

  • Node.js 18+
  • A Stape.io account (https://stape.io)
  • Stape Account API Key (Account settings -> API Keys)

Quick start — 3 steps

Step 1 — Get your Stape API Key

  1. Log into your Stape.io account.
  2. Click your account name at the top right -> Account settings.
  3. Go to API Keys -> click Create API key.
  4. Copy your key securely.

Step 2 — Connect credentials

Run the interactive setup command:

npx -y github:was-member-keramat/was-stape-mcp auth

Credentials are validated against Stape.io and stored locally at ~/.was-stape-mcp/config.json with secure file permissions (0600).

Step 3 — Add to your AI client configuration

Add the following to your AI client's MCP configuration (mcpServers section):

Claude Desktop / Cursor / Antigravity Config (claude_desktop_config.json or mcp_config.json)

{
  "mcpServers": {
    "WAS Stape MCP": {
      "command": "npx",
      "args": ["-y", "github:was-member-keramat/was-stape-mcp"]
    }
  }
}

What you can ask the AI

Here are example prompts you can use with your AI coding assistant:

  • Discovery: "List all my sGTM containers on Stape."
  • Inspection: "Show details for container ID cnt_12345."
  • Domains: "What custom domains are configured for my container?"
  • Provisioning: "Create a new sGTM container named my-ecommerce-sgtm in the us region."
  • Logs & Traffic: "Show me request statistics and bandwidth usage for the past 7 days."
  • Power-ups: "Which power-ups are currently enabled for container cnt_12345?"
  • Raw API: "Run a GET call to /v1/container using stape_api."

All tools (10 total)

Category Tool Name Description
Account stape_get_account Get account details, subscription plan, and usage stats
Containers stape_list_containers List sGTM and CAPI Gateway containers
Containers stape_get_container Get details for a specific container by ID
Containers stape_create_container Create a new sGTM or CAPI container
Containers stape_delete_container Delete or cancel a container by ID
Domains stape_list_domains List custom domains configured for a container
Domains stape_add_domain Add a custom domain to an sGTM container
Analytics & Logs stape_get_container_logs Get request statistics and traffic bandwidth
Power-ups stape_list_powerups List power-ups enabled on a container
Universal stape_api Raw API caller escape hatch (method, path, body)

CLI commands

Command Usage
npx -y github:was-member-keramat/was-stape-mcp Start the MCP server (used by AI tools via stdio)
npx -y github:was-member-keramat/was-stape-mcp auth Connect / re-connect Stape API Key
npx -y github:was-member-keramat/was-stape-mcp status Display saved config location and timestamp
npx -y github:was-member-keramat/was-stape-mcp logout Delete saved local credentials
npx -y github:was-member-keramat/was-stape-mcp help Show CLI help text

Multi-account setup

You can override local config with environment variables (STAPE_API_KEY, STAPE_BASE_URL). This enables configuring multiple Stape accounts in your AI client:

{
  "mcpServers": {
    "Stape Main": {
      "command": "npx",
      "args": ["-y", "github:was-member-keramat/was-stape-mcp"],
      "env": {
        "STAPE_API_KEY": "key_main_account_token"
      }
    },
    "Stape Client B": {
      "command": "npx",
      "args": ["-y", "github:was-member-keramat/was-stape-mcp"],
      "env": {
        "STAPE_API_KEY": "key_client_b_token"
      }
    }
  }
}

Troubleshooting

Windows Script Execution Error

If PowerShell blocks script execution:

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Windows npx Cache Issues

If updates aren't pulled automatically on Windows:

Remove-Item -Recurse -Force "$env:LOCALAPPDATA\npm-cache" -ErrorAction SilentlyContinue
npm cache clean --force

Invalid API Key Errors

Ensure you created an Account API Key (Account settings -> API Keys) and not a restricted single-container key unless you are targeting specific container scope.


License

MIT License. Free to share, remix, redistribute. Author: was-member-keramat.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选