Integration: MCP agents
Quickstart
The full setup guide, with a copy-paste prompt your agent can run for you, is at moxiedocs.com/setup. The short version:
npx moxie-docs setup
The moxie-docs CLI (npm, source) detects your client, writes its MCP config, installs the Moxie Docs skill into your repo, and opens a browser window for you to approve access with OAuth. There is no token to copy.
- MCP endpoint:
https://moxiedocs.com/api/mcp(Streamable HTTP, OAuth 2.1 or a Bearer token) - Server card:
https://moxiedocs.com/.well-known/mcp/server-card.json - Bearer tokens (fallback):
https://moxiedocs.com/dashboard/mcp
Before you start
- A Moxie Docs account (sign in with GitHub at moxiedocs.com). The Free plan covers 1 repository with no card.
- The Moxie Docs GitHub App installed on the repository, with indexing enabled for it. Tools answer as soon as the server is connected; repository context fills in once the first index finishes.
- An MCP client: Claude Code, Cursor, Codex, VS Code, Windsurf, Cline, Claude Desktop, Gemini CLI or another client that supports remote MCP servers.
What your agent gets
The server exposes moxie.* tools, including:
moxie.get_ai_contextandmoxie.get_conventions: the repository's conventions and verified commands, read before editing.moxie.search_docsandmoxie.list_docs: search and list the generated documentation.moxie.get_doc_gapsandmoxie.get_doc_impact: what is undocumented, and which docs a change makes stale.moxie.review_change: a check of a diff against the repository's conventions and docs.moxie.propose_doc_updateandmoxie.propose_doc_removal: doc changes that Moxie Docs turns into a pull request for your review.
The server card lists every tool and prompt.
Connect a client by hand
Use these if you'd rather not run the CLI.
Claude Code (OAuth opens in your browser):
claude mcp add --scope user --transport http moxie-docs https://moxiedocs.com/api/mcp
claude mcp list
If the server shows as needing authentication, run /mcp inside Claude Code and follow the browser steps.
Cursor (.cursor/mcp.json, with a Bearer token from the dashboard):
{
"mcpServers": {
"moxie-docs": {
"url": "https://moxiedocs.com/api/mcp",
"headers": { "Authorization": "Bearer <TOKEN>" }
}
}
}
Codex:
codex mcp add moxie-docs --url https://moxiedocs.com/api/mcp --bearer-token-env-var MOXIE_DOCS_MCP_TOKEN
export MOXIE_DOCS_MCP_TOKEN=<TOKEN>
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"moxie-docs": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://moxiedocs.com/api/mcp", "--header", "Authorization: Bearer <TOKEN>"]
}
}
}
Other clients: point the client at https://moxiedocs.com/api/mcp with the header Authorization: Bearer <TOKEN>.
If you put a token in a file inside your repository, add that file to .gitignore. User-level config is safer.
Verify it works
curl -s -X POST https://moxiedocs.com/api/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
A JSON list of moxie.* tools means the endpoint is reachable. Then reload your editor and ask the agent to "read Moxie Docs conventions before editing". It should call moxie.get_ai_context and answer with your repository's conventions.
Disconnect or change access
- Remove the server from your client (for Claude Code,
claude mcp remove moxie-docs). - Revoke Bearer tokens at
https://moxiedocs.com/dashboard/mcp. - To change which repositories the server can see, change the repositories enabled in your Moxie Docs workspace or the GitHub App's repository access.
Was this page helpful?
Let us know if you found what you were looking for.