Skip to content

Your APIs, readable by AI agents

Developers now ask an AI agent before they open your documentation. APIGit gives agents the OpenAPI, AsyncAPI, GraphQL and Markdown documents your readers see, in the formats agents read: llms.txt, Markdown and an MCP server. A coding agent can also do the API work itself, on your machine or in your account.

docs.acme.dev/2.1.0/openapi.yaml
The Copy page menu of a published API reference: copy, open in ChatGPT or Claude, download, MCP server URL and llms.txt

Every published document answers agents too

Publish once. People get the site; agents get the same version, from the same commit and under the same access rules, without a browser.

An agent can readWhat it is
llms.txtAn index: the guides, the AsyncAPI and GraphQL pages, and one line per OpenAPI operation, each with a link
llms-full.txtEvery page and operation in one file
Markdown pagesEach guide, one page per AsyncAPI or GraphQL file, and a page per OpenAPI operation and schema
Bundled OpenAPI fileOne JSON or YAML file per spec, with references to other files resolved
SkillA SKILL.md that describes the API: its servers, its authentication and where the rest is
MCP serverA read-only endpoint with five tools: search, outline, one operation, one schema, a whole spec

Lookup of a single operation or schema and the bundled file are for OpenAPI. An AsyncAPI document or a GraphQL schema is one generated page per file, which search and the outline include. What the generated pages contain

The addresses are in the Copy page menu

On any guide or reference, the menu beside Copy page has the MCP server URL, a ready claude mcp add line, the page as Markdown and llms.txt. For a person it copies a guide as Markdown or an API reference in its own format, and opens a chat about the page in ChatGPT or Claude.

  • A public version needs no sign-in
  • A member-only version needs a token of someone who can open it
  • A version behind a share link is not served to agents
  • One switch per repository turns agent access off
docs.acme.dev/2.1.0/docs/getting-started.md
The Copy page menu of a published Markdown page with the addresses AI agents read

One line connects a coding agent

Paste the copied command into a terminal, or add the URL to any MCP client as a remote server. A public document needs no other configuration. Without MCP, give the agent the llms.txt address.

On your own domain the document also answers at short addresses: /llms.txt, /skill.md and /mcp, and any page requested with Accept: text/markdown comes back as Markdown.

Connect Claude Code to a published document, commands only
$ claude mcp add --transport http petstore https://app.apigit.com/api/v1/published/acme/petstore/mcp$ apigit doc view 2.1.0     # prints the same addresses under "agent"

Connect an agent to your APIGit account

The APIGit MCP server lets an agent work with what you can see: repositories, OpenAPI files at any branch, tag or commit, the changes between two of them, pull requests, published documents, mock servers with their request logs, and your organization's governance rules.

It has two addresses. /api/v1/mcp/readonly has the read tools only, so nothing can change. /api/v1/mcp adds the write tools.

  • A chat application signs in on a consent page that shows what it asks for, with the permission to change things set apart
  • A coding agent uses your CLI login, so no token sits in a configuration file
  • Any other client sends a personal access token in a header
  • Revoke an application at any time in Settings
  • A toolsets parameter narrows the list of tools an agent sees
app.apigit.com/login/oauth/authorize
The APIGit consent page where you authorize an AI application and see what it may read

Agents propose. People merge.

Turn on the write tools and an agent can fix a governance finding or draft a new endpoint for you. It works the way a careful colleague would: on a branch, through a pull request.

Branches and pull requests

An agent creates a branch, commits or patches files on it and opens a pull request. It never commits to the default branch or a protected branch, and there is no merge tool.

Publishing stays private

An agent can publish, move or remove a document version or a mock server. It can never make a document public or turn a mock server's access control off. Those stay with you.

Your permissions, nothing more

Every call needs the permission the same action needs in the application, and each write tool is marked as changing or destructive, so your agent host can ask you before it runs one.

Local-first, with the apigit command line

Your coding agent already works in your terminal, on a clone of your repository. The CLI lets it do the API work there, and an Agent Skill teaches it the commands.

~/orders-api
$ apigit skills installWrote .agents/skills/apigit-cli$ apigit lint openapi.yamlNo problems found.$ apigit diff HEAD~1 HEAD openapi.yaml1 change(s), 0 breaking. Not breaking  GET /orders/{orderId}: parameter query include added$ apigit breaking HEAD~1 HEAD openapi.yamlNo breaking change.
Publish and connect, commands only
$ apigit auth login$ apigit doc publish --version 1.2.0$ apigit mock publish --name petstore --type spec --mount openapi.yaml$ apigit agent setup            # Claude Code; or --client cursor, --client vscode$ apigit agent setup --write    # adds the tools that change things

Checks with no account

lint, score, bundle, diff and breaking work offline, with the same rule sets as the APIGit editor. lint also covers AsyncAPI and GraphQL schemas.

A preview and a mock on your machine

preview shows the repository as the published site will, in the repository's saved look when you are signed in. mock serve runs an OpenAPI, GraphQL or code-based mock as the hosted one answers.

An MCP server that starts read-only

agent setup adds tools on the files in your working directory and the read tools of your account. Nothing can change a repository, a document or a mock until you add --write.

The same checks in CI

Fail a pull request on a breaking change, or require your organization's rule sets as a check. GitHub Actions can sign in without a stored secret. Free to use, no telemetry.

Make your API documents agent-ready

Publish OpenAPI, AsyncAPI, GraphQL and Markdown on APIGit so people and AI agents read the same version.

Free for individuals. No credit card.

$ npm install -g @apigit/cli$ apigit auth login$ apigit doc publish