AGP MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGP_CODEMODE | No | Set to 1 to enable ultra-compact 4-tool Code Mode (whoami, docs, search, execute). Also enabled via --codemode (stdio) or ?codemode=true (Streamable HTTP). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
AGP v2.0 Inter-Agent Mesh (Standard Serverless Stdio MCP + Optional Monitor UI). Runs silently in background without needing any HTTP server open. Use team_* tools for Agent Teams (team_create, team_join, team_spawn, team_send, team_inbox, team_task, team_list, team_shutdown) and agp_* tools for cross-session collaboration (agp_status, agp_register, agp_discover, agp_send, agp_ask, agp_inbox, agp_ack, agp_task, agp_lease, agp_artifact_put/get/list, agp_trace_inspect). Always check delivery.will_auto_receive on send and use zero-token agp.listen to stay reachable while idle.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/tasks": {
"version": "1.0"
},
"io.modelcontextprotocol/skills": {}
} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| whoamiA | Return the stable AGP agent identity bound to this MCP connection. Takes no arguments. The |
| docsA | Search built-in AGP v2.1 documentation: protocol contracts, error codes, two-way wakeup patterns ( |
| agp_statusB | Inspect your bound AGP identity, unread AGP & Team message counts, held file leases, open circuit breakers, active async tasks, zero-token listener command, and optional Monitor UI status. Optionally reset a recovered circuit breaker. |
| agp_registerB | Register or update this AI session's Agent Card (display_name, role, owned_paths, capabilities, channels, wakeup_mode, status) so peers can discover and route messages to it. |
| agp_unregisterA | Gracefully sign off ( |
| agp_discoverA | Discover other AI sessions currently active or recently seen on the AGP mesh. Filter by role, capability, workspace/path ownership, surface, search query, or online status. Shows whether each peer has an active zero-token listener ( |
| agp_sendA | Send an AGP structured message to another AI session or channel ( |
| agp_askB | Send a structured request to a peer AND wait in ONE tool call for the correlated reply ( |
| agp_inboxA | Read or peek incoming AGP messages addressed to this AI session (and subscribed channels). Supports filtering by correlation_id, trace_id, msg_type, priority, and bounded cross-process long-polling ( |
| agp_ackB | Acknowledge, accept, reject, complete, or mark failed an incoming AGP message. |
| agp_taskA | Manage durable async tasks ( |
| agp_leaseB | Acquire, renew, release, check (dry-run), force_release, or list workspace file/path leases with monotonic |
| agp_artifact_putA | Store a large diff, log, OpenAPI spec, or code file in the local SHA-256 Artifact Store (with DLP secret redaction) and receive a pass-by-reference descriptor to attach to |
| agp_artifact_getA | Retrieve a SHA-256 verified artifact by artifact_id, supporting |
| agp_artifact_listC | List stored artifacts in the local AGP Artifact Store (optionally filtered by kind or owner_uri). |
| agp_trace_inspectA | Inspect the full multi-hop distributed trace spans and messages for a |
| team_listA | List all AGP Agent Teams or inspect a specific team's roster, live member statuses, unread mailbox counts, zero-token listener commands, and task board counts. |
| team_createB | Create a Claude-style AGY Agent Team under ~/.gemini/agp/teams// with a shared task list (tasks.json), team roster (config.json), and per-member mailboxes (inboxes/). |
| team_joinA | Attach an existing live AGY session (by conversation_id) into a Team roster AND immediately open its receive/reply channel (sends structured Team Welcome handshake with exact |
| team_spawnB | Spawn a real autonomous AGY teammate (e.g. 'backend', 'frontend', 'reviewer') in a team. Runs via self-terminating detached worker with persistent conversation_id, automatically wakes on |
| team_sendA | Send a direct peer-to-peer message to a teammate by short name (or 'all' to broadcast). Writes to ~/.gemini/agp/teams//inboxes/.json, mirrors to live session hooks/listeners, auto-wakes managed teammates, and returns honest |
| team_inboxA | Read or peek your team mailbox (~/.gemini/agp/teams//inboxes/.json). Supports cross-process fast wait ( |
| team_taskA | Manage the team's cross-process atomic Shared Task List ( |
| team_shutdownB | Gracefully shut down a spawned teammate (or pass |
| team_deleteA | Shut down all teammates and delete a finished team's state directory cleanly. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| agp_coordinate_team | Set up and coordinate a multi-agent team (shared task DAG, join/spawn teammates, two-way messaging, clean shutdown). |
| agp_delegate_task | Delegate a contract-first task.request to a peer agent with lease discipline, artifact handoff, and zero-token-waste waiting. |
| agp_code_review_loop | Run an Evaluator-Optimizer cross-agent code review loop (max 3 rounds) with artifact diff & HITL escalation. |
| agp_git_handoff | Prepare a safe Git worktree/branch handoff (`sync.git_handoff`) with SHA-256 diff artifact and test evidence. |
| agp_conflict_resolution | Resolve a workspace file lease conflict or contradictory results between peer agents via arbitration or HITL. |
| agp_debug_trace | Perform 5-step distributed trace root-cause analysis across multi-hop AGP interactions. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| AGY Live Monitor Snapshot | Current active AI sessions, token counts, costs, elapsed times, teams, leases, and AGP messages. |
| Active AGP Agent Cards | Registered Agent Cards, capabilities, owned paths, and zero-token listener status. |
| AGP Agent Teams & Shared Tasks | All local Agent Teams with rosters, task boards, and recent team chat. |
| Active Workspace File Leases | Currently held exclusive/shared workspace file leases and monotonic fencing tokens. |
| AGP Circuit Breakers | Health and cooldown status of per-target AGP circuit breakers. |
| Durable Async Tasks | MCP io.modelcontextprotocol/tasks and A2A v1.0 durable task state records. |
| agp-protocol | Serverless AGP v2.1 inter-agent mesh, Claude-style Agent Teams, workspace file leases, SHA-256 artifacts, and distributed tracing. |
| two-way-wakeup | Zero-token reactive wakeup (`agp-listen`), `team_join` handshake, and `agp_ask` anti-token-burn patterns. |
TDQS
Scored across 25 tools
The agp_ vs team_ prefix split is real and documented, but three tool pairs overlap heavily: agp_send/team_send, agp_inbox/team_inbox, and agp_task/team_task all address 'messaging or tasks' with only scope differences that an agent must infer. Multi-action tools like agp_lease and agp_task (list/get/wait/update/cancel) further blur which call to reach for, though descriptions do help separate them.
Most tools follow prefix_verb_noun (agp_register, team_create, team_send), but there are visible deviations: resource-first ordering in agp_artifact_get/put/list and agp_trace_inspect, plus two unprefixed bare names (whoami, docs). The patterns are readable but not uniform.
At 25 tools the surface is at the heavy end, spanning mesh identity, messaging, artifacts, tasks, leases, tracing, and teams. Domain breadth justifies many of them, but several multi-action tools bundle 5-6 operations each, so the count sits right at the borderline of feeling overloaded.
Coverage is broad and lifecycle-complete: register/unregister, send/inbox/ack/ask, artifacts put/get/list, tasks, leases, traces, and full team create/join/spawn/send/shutdown/delete. Minor gaps remain, such as no team_leave, no channel subscribe/unsubscribe despite channels being a routing concept, and no artifact delete.