expose-agentkit-mcp
Installation
SKILL.md
Expose AgentKit over MCP
Create an AgentKit MCP config, mint a per-run session token, and make one Streamable HTTP client call. Then stop.
Guardrails
- MUST use Streamable HTTP. stdio and SSE are not supported.
- MUST pass the exact dashboard Connection Name (
connection_name). Never invent a slug. Never use aconnectorfield for that value. - MUST reuse one static
mcp_server_url. Mint a session token per identifier and per run withcreate_session_token.
Gotchas
- Read SDK credentials from
SCALEKIT_ENVIRONMENT_URL,SCALEKIT_CLIENT_ID, andSCALEKIT_CLIENT_SECRET. Some samples useSCALEKIT_ENV_URL; useSCALEKIT_ENVIRONMENT_URLhere. Do not prependhttps://if the value already has a scheme. - A connection is dashboard connector config. A connected account is one user authorized on that connection. This skill authorizes through
list_mcp_connected_accountsauth links, notintegrate-agentkitapp-code token calls. create_session_tokenis remint. Call it again before the next run. Do not reuse a token from a previous session.- Gmail can use Connection Name
gmailwhen the dashboard has no Gmail row. Every other connector must already have a dashboard connection. Record that name exactly. - Default language is Python. The Node SDK has no MCP config API. Stay on Python.
- Look up tool names with
discover-connectors. Do not copy connector pages into the repo.