Moxie-Docs-MCP

๐Ÿ’ป Developer Toolsโœ“ Verifiedโ˜… FeaturedPremium
2 Views
1 Install

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "moxie-docs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "moxie-docs-mcp"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

Moxie Docs
Visit Moxie Docs

Moxie Docs โ€” MCP & Agent Tools

npm version smithery badge AllMCPs

The Moxie Docs Model Context Protocol (MCP) server, the agent skills Moxie installs into your repository, and the moxie-docs CLI that wires it all up โ€” npx moxie-docs setup.

This repo is also the open-source home of the moxie-docs npm package: a setup CLI plus the MCP interface (tool catalog, prompts, server metadata, and skill renderers) you can import. The hosted server, indexing pipeline, and your generated docs stay in the private Moxie service.

Moxie Docs indexes a connected GitHub repository and keeps its documentation alive โ€” generating docs, discovering conventions, tracking documentation gaps and drift, and opening pull requests that keep docs in sync with code. The MCP server exposes that living context to coding agents (Claude Code, Cursor, VS Code, Codex, and any MCP-capable client) so they ground their work in how your repository actually does things โ€” and keep the docs current as they change code.

This repository is documentation and distribution assets only. The hosted server, indexing pipeline, and your repositories' documentation are not stored here.


Contents


Quick start

The fastest path โ€” from your repository's directory:

npx moxie-docs setup

This signs you in (OAuth in your browser), writes the MCP config for your editor, installs the moxie-docs skill + AGENTS.md guidance, and verifies the connection. After that, your agent reads live context with moxie.get_ai_context before editing and proposes doc updates that land in the same PR.

Prefer to do it by hand? Connect a repository at https://moxiedocs.com, then add the server to your agent with a config block.


CLI

The moxie-docs CLI (Node โ‰ฅ 18, zero runtime dependencies) sets up and manages the connection. Run it with npx moxie-docs <command> or install it globally (npm i -g moxie-docs).

CommandWhat it does
moxie-docs setupEnd-to-end: sign in, configure your MCP client, install the skill + AGENTS.md block, and smoke-test.
moxie-docs loginSign in via the browser (OAuth 2.1 + PKCE) and store credentials in ~/.moxie-docs/.
moxie-docs statusShow your scope, connected repositories, and available tool count.
moxie-docs config <client>Write the moxie-docs server entry into a client config (claude-code, cursor, or vscode).
moxie-docs install-skillInstall the moxie-docs skill and AGENTS.md guidance into the current repo.
moxie-docs logoutRemove stored credentials.

Useful flags: --client <name>, --token <dashboard-token>, --repo owner/name, --no-browser, --yes.

How authentication is written. By default setup/config write a URL-only server entry and let your editor perform its own OAuth sign-in on first use โ€” so nothing in your committed config expires. The CLI's own browser sign-in (used for status and the setup smoke-test) stores a short-lived token plus a refresh token under ~/.moxie-docs/ (file mode 0600); it is never written into a client config. If you'd rather pin a static Authorization header, pass a long-lived dashboard token with --token and the CLI writes that instead. The CLI never logs token values, and it refuses to overwrite a client config it can't safely parse rather than discarding your other MCP servers.


The MCP server

Connection

TransportStreamable HTTP MCP
Endpointhttps://moxiedocs.com/api/mcp
Protocol version2025-06-18
Repository selectionTools accept an optional repository argument (owner/name, e.g. acme/app). It is required only when a token serves multiple repositories and no single default applies. Matching is case-insensitive.

All write tools are proposals โ€” Moxie returns the file path and content for you (the agent) to write into your own branch. Moxie never edits your repository directly through MCP, and never merges. Reads return compact, citation-backed context rather than raw code dumps.

Authentication

Bearer token (available today). Create a token in the dashboard and send it as a header:

Authorization: Bearer <MOXIE_TOKEN>

Moxie stores only the token hash (plus an encrypted copy so you can reveal it), a prefix, scope, and a last-used timestamp. You can reveal, rotate, or revoke tokens from the dashboard at any time.

OAuth 2.1 sign-in (for clients that support it). MCP clients that implement the OAuth authorization flow can connect by signing in through the browser instead of pasting a token โ€” the client discovers the server's OAuth metadata, registers itself dynamically (RFC 7591), and obtains a token via the authorization-code + PKCE flow. Discovery documents:

  • Protected resource metadata: https://moxiedocs.com/.well-known/oauth-protected-resource
  • Authorization server metadata: https://moxiedocs.com/.well-known/oauth-authorization-server

Both authentication paths resolve to the same token model, so either works with the same tools. Connected applications can be reviewed and revoked from the dashboard.

Client configuration

Most agents accept a remote MCP server with a URL and headers. Replace <MOXIE_TOKEN> with a token from the dashboard.

Claude Code โ€” .mcp.json (or claude mcp add):

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

Cursor โ€” .cursor/mcp.json:

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

VS Code โ€” .vscode/mcp.json:

{
  "servers": {
    "moxie-docs": {
      "type": "http",
      "url": "https://moxiedocs.com/api/mcp",
      "headers": { "Authorization": "Bearer <MOXIE_TOKEN>" }
    }
  }
}

Keep tokens out of source control. Reference an environment variable where your client supports it, or paste the token only into local, untracked config.

Tools

  • moxie.get_ai_context: Compact pre-edit briefing: repo status, verified commands, top conventions, open gaps, team notes. Read this first.
  • moxie.get_doc_impact: Given the paths you're about to change (and any you're deleting), returns the conventions, gaps, and existing docs whose evidence overlaps them.
  • moxie.get_api_context: Given paths you're about to touch, returns structured context for any API endpoints they map to: method, path, schema, and known consumers.
  • moxie.review_change: Self-review a change before opening the PR; returns a severity-ranked list of convention breaches, stale docs, undocumented surface, and broken references.
  • moxie.get_conventions: Discovered coding conventions, grouped by category, with confidence scores, agent guidance, and source-file citations.
  • moxie.search_docs: Semantic + keyword search over generated docs, conventions, gaps, and AI context.
  • moxie.get_doc_gaps: Unresolved documentation gaps with severity and the paths they concern.
  • moxie.get_documentation_opportunities: Recommended doc work: missing docs, drift repairs, and PR templates.
  • moxie.get_documentation_patterns: How the repository organizes and maintains its docs (where new docs belong).
  • moxie.list_docs: Paginated, section-grouped table of contents of every generated doc.
  • moxie.propose_doc_update: Add or update a doc as part of your current change; returns target path + Markdown to write into branch.
  • moxie.propose_doc_removal: Remove a Moxie-tracked doc your change makes obsolete; returns path to delete in branch.
ToolPurpose
moxie.get_ai_contextCompact pre-edit briefing: repo status, verified commands, top conventions, open gaps, team notes. Read this first.
moxie.get_doc_impactGiven the paths you're about to change (and any you're deleting), returns the conventions, gaps, and existing docs whose evidence overlaps them - and flags net-new/undocumented surfaces.
moxie.get_api_contextGiven paths you're about to touch, returns structured context for any API endpoints they map to: method, path, schema, and known consumers/features.
moxie.review_changeSelf-review a change before opening the PR; returns a severity-ranked verdict (clean / warnings / must-fix) covering convention breaches, stale docs, undocumented surface, and broken references.
moxie.get_conventionsDiscovered coding conventions, grouped by category, with confidence scores, agent guidance, and source-file citations.
moxie.search_docsSemantic + keyword search over generated docs, conventions, gaps, and AI context.
moxie.get_doc_gapsUnresolved documentation gaps with severity and the paths they concern.
moxie.get_documentation_opportunitiesRecommended doc work: missing docs, drift repairs, and PR templates.
moxie.get_documentation_patternsHow the repository organizes and maintains its docs (where new docs belong).
moxie.list_docsPaginated, section-grouped table of contents of every generated doc.
moxie.propose_doc_updateAdd or update a doc as part of your current change; returns the target path + Markdown to write into your branch.
moxie.propose_doc_removalRemove a Moxie-tracked doc your change makes obsolete; returns the path to delete in your branch.

Prompts

The server also exposes MCP prompts that script the common workflows:

PromptPurpose
document-this-changeRuns the doc-impact check on your changed paths and walks you through proposing the doc updates so they land in the same PR.
fix-stale-docsFinds the repository's open documentation gaps and drift opportunities and repairs them through Moxie.
review-before-finalizeRuns Moxie's guardrail over your diff before you open the PR to catch convention breaches, stale docs, undocumented surface, and broken references.

Skills

Agent Skills are small, triggered instruction files that teach an agent when and how to use a capability. Moxie publishes one skill, moxie-docs, that wires an agent into the edit-then-document workflow.

The moxie-docs skill

The canonical skill lives in this repo at skills/moxie-docs/SKILL.md and is also served from the website (with a published SHA-256 digest) at:

https://moxiedocs.com/.well-known/agent-skills/moxie-docs/SKILL.md

It tells an agent to read live context before editing (get_ai_context, get_doc_impact), follow the repository's real conventions and verified commands, and propose doc updates/removals that ship in the same PR as the code change โ€” never inventing filler docs.

What Moxie installs into your repository

When Moxie connects a repository it opens one "Add Moxie agent guidance" PR that adds three self-healing, deterministic files (regenerated only when they drift or the repo is renamed โ€” never churning on every index):

FilePurpose
AGENTS.mdA short, always-on pointer block (between <!-- moxie-docs:start --> / <!-- moxie-docs:end --> markers) telling any agent to use the MCP server and the moxie-docs skill. Human-added content outside the markers is preserved. See templates/AGENTS.md.
.claude/skills/moxie-docs/SKILL.mdThe repo-specific moxie-docs skill for Claude Code.
.agents/skills/moxie-docs/SKILL.mdThe same skill for .agents-aware clients.

The installed skill is the repo-specific variant of skills/moxie-docs/SKILL.md: identical workflow, with your owner/name baked in so multi-repo tokens target the right repository. Everything Moxie writes is deterministic and contains no volatile data โ€” live conventions and commands always come from the MCP server, not the committed file.


Cursor Rules

Moxie Docs publishes native Cursor rule files (.mdc) for Cursor AI Agent mode. The canonical rule lives in this repository at rules/moxie-docs.mdc and can be added to your repository under .cursor/rules/moxie-docs.mdc or imported via cursor.directory.


Use as a library

The package also exports the open-source MCP interface โ€” the backend-independent contract โ€” so you can build tooling against Moxie without depending on the private server. It carries no secrets and no server logic.

import {
  moxieMcpTools,            // the tool catalog (names, descriptions, input schemas, annotations)
  moxieMcpPrompts,          // the document-this-change / fix-stale-docs prompt descriptors
  moxieMcpServerInfo,       // { name, version }
  moxieMcpProtocolVersion,  // "2025-06-18"
  moxieMcpCapabilities,
  buildMoxieMcpServerCard,  // full /.well-known/mcp/server-card.json document
  moxieMcpServerCard,       // canonical server card (tools + prompts included)
  moxieMcpPublicMethods,    // ["initialize", "tools/list", "prompts/list"]
  renderSkillMarkdown,      // ({ repository }) => the moxie-docs SKILL.md for a repo
  renderAgentsGuidanceBlock,// ({ repository }) => the AGENTS.md guidance block
  moxieDocsSkillMarkdown,   // the canonical published skill, as a string
  MOXIE_MCP_ENDPOINT,       // "https://moxiedocs.com/api/mcp"
  MOXIE_SITE_URL,
} from "moxie-docs";

What it does not include: the tool handlers, the indexing/doc-generation pipeline, AI/vector-search, the database layer, or token storage โ€” those remain in the hosted Moxie service.


Find the server

Moxie Docs is listed for MCP clients and directories under these names:

WhereIdentifier / link
Official MCP Registryio.github.Jackalope-Dev/moxie-docs โ€” search for moxie-docs
Smitherysmithery.ai/servers/caden/moxie-docs (badge above)
npm CLImoxie-docs โ€” npx moxie-docs setup

Machine-readable registry metadata for the hosted endpoint is in server.json in this repo.

Discovery endpoints

Moxie publishes a small machine-discoverable surface so agents and crawlers can find the server:

EndpointWhat it serves
/.well-known/mcp/server-card.jsonMCP server card: serverInfo, protocol version, transport, capabilities, full tools/prompts catalogs, and publicMethods (unauthenticated listing).
/.well-known/api-catalogRFC 9727 catalog linking to the server card and human docs.
/.well-known/agent-skills/index.jsonAgent Skills discovery index (skills + SHA-256 digests).
/.well-known/agent-skills/moxie-docs/SKILL.mdThe published moxie-docs skill.
/.well-known/oauth-protected-resourceOAuth protected-resource metadata (RFC 9728).
/.well-known/oauth-authorization-serverOAuth authorization-server metadata (RFC 8414).

License

MIT ยฉ Jackalope Dev. The contents of this repository (documentation, skill files, and templates) are open source. The hosted Moxie Docs service, indexing pipeline, and generated documentation are not part of this repository.

Related MCP Servers

3KniGHtcZ/codebeamer-mcp

๐Ÿ“‡ โ˜๏ธ ๐ŸŽ ๐ŸชŸ ๐Ÿง - Codebeamer ALM integration for managing work items, trackers, and projects. Provides 17 tools for reading and writing items, associations, references, comments, and risk management data via Codebeamer REST API v3.

๐Ÿ’ป Developer Tools1 views
21st-dev/Magic-MCP

Create crafted UI components inspired by the best 21st.dev design engineers.

๐Ÿ’ป Developer Tools0 views
a-25/ios-mcp-code-quality-server

๐Ÿ“‡ ๐Ÿ  ๐ŸŽ - iOS code quality analysis and test automation server. Provides comprehensive Xcode test execution, SwiftLint integration, and detailed failure analysis. Operates in both CLI and MCP server modes for direct developer usage and AI assistant integration.

๐Ÿ’ป Developer Tools0 views
AaronVick/ECHO_RIFT_MCP

๐Ÿ“‡ โ˜๏ธ - MCP server for EchoRift infrastructure primitives (BlockWire, CronSynth, Switchboard, Arbiter). Makes EchoRift's agent infrastructure callable as MCP tools so any MCP client can treat EchoRift like a native capability layer.

๐Ÿ’ป Developer Tools0 views

Engagement

Views
2
Installs
1
Upvotes
1

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Verified listing ยท Premium
โ˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.