Skip to main content
Agent Manager implements the Model Context Protocol (MCP) as a server. This means every agent you’ve registered in Agent Manager is automatically exposed as an MCP tool, accessible from any MCP-compatible client — including Claude Desktop, Cursor, and other AI-enabled IDEs.

How it works

When an MCP client connects to Agent Manager, it receives a list of available tools. Each registered agent appears as a callable tool named run_{agentId}. Clients invoke agents using standard JSON-RPC 2.0 calls over an SSE connection.

Connecting an MCP client

1

Obtain a Bearer token

Authenticate via POST /api/auth/login and copy the returned token value. See Authenticating Requests for details.
2

Configure your MCP client

Point your client at the Agent Manager SSE endpoint and include your token in the headers.Claude Desktop (claude_desktop_config.json):
Cursor (MCP server settings):
3

Verify the connection

After saving the configuration, your MCP client should show Agent Manager in its server list. You’ll see tools like list_agents and run_finance_agent (one run_ tool per registered agent).

MCP endpoints

Handshake

When a client connects to GET /mcp/sse, Agent Manager sends an endpoint event containing the session-scoped message URL:
The client then uses this URL for all subsequent POST /mcp/messages calls within the session.

JSON-RPC methods

Agent Manager handles the following MCP JSON-RPC methods:

Available tools

Once connected, your client sees two categories of tools:
A system tool that returns the list of agents registered in Agent Manager. Useful for discovery.
One tool per registered agent. Each tool accepts a message parameter — the prompt to send to the agent — and returns the agent’s response as text.

Authentication for MCP

MCP connections follow the same authentication model as the REST API. Include your Authorization: Bearer {token} header in the MCP client’s header configuration. Connections without a valid token are rejected.
MCP client tokens have the same expiry as regular JWTs. If your client starts receiving authentication errors after extended use, re-authenticate via POST /api/auth/login and update the token in your client’s MCP server configuration.

Protocol version

Agent Manager implements MCP protocol version 0.1.0. It declares tools as its capability set — each registered agent is exposed as a tool that any compliant client can discover and invoke.