Agent Gateway MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGENT_GATEWAY_PI_MODEL | No | Default Pi model; defaults to 'opencode-go/deepseek-v4-flash'. | opencode-go/deepseek-v4-flash |
| AGENT_GATEWAY_PI_COMMAND | No | Executable for PI provider. | |
| AGENT_GATEWAY_CODEX_MODEL | No | Default Codex model. | |
| AGENT_GATEWAY_PI_PROVIDER | No | Default Pi provider; defaults to 'opencode-go'. | opencode-go |
| AGENT_GATEWAY_KIMI_COMMAND | No | Executable for KIMI provider. | |
| AGENT_GATEWAY_CODEX_COMMAND | No | Executable for CODEX provider. | |
| AGENT_GATEWAY_ZCODE_COMMAND | No | Executable for ZCODE provider. Overrides auto-detection. | |
| AGENT_GATEWAY_CLAUDE_COMMAND | No | Executable for CLAUDE provider. | |
| AGENT_GATEWAY_PI_API_KEY_ENV | No | Windows user-environment key read for Pi; defaults to 'OPENCODE_API_KEY'. | OPENCODE_API_KEY |
| AGENT_GATEWAY_PI_PREFIX_ARGS | No | JSON array inserted before normal CLI arguments for PI provider. | |
| AGENT_GATEWAY_CLAUDE_CLEAN_ENV | No | When set to '1', removes Anthropic endpoint overrides only for the Claude child process. | |
| AGENT_GATEWAY_KIMI_PREFIX_ARGS | No | JSON array inserted before normal CLI arguments for KIMI provider. | |
| AGENT_GATEWAY_CODEX_PREFIX_ARGS | No | JSON array inserted before normal CLI arguments for CODEX provider. | |
| AGENT_GATEWAY_ZCODE_PREFIX_ARGS | No | JSON array inserted before normal CLI arguments for ZCODE provider. | |
| AGENT_GATEWAY_CLAUDE_PREFIX_ARGS | No | JSON array inserted before normal CLI arguments for CLAUDE provider. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| agents_listA | List supported local CLI agents and their structured transport, resume, and permission capabilities. |
| agents_spawnA | Start a local CLI agent asynchronously and return a task id immediately. Use read-only unless edits are required. Parallel write tasks must use independent Git worktrees. |
| agents_resumeA | Resume a completed CLI agent session as a new asynchronous task. Never use this to inject into a session still open in an interactive TUI. |
| agents_statusB | Return the current state of an asynchronous agent task. |
| agents_waitA | Wait for an agent task to reach a terminal state, bounded by wait_seconds. |
| agents_logsA | Read agent stdout/stderr from a character cursor. Pass the returned cursor to fetch only new output. |
| agents_cancelA | Cancel a running agent task. This does not attach to or modify unrelated interactive TUI sessions. |
| kimi_statusA | Check whether the local Kimi Code CLI is callable and report its version. |
| kimi_runA | Start a new non-interactive Kimi Code agent session in a working directory. The Kimi CLI may read, edit, and run commands in that directory. Scope the prompt and work_dir carefully. |
| kimi_resumeA | Resume a Kimi Code session. Do not resume a session that is still open in an interactive TUI, because two writers can race on the same session. |
| kimi_list_sessionsA | List local Kimi Code sessions, optionally filtered by working directory. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kvxw1105/agent-gateway-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server