Moxie Docs
DocumentationGuides
  • Account and email preferences
  • Activate and index a repo
  • Changelog from PRs
  • Changelog timeline and overrides
  • Delete your account and feedback
  • Docs Home and collections
  • Drift detection and PR automation
  • Friday Recap and weekly updates
  • Give feedback on answers
  • Manage subscription
  • Publish knowledge base
  • Review drift cards and open focused doc PRs
  • Set up your public knowledgebase
  • Set your collection preferences
  • Tune repository automation settings
  • Use code previews and search helpers
  • Use Friday Recap and Cleanup
  • Workspace onboarding and invitations
  • Billing, trial, or access issues
  • Configure PR automation and detectors
  • Integration: connect an MCP-capable agent
  • Integration: MCP agents
  • Opportunity cards seem noisy or wrong
  • Q&A answers seem wrong or outdated
  • Share changelog to Slack
  • Stripe billing setup and syncing
  • Troubleshoot GitHub App and repository access
  • Troubleshoot GitHub connection and indexing
  • Troubleshoot GitHub PRs
  • Troubleshoot indexing
HomeGuidesIntegration: MCP agents

Integration: MCP agents

2 min read•Updated Dec 3, 2026

Quickstart

The full setup guide, with a copy-paste prompt your agent can run for you, is at moxiedocs.com/setup. The short version:

Shell
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_context and moxie.get_conventions: the repository's conventions and verified commands, read before editing.
  • moxie.search_docs and moxie.list_docs: search and list the generated documentation.
  • moxie.get_doc_gaps and moxie.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_update and moxie.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):

Shell
12
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):

JSON
12345678
{
  "mcpServers": {
    "moxie-docs": {
      "url": "https://moxiedocs.com/api/mcp",
      "headers": { "Authorization": "Bearer <TOKEN>" }
    }
  }
}

Codex:

Shell
12
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):

JSON
12345678
{
  "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

Shell
1234
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.

Related articles

GuidesBilling, trial, or access issuesThis guide helps you resolve common issues starting a trial, updating payment details, and
GuidesConfigure PR automation and detectorsThis guide helps you tune how Moxie Docs surfaces documentation drift and how those findin
GuidesIntegration: connect an MCP-capable agentRun this in the repository you want your agent to understand: Or follow the guided setup a
PreviousIntegration: connect an MCP-capable agent
Next Opportunity cards seem noisy or wrong

On this page

  • Quickstart
  • Before you start
  • What your agent gets
  • Connect a client by hand
  • Verify it works
  • Disconnect or change access
Changelogllms.txt

Powered by Moxie Docs

Quickstart

The full setup guide, with a copy-paste prompt your agent can run for you, is at moxiedocs.com/setup. The short version:

Shell
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_context and moxie.get_conventions: the repository's conventions and verified commands, read before editing.
  • moxie.search_docs and moxie.list_docs: search and list the generated documentation.
  • moxie.get_doc_gaps and moxie.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_update and moxie.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):

Shell
12
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):

JSON
12345678
{
  "mcpServers": {
    "moxie-docs": {
      "url": "https://moxiedocs.com/api/mcp",
      "headers": { "Authorization": "Bearer <TOKEN>" }
    }
  }
}

Codex:

Shell
12
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):

JSON
12345678
{
  "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

Shell
1234
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.