MCP 服务器

Moxie Docs

io.github.Jackalope-Dev/moxie-docs
开发者工具 知识与文档 公开且可连接 MCP 2026-07-28

此 MCP 可以做什么

Analyzes GitHub repositories to provide coding conventions, API context, documentation gaps, documentation opportunities, searchable docs, and pre-commit change reviews.

moxie.get_ai_context
Get the compact briefing an agent should read before editing this repository: index status, verified commands, agent tips, top conventions, open documentation gaps, and queued documentation opportunities. Read-only; no side effects. Returns a single Markdown document. Call this first at the start of a task; once you know which files you'll change, follow up with get_doc_impact for path-scoped guidance.
只读 幂等
输入模式
{'type': 'object', 'properties': {'repository': {'type': 'string', 'description': 'The target repository as "owner/name" (e.g. "acme/app"). Always pass this unless your token is scoped to a single repository. Matching is case-insensitive. If omitted when the token serves multiple repos, the call returns the list of repositories to choose from instead of an answer.'}}}
moxie.get_api_context
Given file paths an agent is about to touch, return structured context for any API endpoints they map to: method, path, request/response schema, and known consumers/features. Read-only; no side effects. Call this before editing API route or schema code, alongside get_doc_impact.
只读 幂等
输入模式
{'type': 'object', 'properties': {'paths': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Repository-relative file paths to inspect for API endpoint context.'}, 'repository': {'type': 'string', 'description': 'The target repository as "owner/name" (e.g. "acme/app"). Always pass this unless your token is scoped to a single repository. Matching is case-insensitive. If omitted when the token serves multiple repos, the call returns the list of repositories to choose from instead of an answer.'}}}
moxie.get_conventions
Get the coding conventions Moxie inferred for the repository. Read-only; no side effects. Returns a Markdown list grouped by category (e.g. testing, structure, docs, review); each convention has a title, summary, confidence score, agent guidance, and the source file paths that evidence it. Use this for the general rules to follow; when you already know the files you're about to edit, prefer moxie.get_doc_impact for conventions scoped to those paths.
只读 幂等
输入模式
{'type': 'object', 'properties': {'category': {'type': 'string', 'description': 'Optional category filter, such as testing, structure, docs, or review.'}, 'repository': {'type': 'string', 'description': 'The target repository as "owner/name" (e.g. "acme/app"). Always pass this unless your token is scoped to a single repository. Matching is case-insensitive. If omitted when the token serves multiple repos, the call returns the list of repositories to choose from instead of an answer.'}}}
moxie.get_doc_gaps
List the unresolved documentation gaps Moxie found - areas of the codebase that lack docs. Read-only; no side effects. Returns a Markdown list, each gap with a title, severity, summary, and suggested file paths. This is gaps only; for the full prioritized work queue that also includes drift repairs and PR-template work, use get_documentation_opportunities, and to scope gaps to files you're about to edit use get_doc_impact.
只读 幂等
输入模式
{'type': 'object', 'properties': {'severity': {'type': 'string', 'description': 'Optional severity filter: high, medium, low, or info.'}, 'repository': {'type': 'string', 'description': 'The target repository as "owner/name" (e.g. "acme/app"). Always pass this unless your token is scoped to a single repository. Matching is case-insensitive. If omitted when the token serves multiple repos, the call returns the list of repositories to choose from instead of an answer.'}}}
moxie.get_doc_impact
Given the file paths an agent is about to change (and optionally a subset being deleted), return the conventions, documentation gaps, and existing/related docs whose evidence overlaps those paths, plus a net-new/undocumented analysis and any removal candidates. Read-only; no side effects. Returns a Markdown report. Call this BEFORE writing code so doc updates land in the same PR; then use propose_doc_update to write a doc, or propose_doc_removal for an orphaned one.
只读 幂等
输入模式
{'type': 'object', 'required': ['changedPaths'], 'properties': {'repository': {'type': 'string', 'description': 'The target repository as "owner/name" (e.g. "acme/app"). Always pass this unless your token is scoped to a single repository. Matching is case-insensitive. If omitted when the token serves multiple repos, the call returns the list of repositories to choose from instead of an answer.'}, 'changedPaths': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Repository-relative file paths the agent intends to modify (e.g., apps/web/src/app/api/billing/webhook/route.ts).'}, 'deletedPaths': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Subset of paths that are being DELETED. Moxie flags any doc whose every cited source path is in this list as a removal candidate for moxie.propose_doc_removal.'}}}
moxie.get_documentation_opportunities
List the actionable documentation updates Moxie recommends as a prioritized queue: missing docs, drift repairs, and PR-template work. Read-only; no side effects. Returns a Markdown list, each opportunity with a title, kind (documentation_gap | documentation_drift | pr_template), severity, summary, suggested action, estimated files changed, and source paths. Use this to pick the next doc task; it is the superset of get_doc_gaps (which lists gaps only).
只读 幂等
输入模式
{'type': 'object', 'properties': {'kind': {'type': 'string', 'description': 'Optional kind filter: documentation_gap, documentation_drift, or pr_template.'}, 'severity': {'type': 'string', 'description': 'Optional severity filter: high, medium, low, or info.'}, 'repository': {'type': 'string', 'description': 'The target repository as "owner/name" (e.g. "acme/app"). Always pass this unless your token is scoped to a single repository. Matching is case-insensitive. If omitted when the token serves multiple repos, the call returns the list of repositories to choose from instead of an answer.'}}}
moxie.get_documentation_patterns
Get Moxie's summary of how THIS repository organizes and maintains documentation - where docs live relative to code and how they are kept current. Read-only; no side effects. Returns a Markdown list of pattern entries, each with a title, explanation, and source citations. Use this to decide WHERE a new doc should go before calling propose_doc_update; for the list of WHICH docs need work, use get_documentation_opportunities instead.
只读 幂等
输入模式
{'type': 'object', 'properties': {'repository': {'type': 'string', 'description': 'The target repository as "owner/name" (e.g. "acme/app"). Always pass this unless your token is scoped to a single repository. Matching is case-insensitive. If omitted when the token serves multiple repos, the call returns the list of repositories to choose from instead of an answer.'}}}
moxie.list_docs
List the repository's generated documentation as a browsable table of contents - every doc page, not a query-filtered subset. Read-only; no side effects. Returns Markdown grouped by section, each entry with its title, slug, repository path, and source paths, plus the total count and a pagination cursor so you can tell whether more pages remain (no silent truncation). Use this to see what docs already exist before adding one (so you don't duplicate) or to find the slug to pass to propose_doc_update; when you are hunting for a specific topic, search_docs is more direct.
只读 幂等
输入模式
{'type': 'object', 'properties': {'limit': {'type': 'number', 'description': 'Maximum docs to return (1-200, default 50).'}, 'offset': {'type': 'number', 'description': 'Number of docs to skip for pagination (default 0). Use the cursor in the response to fetch the next page.'}, 'section': {'type': 'string', 'description': 'Optional section/collection filter (case-insensitive substring), e.g. "Backend" or "Billing". Omit to list every section.'}, 'repository': {'type': 'string', 'description': 'The target repository as "owner/name" (e.g. "acme/app"). Always pass this unless your token is scoped to a single repository. Matching is case-insensitive. If omitted when the token serves multiple repos, the call returns the list of repositories to choose from instead of an answer.'}}}
moxie.propose_doc_removal
Propose deleting a Moxie-tracked documentation file that your change makes irrelevant, as part of YOUR current change. Moxie validates the path and returns it for you to delete in your working branch; Moxie itself does not delete files or open a PR - the deletion happens in your branch, so it lands in the SAME PR as the code. Returns the resolved path to delete. Provide either slug or targetPath.
输入模式
{'type': 'object', 'properties': {'slug': {'type': 'string', 'description': 'Slug of the existing generated doc to remove.'}, 'reason': {'type': 'string', 'description': 'Why this doc is no longer relevant.'}, 'repository': {'type': 'string', 'description': 'The target repository as "owner/name" (e.g. "acme/app"). Always pass this unless your token is scoped to a single repository. Matching is case-insensitive. If omitted when the token serves multiple repos, the call returns the list of repositories to choose from instead of an answer.'}, 'targetPath': {'type': 'string', 'description': 'Repository-relative path of the doc to remove (must be a Moxie-tracked doc). Use instead of slug.'}, 'removedSourcePaths': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Code paths being deleted that made this doc irrelevant, for provenance.'}}}
moxie.propose_doc_update
Propose a documentation file to add or update as part of YOUR current change. Records a new proposal each call (not idempotent) and does NOT modify your repository or open a PR - Moxie resolves the target path and returns the path + Markdown for YOU to write into your working branch, so the docs land in the SAME PR as the code. Returns the resolved target path and the content to write. Provide either targetPath or baseSlug.
输入模式
{'type': 'object', 'required': ['title', 'markdown'], 'properties': {'title': {'type': 'string', 'description': 'Short human title for the documentation update.'}, 'reason': {'type': 'string', 'description': 'Why this doc is being added or changed.'}, 'baseSlug': {'type': 'string', 'description': 'Slug of an existing generated doc to update instead of supplying targetPath.'}, 'markdown': {'type': 'string', 'description': 'The documentation content (Markdown) to write to the target file.'}, 'repository': {'type': 'string', 'description': 'The target repository as "owner/name" (e.g. "acme/app"). Always pass this unless your token is scoped to a single repository. Matching is case-insensitive. If omitted when the token serves multiple repos, the call returns the list of repositories to choose from instead of an answer.'}, 'targetPath': {'type': 'string', 'description': 'Repository-relative path to write the doc to (e.g., docs/billing.md). Omit to resolve from baseSlug.'}, 'sourcePaths': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Code paths this doc documents, for provenance.'}}}
moxie.review_change
Self-review a change you are about to commit BEFORE opening the PR. Pass the proposed new state of each changed file (and any deleted paths); Moxie returns a severity-ranked list of violations to fix: convention breaches, docs your change makes factually false, net-new API/surface added without docs, and doc references broken by deletions. Read-only; no side effects and no writes. Returns a Markdown verdict (clean | warnings | must-fix) with each finding's location, fix, and - for doc issues - the slug to pass to propose_doc_update. Call this as the final step of the edit flow, then fix findings and re-run.
只读 幂等
输入模式
{'type': 'object', 'required': ['changedFiles'], 'properties': {'repository': {'type': 'string', 'description': 'The target repository as "owner/name" (e.g. "acme/app"). Always pass this unless your token is scoped to a single repository. Matching is case-insensitive. If omitted when the token serves multiple repos, the call returns the list of repositories to choose from instead of an answer.'}, 'changedFiles': {'type': 'array', 'items': {'type': 'object', 'required': ['path'], 'properties': {'path': {'type': 'string', 'description': 'Repository-relative path, e.g. apps/web/src/app/api/foo/route.ts.'}, 'patch': {'type': 'string', 'description': 'Optional unified diff for the file (used if newContent is omitted).'}, 'status': {'type': 'string', 'description': 'Either "added" or "modified".'}, 'newContent': {'type': 'string', 'description': 'The full new contents of the file after your change.'}}}, 'description': 'The files your change adds or modifies, in their PROPOSED new state. Provide newContent (the full new file text) for each; you may also/instead provide patch (a unified diff). Max 20 files per call.'}, 'deletedPaths': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Repository-relative paths your change DELETES, so Moxie can flag docs whose references break.'}}}
moxie.search_docs
Keyword and semantic search across the connected repository's generated docs, conventions, documentation gaps, AI-context notes, and indexed code. Read-only; no side effects. Returns ranked matches in Markdown grouped into Documentation and Code sections, each with a title, snippet, and source paths. Use for open-ended lookups when you don't know which category holds the answer; when you do, the specific getters (get_conventions, get_doc_gaps, get_documentation_opportunities) are more direct. Omitting query returns recent context instead.
只读 幂等
输入模式
{'type': 'object', 'properties': {'limit': {'type': 'number', 'description': 'Maximum matches to return (1-20, default 8).'}, 'query': {'type': 'string', 'description': 'Search phrase or topic. Omit to return recent context for the repository.'}, 'repository': {'type': 'string', 'description': 'The target repository as "owner/name" (e.g. "acme/app"). Always pass this unless your token is scoped to a single repository. Matching is case-insensitive. If omitted when the token serves multiple repos, the call returns the list of repositories to choose from instead of an answer.'}}}
已添加
moxie.propose_doc_removal
2026年9月17日 12:42
已添加
moxie.propose_doc_update
2026年9月17日 12:42
已添加
moxie.review_change
2026年9月17日 12:42
已添加
moxie.get_api_context
2026年9月17日 12:42
已添加
moxie.get_doc_impact
2026年9月17日 12:42
已添加
moxie.get_ai_context
2026年9月17日 12:42
已添加
moxie.get_documentation_patterns
2026年9月17日 12:42
已添加
moxie.get_documentation_opportunities
2026年9月17日 12:42
已添加
moxie.get_doc_gaps
2026年9月17日 12:42
已添加
moxie.list_docs
2026年9月17日 12:42
已添加
moxie.search_docs
2026年9月17日 12:42
已添加
moxie.get_conventions
2026年9月17日 12:42