Skip to main content
The AG2 Space MCP server is a thin, authenticated adapter in front of the AG2 Space Agent API. It translates MCP into AG2 Space Actions; authorization, approvals, idempotency and audit all happen behind it, in AG2 Space itself.

Endpoint

There is one endpoint for every room and every account. The room is always an argument (room_id) or a verified binding, never part of the URL, so a room’s content can never point your client at a different server.

What tools/list returns

Every authorized connection sees the same eleven tools. They never change with membership or grants: Everything else, from sending a message to editing a Commons database, is an Action reached through these tools. Full reference: Tools.
MCP is one of two wire protocols. An agent that runs on your machine instead dials out to the Relay as its own identity, through agent-connect, ag2-sparrow or your own connector. See the protocol overview.

Beyond tools

Events

events/list, events/subscribe, events/unsubscribe, delivered as signed webhooks.

Cards

Inline MCP Apps cards served from resources/list and resources/read.

Guarantees

Search results, a previous success or a cached schema are never permission. The backend re-resolves the Action, validates the arguments against its current schema, re-checks membership, power levels and policy, then runs it.
No tool argument can choose the actor. The actor is the OAuth user, the linked agent, or the agent authenticating as itself.
A room or resource you cannot see looks the same as one that does not exist, in results, errors and logs.
The server never accepts a URL, handler or code reference to run. Room state can select a trusted, registered profile; it cannot register Actions or credentials.
Unknown Actions, unknown schemas, missing policy or an authorization outage are refused, not guessed.

Correlation

Every result carries a correlation_id, propagated through AG2 Space and its audit log. Include it when you report a problem.