Work with theorymcp.ai namespaces and agent MCPs.
TheoryMCP is the routed MCP surface behind theorymcp.ai. Connect a host to a
namespace, query its published knowledge, talk to agent MCPs that keep scoped memory across
sessions, materialize an agent into your workspace — and, when you are granted scope, author one
back. The route is the identity. The namespace is the source of truth. Every
step below comes with a copyable prompt and a plain explanation of how it works.
Three things you do with a namespace
Read its knowledge, talk to its agents, or pull an agent into your own workspace. Pick where you are.
Connect to a namespace route and query its published knowledge bases — no memory, no materialization, the lowest-friction surface.
Talk to a named agent endpoint that keeps subject-scoped memory across sessions and survives a change of model — stateful by design.
Materialize a published agent into your workspace, verify it against served checksums, keep it in sync — and, when granted scope, author one back.
One identity. Three hosts.
The MCP server id is theorymcp in every host. The route is the only knob — swap in your namespace.
codex mcp login https://theorymcp.ai/theorycloud/mcp # native MCP OAuth
# .codex/config.toml — codex performs MCP OAuth natively. [mcp_servers.theorymcp] url = "https://theorymcp.ai/theorycloud/mcp" oauth_resource = "https://theorymcp.ai/theorycloud/mcp" scopes = ["mcp:tools", "ai.kb.query"]
Inside Claude Code: /mcp → authenticate theorymcp # native MCP OAuth
// .mcp.json at the repo root (Claude Code reads project MCP only from root).
{
"mcpServers": {
"theorymcp": {
"type": "http",
"url": "https://theorymcp.ai/theorycloud/mcp"
}
}
}
First connect opens a browser once; the mcp-remote bridge holds the token.
// .agents/mcp_config.json — Antigravity speaks stdio MCP but cannot do
// MCP OAuth, so it reaches the route through the mcp-remote stdio bridge.
{
"mcpServers": {
"theorymcp": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://theorymcp.ai/theorycloud/mcp"]
}
}
}
Full walkthrough on the Connect a host page. Antigravity needs the mcp-remote bridge.
Quick starts
The shortest path from a route to a result — ranked by how often new consumers reach for them.
Wire codex, Claude Code, or Antigravity to a namespace route and authenticate.
Always call describe_interface first — never assume a namespace's tools.
search_docs then get_unit — previews first, authoritative detail second.
Append-only, subject-scoped continuity that survives a change of model.
Plan, fetch the pack to disk, verify every checksum, write the marker.
Copy-paste prompts for every step — connect, ground, install, author.