Documentation MCP server
One surface for agents
to read and write
Most documentation tools bolt MCP onto something else — an index, a published
site, a CMS.
In Git2Docs, MCP is the authoring layer: the surface agents
write through and the surface agents read from are the same one, and everything crossing it
passes the same check.
How it works
One server on both edges, and a gate in front of everything that publishes.
- A coding agent running the Git2Docs skill reads your repository and supplies the facts a parser can't derive.
- Git2Docs clones the repository read-only — it never writes to it — and generates the first version of the docs.
- A coding agent validates those pages against the code and the running system.
- It returns a changes file over MCP, and Git2Docs regenerates what it flagged.
- The loop repeats until there is nothing left to find.
For comparison
How Git2Docs approach is superior to other solutions
- A retrieval-only server sits on the read edge, with docs authored somewhere else and nothing tying them to source.
- An authoring-only server sits on the write edge into a CMS, with a separate read path and no check between the write and publication.
- Git2Docs puts one server on both edges and a validation gate in front of publication, so an agent's writes re-enter through the same check that generated content does.
The Git2Docs architecture advantage
Six consequences, each of which follows from the shape of the workflow rather than from any individual feature.
Nothing is written back to your repository
Git2Docs clones read-only. Documentation is generated and corrected on our side, never by opening pull requests or committing into your tree — so adopting it changes nothing about who can write to your code, and the security review is a short one.
There is no hand-copy step to drift
In the common pattern a person reads the code and writes prose somewhere else. From that moment the two diverge, silently, and no process holds them together for long — the gap is structural, not a discipline problem. Generating from committed source removes the step instead of policing it.
The agent fills in what a parser can't
Some truths aren't in the syntax — a deployment name, a namespace, a compatibility guarantee. A coding agent running the Git2Docs skill supplies them as anchored facts, each tied to the line of source that proves it, so they are checkable like everything else rather than taken on trust.
What the agent reads is what the agent wrote
When authoring and retrieval are different systems, the agent reads a copy — processed, indexed, possibly lagging. Any delay or transform between the two is invisible drift you can't measure. One surface means there is no copy to fall behind — and it is the same surface your customers reach through the support chatbot, so people and agents are answered from identical content.
Corrections close the loop without a queue
An agent that finds a mismatch while validating returns a changes file over MCP, and the affected pages regenerate. No ticket, no separate editor login, no pull request waiting on someone who wasn't going to get to it this sprint — and the regenerated pages are validated again before anyone reads them.
Accuracy becomes measurable at all
You can only count the claims that contradict your code if the docs are tied to the code in the first place. An architecture where documentation originates away from source has nothing to compare against — which is why the industry measures freshness, traffic and search relevance instead of accuracy. This shape is what makes the two numbers on our features page possible.
The honest part
A loop this closed needs a checkpoint
If an agent writes a page over MCP and another agent reads that page back as ground truth, nothing in between has checked whether it was true. Removing the human authoring surface removes the human who used to notice. That is a real risk, and it is created by the architecture we are recommending — so it is ours to answer.
How to tell which pattern a docs MCP server uses
Four questions that place any documentation MCP server — including this one — into one of the rows above.
Does it expose write tools, or only read tools?
List the server's tools. Read-only means the docs are authored somewhere the agent can't reach, and every correction it finds has to leave the loop to get fixed.
Is there a human authoring surface behind it?
If there's an editor the team is expected to work in, the MCP server is an interface onto that editor — and the editor, not the server, is where content originates.
Can a page tell you which commit it came from?
Provenance only exists if the content was generated from committed source. A page written by hand or by an agent into a CMS has no commit to point at.
Ask it about something that doesn't exist.
Request a parameter you invented. A server wired to checked content says it doesn't exist. One wired to unchecked content will often explain how to use it and cite a page. Thirty seconds, and it fails loudly.
Start here
Anchor your facts before the first generation
The exact names, namespaces and compatibility claims no extractor can read — stated once, each proved against a line of source, so the docs are grounded from the start rather than corrected afterwards.
Install the git2docs skill in Claude Code. It needs no token and no MCP connection.
Run this in your repo:
Use the git2docs skill to bootstrap docs/docsync-context.yaml for this repo.
The agent proves each fact against a file and a line, writes the file, and reports what it anchored. Review it like any other change and commit it.
FAQ
Questions this architecture raises
What is a documentation MCP server?
Can agents write documentation through MCP, not just read it?
What stops an agent from writing something wrong?
Does the agent read the same content it writes?
Why does it matter where the MCP server sits?
Connect your docs to your agents
Generate documentation from your repository, measure it against your code, and serve it to people and agents from one surface. Free for 30 days, no card.