cd /news/developer-tools/live-api-specs-for-coding-agents · home topics developer-tools article
[ARTICLE · art-115731] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Live API specs for coding agents

A developer released docs-mcpserver, an MCP server that serves live OpenAPI specs to coding agents one operation at a time, caching the spec from a running service and updating it in the background. The tool aims to reduce token usage and avoid stale documentation by providing real, current API definitions directly to agents.

read1 min views2 publishedAug 30, 2026

An agent writing frontend code has to know the backend's API. It has three options. It can read the backend source and work out from scratch what the service already publishes. It can ask you, which promotes you to API documentation. Or it can swallow the entire OpenAPI document in order to use one route out of it.

Then it does the same thing again tomorrow, against a stale swagger.json

you exported last week.

docs-mcpserver

takes the spec straight from the running service, caches it, and serves it one operation at a time.

{
  "cacheDir": "./cache",
  "libraries": [
    {
      "name": "orders-api",
      "description": "Order handling service",
      "sources": [
        {
          "type": "url",
          "origin": "https://localhost:5001/openapi/v1.json",
          "kind": "schema",
          "name": "orders"
        }
      ]
    }
  ]
}
npm install -g docs-mcpserver
claude mcp add docs -- docs-mcpserver --config /path/to/dev-docs.json

That is the whole setup.

The agent lists the definitions in orders

, picks the one it needs, and fetches that. For an OpenAPI document the path operations are exposed as definitions named GET /orders/{id}

, so it can also search by keyword.

A few hundred tokens for the operation it is writing against, instead of the entire document. That keeps working as the service grows, which a pasted spec does not.

Every call is answered from the cached spec, never from the network. The fetch happens on startup and then in the background while you work, so an endpoint you added 20 seconds ago is already visible.

Start the backend once, shut it down, and keep building the frontend. The agent still has real routes and real payload shapes. If the service is down, or answers with something that is not a spec, the last known-good copy keeps being served.

Code and issues: github.com/jgauffin/dev-docs-mcp. On npm as docs-mcpserver

.

── more in #developer-tools 4 stories · sorted by recency
── more on @docs-mcpserver 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/live-api-specs-for-c…] indexed:0 read:1min 2026-08-30 ·