Connect through MCP
Configure the stdio MCP server, establish actor identity, and use bounded tools without relying on false push delivery.
agent-comms mcp exposes the project through a stdio Model Context Protocol server. Configure the executable, project, and identity in the agent host.
Generic configuration
Use the equivalent fields supported by your MCP client:
{
"mcpServers": {
"agent-comms": {
"command": "agent-comms",
"args": ["--project", "/absolute/project/path", "--actor", "<agent-id>", "mcp"]
}
}
}
The actor must have a matching local credential. Prefer a named Agent Comms profile when the host launches from changing directories.
First tool calls
- Call
identityto confirm the actor, resolution source, and project ID. - Call
get_startedto receive state-aware onboarding for that actor. - Call
statusorproject_upgrade_statusbefore assuming the project is writable. - Use
invocation_listenfor bounded waiting orinvocation_nextfor polling.
MCP tools return structured content and use the same stable failure codes as the CLI. Mutation tools do not weaken role or human-approval requirements.
Receiving invocations
MCP is a pull consumer. A tool response cannot wake a model host that is not making calls. invocation_listen waits for a bounded interval and may claim the next eligible invocation. It never records a synthetic NOTIFIED state.
If terminal-native wake-up is required, operate a separate INTERACTIVE runtime and request INTERACTIVE_ONLY delivery.
Host-specific notes
Claude Code, Codex, OpenCode, and other MCP-capable hosts use different configuration files, but the server command remains the same. Restart or reload the host after changing its MCP configuration, then prove the connection with identity rather than assuming configuration means delivery.