How AI-Native API Documentation Changes the Developer Workflow DocStar is a tool that lets a coding agent such as Claude Code, Cursor, or Codex read an API repository and generate documentation directly from the implemented routes, parameters, and responses, without requiring a hand-written OpenAPI file first. From a single documented API it produces five connected outputs, including llms.txt and Markdown pages, a hosted MCP server that lets agents search docs and make authenticated API calls, a CLI, and an OpenAPI export. The approach moves documentation into the development loop, with engineers reviewing agent-generated first passes rather than manually tracking every route change. API documentation has traditionally been treated as a publishing task: write Markdown or MDX, maintain an OpenAPI file, add examples, and remember to update everything when the code changes. That workflow can work. But it puts documentation one step away from the source of truth: the codebase. An AI-native workflow starts somewhere different. Your coding agent already has access to the routes, parameters, responses, authentication flow, and surrounding implementation. Instead of asking a separate documentation team to reconstruct that context, you can ask the agent to turn the code into a complete developer experience. The most useful API documentation is accurate, discoverable, and close to the code. The problem is that APIs change constantly. A renamed parameter, new response shape, or added route can leave a carefully written reference behind. With DocStar, the setup is designed around a coding agent. You paste one prompt into Claude Code, Cursor, or Codex while working in your API repository. The agent reads the codebase and produces documentation from what is actually implemented. You do not need to write an OpenAPI file before getting started, although existing OpenAPI 3, Swagger 2, and Postman collections can also be imported. This changes the workflow from “write docs, then try to keep them synchronized” to “generate the documentation from the same source developers are already changing.” A docs page is important, but it is not the only way developers work with an API. An AI-native documentation workflow should make the same information available in the formats different tools need. DocStar produces five connected outputs: llms.txt and Markdown pages The benefit is not just the number of outputs. It is that they come from the same documented API rather than being maintained as unrelated projects. Model Context Protocol gives applications a standard way to provide context to language models. For an API team, that creates a practical connection between documentation and agent workflows. A hosted MCP server can expose the information an agent needs: search the docs, inspect an exact endpoint contract, and then make a real authenticated API call when the workflow permits it. That is different from giving an agent a large collection of pages and hoping it finds the right details. When the MCP server is generated alongside the reference, changes to an endpoint can be reflected in both surfaces. The docs explain the contract; MCP makes that contract usable by an agent. Not every developer wants to open a browser. A CLI is useful for exploring endpoints, testing a workflow, and incorporating API actions into scripts. Generating a CLI from the same API documentation avoids another common split: one interface for the website and a different, manually maintained interface for the terminal. When the reference changes, the command surface should change with it. This approach does not remove review. Teams still need to decide whether generated descriptions are clear, whether examples are safe, and whether a change should be published. The difference is where the repetitive work happens. Instead of asking someone to manually discover every new route and update several destinations, the coding agent can do the first pass from the repository. Engineers can review the result and keep ownership of the final developer experience. That makes documentation part of the development loop rather than a separate project that starts after implementation is complete. If your API already has a repository, start with one small service. Ask your coding agent to read the routes and generate the reference. Check the output against the implementation, try the documented requests, and inspect the generated Markdown, MCP surface, CLI, and OpenAPI export. Then repeat the workflow when the API changes. The goal is not to produce more documentation for its own sake. It is to make the information developers and agents need available from the same source, in the places they already work. AI-native API documentation is ultimately a workflow change: code is the input, review is still human, and the published developer experience is produced in one connected pass. To explore the approach, visit DocStar https://docstar.io and see the API documentation overview https://docstar.io/api-docs .