<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Docstar</title>
    <description>The latest articles on DEV Community by Docstar (@docstar_io).</description>
    <link>https://dev.to/docstar_io</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4240919%2Ffc8d3263-1c7f-40ce-8a82-e8c92d00abb2.png</url>
      <title>DEV Community: Docstar</title>
      <link>https://dev.to/docstar_io</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/docstar_io"/>
    <language>en</language>
    <item>
      <title>How to Secure API Tokens for Docs Automation</title>
      <dc:creator>Docstar</dc:creator>
      <pubDate>Thu, 03 Dec 2026 03:40:05 +0000</pubDate>
      <link>https://dev.to/docstar_io/how-to-secure-api-tokens-for-docs-automation-gdf</link>
      <guid>https://dev.to/docstar_io/how-to-secure-api-tokens-for-docs-automation-gdf</guid>
      <description>&lt;p&gt;DocStar lets your scripts, CI jobs and AI agents work with your documentation through API tokens, and a token that leaks gives someone else the same access. The safest setup is simple: use as few tokens as possible, give each tool its own, keep every token in a secret store instead of a chat or a file, and let your AI agent do the generating, storing and rotating so nobody copies keys around by hand. This guide shows how to do that with DocStar, agent first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why API tokens for docs need care
&lt;/h2&gt;

&lt;p&gt;In DocStar, scripts, CI jobs and agents prove they may change your docs with a personal API token. It starts with &lt;code&gt;hm_&lt;/code&gt;, and it is powerful on purpose. In the words of our &lt;a href="https://docstar.io/help/workspaces-and-team/api-tokens" rel="noopener noreferrer"&gt;API Tokens help page&lt;/a&gt;, a token gives full access to the collections in the workspace it was created in. That is exactly what makes automation easy, and exactly why a token pasted into a Slack thread, an issue or a committed &lt;code&gt;.env&lt;/code&gt; file is a real risk.&lt;/p&gt;

&lt;p&gt;Here is how DocStar tokens behave, so you can plan around them:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Property&lt;/th&gt;
&lt;th&gt;How it works in DocStar&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Who can create one&lt;/td&gt;
&lt;td&gt;Only the workspace &lt;strong&gt;Owner&lt;/strong&gt;. Admins and Members don't see the &lt;strong&gt;Auth Key&lt;/strong&gt; option.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How many&lt;/td&gt;
&lt;td&gt;Up to 5 active tokens per workspace&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Names&lt;/td&gt;
&lt;td&gt;Unique within the workspace, including revoked tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Expiry&lt;/td&gt;
&lt;td&gt;None. A token works until you revoke it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Visibility&lt;/td&gt;
&lt;td&gt;Shown once at creation. DocStar stores only a fingerprint, and the value is never shown again.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scope&lt;/td&gt;
&lt;td&gt;One workspace only, with full access to its collections&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Revoking&lt;/td&gt;
&lt;td&gt;Takes effect immediately and can't be undone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A bad or revoked token&lt;/td&gt;
&lt;td&gt;Returns 403 "Invalid API token"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two lines in that table shape everything below. Tokens don't expire, so rotation is your job (or your agent's). And there are only five, so each one should have a clear owner and purpose.&lt;/p&gt;

&lt;h2&gt;
  
  
  The safest token is the one you don't need
&lt;/h2&gt;

&lt;p&gt;Before creating any token, check whether the job needs one at all. With DocStar, most interactive work doesn't.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your AI assistant signs in instead.&lt;/strong&gt; When you connect Claude Code, Cursor, Codex or another assistant to the DocStar MCP at &lt;code&gt;https://mcp.docstar.io/mcp&lt;/code&gt; (or from your assistant's connector directory), the first time it needs your workspace you sign in to DocStar in your browser. There is no API key to copy. The assistant works only with the workspaces and collections your account can access, with the same permissions you have, and it asks before it changes anything. See &lt;a href="https://docstar.io/help/mcp" rel="noopener noreferrer"&gt;Work with AI Assistants (MCP)&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;So the rule of thumb is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;A person working with an assistant:&lt;/strong&gt; browser sign-in through the DocStar MCP. No token.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Unattended automation&lt;/strong&gt; (GitHub Sync, CI, scheduled scripts): one API token per tool, stored as a secret.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;An assistant that can't connect to MCP:&lt;/strong&gt; an Auth Key as a fallback, treated like any other automation token.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Let your AI agent handle tokens (the main path)
&lt;/h2&gt;

&lt;p&gt;The riskiest moment in a token's life is the handoff: copying it from one screen and pasting it into another, where it can land in chat history, a terminal log or a screenshot. With DocStar, your coding agent can do the whole handoff without the value ever appearing in the conversation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Connect your agent to DocStar
&lt;/h3&gt;

&lt;p&gt;Add the DocStar MCP to your coding agent and sign in once in the browser. Open the agent in the repository you want to sync.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Give it one prompt
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Set up DocStar GitHub Sync for this repo. Generate a new DocStar API token named "GitHub Sync acme-api Dec 2026" (use this repo's name and the current month), save it straight into the GitHub secret DOCSTAR_API_KEY with &lt;code&gt;gh secret set&lt;/code&gt;, and never print the token in chat, logs or files. Then list my existing DocStar API tokens and tell me which ones look unused, duplicated or unclear. Don't revoke anything without asking me first.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 3: What the agent does
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Creates the token&lt;/strong&gt; through the DocStar API. The value is returned once.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Stores it as the **&lt;code&gt;DOCSTAR_API_KEY&lt;/code&gt;&lt;/strong&gt; repository secret**, which is where the &lt;a href="https://docstar.io/help/integrations/github-sync" rel="noopener noreferrer"&gt;GitHub Sync&lt;/a&gt; workflow expects it. The DocStar quickstart your agent follows says to save the key as a GitHub secret and never commit it or show it in chat.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;*&lt;em&gt;Adds the workflow and *&lt;/em&gt;&lt;code&gt;docstar.md&lt;/code&gt;, so every push that changes &lt;code&gt;api-docs/&lt;/code&gt; or &lt;code&gt;docs/&lt;/code&gt; syncs to your collection.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Lists your tokens&lt;/strong&gt; with their name, status, created and revoked dates (never their values) and flags anything worth a look.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Asks before revoking.&lt;/strong&gt; Revoking is immediate and permanent, so the decision stays with you.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 4: Your part
&lt;/h3&gt;

&lt;p&gt;The agent does the mechanics. You make the calls only a person can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Is this token still needed?&lt;/strong&gt; You know whether the contractor's script still runs or the old staging pipeline is gone.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Who owns it?&lt;/strong&gt; Since only the Owner can create tokens, decide with your Owner which tools deserve one of the five slots.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;When to revoke.&lt;/strong&gt; Approve each revoke the agent proposes, ideally after the replacement is working.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Store tokens like passwords
&lt;/h2&gt;

&lt;p&gt;Wherever a token lives, it should be somewhere built for secrets:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Where the token is used&lt;/th&gt;
&lt;th&gt;Where to keep it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GitHub Sync / GitHub Actions&lt;/td&gt;
&lt;td&gt;Repository secret &lt;code&gt;DOCSTAR_API_KEY&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Other CI systems&lt;/td&gt;
&lt;td&gt;That system's secret store&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your own scripts&lt;/td&gt;
&lt;td&gt;A password manager or your tool's secret settings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Never&lt;/td&gt;
&lt;td&gt;Public docs, chats, issues, code repositories, screenshots&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Send it only in the &lt;code&gt;Authorization&lt;/code&gt; header (&lt;code&gt;Authorization: Bearer hm_...&lt;/code&gt;), never in a URL, where it can end up in logs and browser history.&lt;/p&gt;

&lt;p&gt;The same thinking runs through the rest of DocStar:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The DocStar CLI&lt;/strong&gt; keeps sign-in tokens in &lt;code&gt;~/.docstar/credentials.json&lt;/code&gt;, readable only by you. It never reads your environment or &lt;code&gt;.env&lt;/code&gt; files, and &lt;code&gt;docstar-cli config get&lt;/code&gt; shows saved keys only by their last 4 characters.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;MCP Logs&lt;/strong&gt; for your collection's MCP server mask tokens, API keys and other secret values, keep calls for two weeks, and are visible only to people with edit access to the collection.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Rotate tokens on a schedule
&lt;/h2&gt;

&lt;p&gt;DocStar tokens don't expire, so a token created today still works in three years unless someone revokes it. Rotation closes that window. Your agent makes it a two-minute job:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Rotate the DocStar token used by GitHub Sync in this repo. Generate a new token named "GitHub Sync acme-api Mar 2027" (this repo's name and the current month), replace the DOCSTAR_API_KEY secret with it, push a small docs change to confirm the sync run succeeds, then ask me before revoking the old token.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The order matters: &lt;strong&gt;new token, update the secret, confirm it works, then revoke the old one.&lt;/strong&gt; That way nothing breaks between steps. Because names must be unique, even among revoked tokens, a date in the name keeps every rotation clean and tells you at a glance how old a token is.&lt;/p&gt;

&lt;p&gt;A sensible rhythm:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;On a schedule&lt;/strong&gt; (for example quarterly) for every automation token.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Immediately&lt;/strong&gt; when someone who had access leaves, when a token may have been exposed, or when a tool is retired.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Give each tool its own token
&lt;/h2&gt;

&lt;p&gt;One shared token for everything is convenient until you need to revoke it and three pipelines break. With one token per tool:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;You can revoke one without touching the others.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The name tells you exactly what breaks if you revoke it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If one leaks, the blast radius is one tool.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a wider view of who should be able to do what, see &lt;a href="https://docstar.io/blog/documentation-roles-and-permissions" rel="noopener noreferrer"&gt;Documentation Roles and Permissions&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your users' tokens: per-user sign-in on your MCP server
&lt;/h2&gt;

&lt;p&gt;Tokens matter on the other side too. When you publish your API docs in DocStar, the collection gets its own hosted MCP server, so your customers' AI assistants can call your API. You don't want them pasting long-lived keys into prompts.&lt;/p&gt;

&lt;p&gt;With &lt;strong&gt;Sign-in for API calls&lt;/strong&gt;, the first time an assistant calls your API, the user signs in with their own account on your platform, and every call runs with their own permissions. Your OAuth app's client secret is stored only on the MCP server and never shown again, and DocStar checks the user's token against your token validation URL on every MCP request. Entering those OAuth details is one of the few steps only a person can do. We cover the full setup in &lt;a href="https://docstar.io/blog/securing-docstar-mcp-server-sign-in-api-keys" rel="noopener noreferrer"&gt;Securing Your DocStar MCP Server&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep it current
&lt;/h2&gt;

&lt;p&gt;Token hygiene isn't a one-time cleanup. Build it into the work you already do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;New repo or tool:&lt;/strong&gt; ask your agent to create a dedicated, dated token and store it as a secret in the same step. Never reuse one.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Offboarding:&lt;/strong&gt; add "review DocStar tokens" to your checklist and ask your agent to list them, so you can revoke anything the person set up.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Quarterly:&lt;/strong&gt; run the rotation prompt above for each automation token.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Audit trail:&lt;/strong&gt; DocStar's activity logs show page events such as edits, moves, publishing and deletions with the team member responsible, so you can trace what changed after an incident.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For the bigger picture of docs as part of your pipeline, read &lt;a href="https://docstar.io/blog/docs-part-of-your-stack-webhooks-github-sync-api" rel="noopener noreferrer"&gt;Make Your Docs Part of Your Stack&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prefer to click?
&lt;/h2&gt;

&lt;p&gt;You can manage tokens by hand too. Click your workspace name at the bottom of the left sidebar and open &lt;strong&gt;Auth Key&lt;/strong&gt;. Under &lt;strong&gt;Generate New Token&lt;/strong&gt;, enter a clear name and click &lt;strong&gt;Generate Token&lt;/strong&gt;, then copy the value straight into your secret store, because it's shown only once. To revoke, click &lt;strong&gt;Revoke&lt;/strong&gt; next to the token in &lt;strong&gt;Your API Tokens&lt;/strong&gt; and confirm.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why teams choose DocStar
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agents without keys.&lt;/strong&gt; Browser sign-in to the DocStar MCP means everyday AI work needs no token at all.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agents that keep secrets out of chat.&lt;/strong&gt; Your coding agent generates the token and stores it as a GitHub secret in one prompt.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;One collection, everything in sync.&lt;/strong&gt; The same docs power your docs site, llms.txt, your MCP server and the CLI, and GitHub Sync updates them all on every push.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Secrets handled carefully everywhere.&lt;/strong&gt; Shown-once tokens, masked MCP Logs, client secrets kept on the server, and a CLI that never reads your &lt;code&gt;.env&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Do DocStar API tokens expire?
&lt;/h3&gt;

&lt;p&gt;No. A token works until you revoke it, so rotate automation tokens on a schedule and revoke any you no longer use.&lt;/p&gt;

&lt;h3&gt;
  
  
  Who can create a DocStar API token?
&lt;/h3&gt;

&lt;p&gt;Only the workspace Owner. Each Owner can have up to 5 active tokens per workspace, and each token works in only one workspace.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need a token to use DocStar from Claude Code or Cursor?
&lt;/h3&gt;

&lt;p&gt;No. Connect the DocStar MCP and sign in in your browser. An Auth Key is only a fallback for assistants that can't connect to MCP.&lt;/p&gt;

&lt;h3&gt;
  
  
  What happens when I revoke a token?
&lt;/h3&gt;

&lt;p&gt;It stops working immediately and any tool using it gets a 403 "Invalid API token". It can't be undone, so set up the replacement first.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can my agent see the token value after it's created?
&lt;/h3&gt;

&lt;p&gt;It sees it once, at creation, and the DocStar quickstart tells it to store the value as a secret without showing it in chat. DocStar itself keeps only a fingerprint.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started free
&lt;/h2&gt;

&lt;p&gt;Connect your AI agent to DocStar, set up GitHub Sync with a token it stores safely, and let it keep your docs, MCP server and CLI in sync. &lt;a href="https://app.docstar.io/login" rel="noopener noreferrer"&gt;Get started free&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://docstar.io/blog/secure-api-tokens" rel="noopener noreferrer"&gt;DocStar blog&lt;/a&gt;.&lt;/em&gt; Try DocStar free: &lt;a href="https://docstar.io" rel="noopener noreferrer"&gt;https://docstar.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>api</category>
      <category>security</category>
      <category>github</category>
    </item>
    <item>
      <title>What Is API Documentation? A Plain-English Guide</title>
      <dc:creator>Docstar</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:40:04 +0000</pubDate>
      <link>https://dev.to/docstar_io/what-is-api-documentation-a-plain-english-guide-1mbe</link>
      <guid>https://dev.to/docstar_io/what-is-api-documentation-a-plain-english-guide-1mbe</guid>
      <description>&lt;p&gt;At DocStar, we build API documentation for two readers: people and AI agents. In plain terms, &lt;strong&gt;API documentation explains what an API does, which endpoints it has, how to authenticate, what to send in each request and what comes back, with examples a developer can copy and run.&lt;/strong&gt; Good API docs get someone from "what is this?" to a working first call in minutes.&lt;/p&gt;

&lt;p&gt;What has changed is who reads the docs: developers, search engines, and AI assistants such as Claude, ChatGPT and Cursor that call your API on a user's behalf. This guide covers what API documentation includes, the main types, and how we build it at DocStar with an AI agent doing most of the writing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What API documentation includes
&lt;/h2&gt;

&lt;p&gt;Every useful API reference covers the same core pieces. If one is missing, developers open a support ticket, and AI agents guess (and their calls fail).&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;th&gt;What it answers&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Overview&lt;/td&gt;
&lt;td&gt;What the API does and who it's for&lt;/td&gt;
&lt;td&gt;"The Payments API creates and refunds charges."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Authentication&lt;/td&gt;
&lt;td&gt;How to prove who you are&lt;/td&gt;
&lt;td&gt;API key in a header, OAuth 2.0 sign-in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Endpoints&lt;/td&gt;
&lt;td&gt;Every method and URL&lt;/td&gt;
&lt;td&gt;&lt;code&gt;POST https://api.example.com/v1/payments&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Parameters and body&lt;/td&gt;
&lt;td&gt;What to send, with types and which fields are required&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;amount&lt;/code&gt; (number, required, in cents)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Responses&lt;/td&gt;
&lt;td&gt;What comes back on success and on error&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;200&lt;/code&gt; with the payment object, &lt;code&gt;422&lt;/code&gt; with the field that failed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code samples&lt;/td&gt;
&lt;td&gt;Copy-paste requests in common languages&lt;/td&gt;
&lt;td&gt;cURL, Node, Python&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Guides&lt;/td&gt;
&lt;td&gt;How to finish a real task end to end&lt;/td&gt;
&lt;td&gt;"Accept your first payment"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Changelog&lt;/td&gt;
&lt;td&gt;What changed and when&lt;/td&gt;
&lt;td&gt;"v2 renames &lt;code&gt;customer&lt;/code&gt; to &lt;code&gt;customer_id&lt;/code&gt;"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The main types of API documentation
&lt;/h2&gt;

&lt;p&gt;Most teams need four kinds of pages, and they work best side by side in one place:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Reference docs:&lt;/strong&gt; one page per endpoint, generated from or kept in step with a spec such as OpenAPI. If you're new to specs, see &lt;a href="https://docstar.io/blog/what-is-openapi" rel="noopener noreferrer"&gt;What Is OpenAPI?&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Getting started guides and tutorials:&lt;/strong&gt; the shortest path to a first successful call, then task-based walkthroughs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Conceptual docs:&lt;/strong&gt; how the system thinks: objects, limits, webhooks, versioning.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Release notes and changelog:&lt;/strong&gt; so integrators know when something changed and what to update.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In DocStar, all four sit in one workspace: an API collection for the reference, docs pages for guides and concepts, and &lt;strong&gt;Updates&lt;/strong&gt; for the changelog, where AI can draft release notes from recently updated pages for you to approve.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why API documentation matters more now
&lt;/h2&gt;

&lt;p&gt;API docs used to be "for developers." Now they feed several readers at once:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Developers&lt;/strong&gt; decide whether to adopt your API from the docs, often before they talk to anyone.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Search engines and AI answers&lt;/strong&gt; quote docs that are clear, structured and indexable.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;AI agents&lt;/strong&gt; read your docs to pick the right endpoint and fill in the request. If a field name in the docs is wrong, the agent sends the wrong field and the call fails.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Docs that are "close enough" for a human who can experiment aren't good enough for an agent that takes them literally. That's the problem DocStar was built around.&lt;/p&gt;

&lt;h2&gt;
  
  
  How API documentation works in DocStar
&lt;/h2&gt;

&lt;p&gt;In DocStar, one API collection is your whole developer surface. You document the API once, publish it, and that collection gives you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;A public, interactive API reference.&lt;/strong&gt; Readers see the URL, parameters, headers, body fields and sample responses. They can click &lt;strong&gt;TRY&lt;/strong&gt; to send the request from the docs and see the live response, copy code snippets in Shell (cURL), Node, Python, Java, Go and PHP, and fill in variables from a public environment you choose to share.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;An MCP server for the collection.&lt;/strong&gt; AI assistants such as Claude, ChatGPT, Cursor and VS Code can search your API docs and call your endpoints, with sign-in so users call your API with their own account. You can pick up to 20 of your most important endpoints as tools of their own and write the skill and instructions assistants follow.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;CLI commands.&lt;/strong&gt; The DocStar CLI turns published API docs into terminal commands and AI tools.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;AI-readable copies.&lt;/strong&gt; DocStar generates &lt;code&gt;llms.txt&lt;/code&gt;, a sitemap and a Markdown copy of every page, so AI tools can read your docs without scraping HTML.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So when you fix a parameter description in DocStar, you fix it for the human reader, the agent and the CLI at the same time.&lt;/p&gt;

&lt;h3&gt;
  
  
  Let your AI agent write the API docs
&lt;/h3&gt;

&lt;p&gt;Our main workflow is agent-first. Instead of typing endpoint pages by hand, you connect your coding agent to DocStar and let it document the API from your code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Connect your agent to the DocStar MCP.&lt;/strong&gt; In Claude Code, Cursor, Codex or another assistant, add DocStar from the connector directory if it's listed, or add it as a custom remote MCP server with this URL: &lt;code&gt;https://mcp.docstar.io/mcp&lt;/code&gt;. The first time the agent needs your workspace, you sign in to DocStar in your browser. There's no API key to copy, and the agent works only with the workspaces and collections your account can access. Details: &lt;a href="https://docstar.io/help/mcp/connect-ai-assistant" rel="noopener noreferrer"&gt;Connect Your AI Assistant&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Give it one prompt.&lt;/strong&gt; Open your API repo and paste something like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use the DocStar MCP to document my API. Read my latest code (routes, controllers and validation), not an old spec. Create an API collection called "Payments API" and document every public endpoint: a clear description, auth, headers, path and query params, a full JSON body example with a description for every field, and success and error responses. Skip internal and admin endpoints and list them for me. Group endpoints into modules with a short description each. Show me your plan before you change anything, and save everything as drafts.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;3. The agent does the work.&lt;/strong&gt; It reads the code, proposes a plan (modules, endpoints, what it will skip), and asks before it changes anything. Then it creates the collection and writes each endpoint page with real field types, required flags and example responses. If you already have an OpenAPI 3.x, Swagger 2.0 or Postman file, it can start from that instead, since DocStar imports all three.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. You review and publish.&lt;/strong&gt; Your job is judgment: what stays private, naming, tone, and checking the examples match reality. Open the drafts in DocStar, fix anything that reads wrong, and publish. Publishing is what makes the reference public and turns endpoints into MCP tools and CLI commands.&lt;/p&gt;

&lt;p&gt;For a full walkthrough of this flow, see &lt;a href="https://docstar.io/blog/how-to-document-a-rest-api" rel="noopener noreferrer"&gt;How to Document a REST API&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Keep it current
&lt;/h3&gt;

&lt;p&gt;API docs go stale the moment someone renames a field and the docs get updated later, by someone else, or never. In DocStar that matters more, because the same docs feed your docs site, &lt;code&gt;llms.txt&lt;/code&gt;, the MCP server agents use to call your API, and the CLI. Wrong docs now break agents, not just confuse people.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Sync&lt;/strong&gt; keeps the docs next to the code so they change in the same pull request. OpenAPI files live in &lt;code&gt;api-docs/&lt;/code&gt; and Markdown pages in &lt;code&gt;docs/&lt;/code&gt;. On every push, a GitHub Action sends the changed files to DocStar, so the docs site, MCP tools and CLI commands update with no manual import. A &lt;code&gt;docstar.md&lt;/code&gt; file plus one line in &lt;code&gt;AGENTS.md&lt;/code&gt; (or &lt;code&gt;CLAUDE.md&lt;/code&gt;, or &lt;code&gt;.github/copilot-instructions.md&lt;/code&gt;) tells your coding agent to update the endpoint's spec whenever it adds, changes, renames or removes an endpoint. Spec changes then show up in the PR diff, so docs get reviewed like code.&lt;/p&gt;

&lt;p&gt;You don't have to wire this up by hand. With the DocStar MCP connected, ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Set up DocStar GitHub Sync for this repo.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent creates or picks the collection, writes the OpenAPI files from your code, generates an API token and stores it as the &lt;code&gt;DOCSTAR_API_KEY&lt;/code&gt; GitHub secret without showing it in chat, adds the workflow and &lt;code&gt;docstar.md&lt;/code&gt;, and hands back your MCP URL.&lt;/p&gt;

&lt;p&gt;To be clear about the limits: the agent still has to do the update. If someone changes code without an agent, or the agent skips the &lt;code&gt;docstar.md&lt;/code&gt; rule, the docs can drift and nothing catches it automatically. DocStar doesn't watch your repo or compare code with docs. What GitHub Sync gives you is docs that change in the same pull request as the code, so the agents calling your API don't use an outdated contract. More in &lt;a href="https://docstar.io/help/integrations/github-sync" rel="noopener noreferrer"&gt;GitHub Sync&lt;/a&gt; and &lt;a href="https://docstar.io/blog/keep-api-docs-in-sync-with-code" rel="noopener noreferrer"&gt;How to Keep Your API Docs in Sync with Your Code&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prefer to write it yourself?
&lt;/h3&gt;

&lt;p&gt;You can. In a DocStar API collection, create an endpoint, paste a cURL command into the URL bar to fill in the method, URL, headers and body, send the request, and click &lt;strong&gt;Add to Sample Response&lt;/strong&gt; to save a real response to the docs. You can also import an OpenAPI or Postman file to create the whole collection in one step, and export it later as a DocStar file or an OpenAPI file. See &lt;a href="https://docstar.io/help/api-documentation" rel="noopener noreferrer"&gt;API Documentation&lt;/a&gt; in our help docs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes API documentation good
&lt;/h2&gt;

&lt;p&gt;Whether a person or an agent writes it, the same checklist applies:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Every field has a type, a "required" flag and a description.&lt;/strong&gt; "id: string" isn't enough. Say which id, and where it comes from.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Every endpoint has a real request and a real response.&lt;/strong&gt; Include at least one error response with the reason.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Auth is explained once, clearly, and linked from every endpoint.&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Full URLs, not placeholders.&lt;/strong&gt; Agents and code snippets need a host they can call.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Task guides sit next to the reference.&lt;/strong&gt; Developers search for a job ("refund a payment"), not an endpoint name.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Docs change with the code.&lt;/strong&gt; Stale docs are worse than missing docs because people trust them.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The DocStar agent prompt above asks for exactly this on every endpoint, and GitHub Sync keeps it moving with the code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why teams choose DocStar
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;One collection, three outputs:&lt;/strong&gt; an interactive API reference, an MCP server and CLI commands, from the same docs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agent-first by design:&lt;/strong&gt; your coding agent documents the API from the code, asks before it changes anything, and you review and publish.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;AI-ready out of the box:&lt;/strong&gt; &lt;code&gt;llms.txt&lt;/code&gt;, a sitemap and Markdown copies of every page are generated for you.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Try it in the docs:&lt;/strong&gt; TRY buttons, public environments and code snippets in six languages.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Docs that live with your code:&lt;/strong&gt; GitHub Sync publishes spec changes on every push.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;More than API reference:&lt;/strong&gt; help docs, FAQs, changelog and blog in the same workspace, on your own domain.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What is the difference between API documentation and an API reference?&lt;/strong&gt; An API reference is one part of API documentation: the per-endpoint pages with URLs, parameters and responses. API documentation also includes getting started guides, tutorials, concepts and the changelog. In DocStar, all of these live in one workspace.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can AI write my API documentation?&lt;/strong&gt; Yes. Connect Claude Code, Cursor, Codex or another assistant to the DocStar MCP and ask it to document your API from your code. It drafts every endpoint, asks before changing anything, and leaves the pages as drafts for you to review and publish.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need an OpenAPI file to use DocStar?&lt;/strong&gt; No. Your agent can document endpoints straight from your code, or you can create them by hand or from a cURL command. If you do have an OpenAPI 3.x, Swagger 2.0 or Postman file, DocStar imports it in one step.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do AI agents use my API docs in DocStar?&lt;/strong&gt; Every API collection can run its own MCP server. AI assistants connect with one URL, search your docs and call your endpoints, with users signing in so calls run with their own account.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Will my API docs show up in Google?&lt;/strong&gt; Connect a custom domain. Pages on the default DocStar link are marked noindex, while docs on your own domain get a sitemap, &lt;code&gt;robots.txt&lt;/code&gt; and &lt;code&gt;llms.txt&lt;/code&gt; served for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started free
&lt;/h2&gt;

&lt;p&gt;Document your API once and get an interactive reference, an MCP server and a CLI from the same docs. Connect your coding agent to the DocStar MCP, paste the prompt above, and review the drafts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://app.docstar.io/login" rel="noopener noreferrer"&gt;Get started free&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://docstar.io/blog/what-is-api-documentation" rel="noopener noreferrer"&gt;DocStar blog&lt;/a&gt;.&lt;/em&gt; Try DocStar free: &lt;a href="https://docstar.io" rel="noopener noreferrer"&gt;https://docstar.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>openapi</category>
      <category>ai</category>
      <category>api</category>
    </item>
    <item>
      <title>How to Write a Documentation Style Guide AI Agents Follow</title>
      <dc:creator>Docstar</dc:creator>
      <pubDate>Sun, 29 Nov 2026 07:40:04 +0000</pubDate>
      <link>https://dev.to/docstar_io/how-to-write-a-documentation-style-guide-ai-agents-follow-23i4</link>
      <guid>https://dev.to/docstar_io/how-to-write-a-documentation-style-guide-ai-agents-follow-23i4</guid>
      <description>&lt;p&gt;With DocStar, a documentation style guide stops being a PDF nobody opens and becomes a short file your AI coding agent reads before it writes a single page. Put your rules in your repo's &lt;code&gt;AGENTS.md&lt;/code&gt; (or &lt;code&gt;CLAUDE.md&lt;/code&gt;), connect Claude Code, Cursor or Codex to the DocStar MCP, and the agent drafts and fixes your docs in your voice, saves everything as drafts, and waits for you to review and publish. This guide shows what to put in an AI-ready style guide and how to make your agent follow it every time.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a documentation style guide for AI agents?
&lt;/h2&gt;

&lt;p&gt;A documentation style guide for AI agents is a short, plain-text set of writing rules (voice, terms, page structure, formatting and what never to publish) stored where a coding agent reads it automatically, such as &lt;code&gt;AGENTS.md&lt;/code&gt;. Unlike a traditional style guide, it is written as direct instructions an agent can check its own output against.&lt;/p&gt;

&lt;p&gt;Agents follow rules literally. "Be friendly but professional" gives an agent nothing to check; "Address the reader as 'you'. Never use 'simply'." does.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Traditional style guide&lt;/th&gt;
&lt;th&gt;Style guide for AI agents&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Long document in a wiki&lt;/td&gt;
&lt;td&gt;One short section or file in the repo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Written for people to absorb over time&lt;/td&gt;
&lt;td&gt;Written as rules an agent checks on every page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Examples of good prose&lt;/td&gt;
&lt;td&gt;Do / don't pairs and exact terms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enforced in human review&lt;/td&gt;
&lt;td&gt;Followed while drafting, then confirmed in review&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Often out of date&lt;/td&gt;
&lt;td&gt;Versioned next to the code it describes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Why a style guide matters more in DocStar
&lt;/h2&gt;

&lt;p&gt;In DocStar, one published page does a lot of work. The same collection becomes your docs site, an &lt;code&gt;llms.txt&lt;/code&gt; entry and a Markdown copy of every page, and it is searchable through your collection's MCP server. For API collections, endpoint docs also become MCP tools AI assistants can call and commands in the DocStar CLI.&lt;/p&gt;

&lt;p&gt;So inconsistent writing costs more. If one page says "workspace" and another "organization" for the same thing, a person might work it out; an AI assistant reading your docs through your MCP server may not. A clear style guide keeps every page, and every surface built from it, saying the same thing the same way. Our &lt;a href="https://docstar.io/blog/documentation-best-practices" rel="noopener noreferrer"&gt;documentation best practices guide&lt;/a&gt; covers the structure side; the style guide covers the words.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to put in your AI-ready style guide
&lt;/h2&gt;

&lt;p&gt;Keep it under a page. Agents read the whole file on every task, and short rules get followed. Here are the sections we recommend for a DocStar docs collection.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Voice and reader
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Who the reader is ("developers integrating our API" or "admins setting up the product").&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How you address them ("you", never "the user").&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Tone in one line ("plain, direct, no marketing language").&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Banned words ("simply", "just", "easy", "obviously").&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Terminology
&lt;/h3&gt;

&lt;p&gt;A table of the exact names for your product's objects, and the words not to use. This is the section that prevents most confusion for people and agents alike.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Use&lt;/th&gt;
&lt;th&gt;Don't use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;workspace&lt;/td&gt;
&lt;td&gt;org, account, team space&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API key&lt;/td&gt;
&lt;td&gt;token, secret key (unless it really is a different thing)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;collection&lt;/td&gt;
&lt;td&gt;project, site&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  3. Page structure
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;One topic per page.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;First two sentences say what the page is for and what the reader will have at the end.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Steps are numbered, one action each, and end with a check ("You should now see...").&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Page names are the reader's task ("Reset a password"), not the feature name.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Slugs are short and lowercase.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. API endpoint docs
&lt;/h3&gt;

&lt;p&gt;If you document an API in DocStar, add rules for endpoints, because these are the docs AI assistants act on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Every endpoint has a clear description of what it does.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Every parameter is described, with type and whether it's required.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Every request has a full JSON body example.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Every endpoint shows a success response and the common error responses.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use full URLs, not placeholders.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. What never goes in public docs
&lt;/h3&gt;

&lt;p&gt;This is a judgment call only your team can make, so write it down: internal and admin endpoints, unreleased features, customer names, and anything you would not want an AI assistant to repeat. DocStar's own &lt;code&gt;docstar.md&lt;/code&gt; already tells coding agents to document only the endpoints your users call and never private or admin ones; your style guide should add anything specific to your product.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to make your AI agent follow it with DocStar
&lt;/h2&gt;

&lt;p&gt;DocStar is built to be run by AI agents. You don't paste your style guide into every prompt; you put it where the agent reads it, connect the agent to DocStar, and ask for the work in plain language.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Put the style guide where your agent reads it
&lt;/h3&gt;

&lt;p&gt;Coding agents read an instruction file in the root of your repo on every task. DocStar's &lt;a href="https://docstar.io/help/integrations/github-sync" rel="noopener noreferrer"&gt;GitHub Sync guide&lt;/a&gt; lists which file each one uses:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;AI assistant&lt;/th&gt;
&lt;th&gt;Instruction file&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Codex, Cursor and most other agents&lt;/td&gt;
&lt;td&gt;&lt;code&gt;AGENTS.md&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;CLAUDE.md&lt;/code&gt; (or put &lt;code&gt;@AGENTS.md&lt;/code&gt; in it to reuse &lt;code&gt;AGENTS.md&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub Copilot&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.github/copilot-instructions.md&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Add a &lt;code&gt;## Docs style guide&lt;/code&gt; section to that file, or keep the rules in their own Markdown file and add one line pointing to it. New to these files? Read &lt;a href="https://docstar.io/blog/what-is-agents-md" rel="noopener noreferrer"&gt;What Is AGENTS.md?&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Connect your agent to the DocStar MCP
&lt;/h3&gt;

&lt;p&gt;Add &lt;code&gt;https://mcp.docstar.io/mcp&lt;/code&gt; to Claude Code, Cursor, Codex or another assistant (or add DocStar from your assistant's connector directory). The first time the agent needs your workspace, you sign in to DocStar in your browser. There is no API key to copy, and the agent works only with the workspaces and collections your DocStar account can access, with the same permissions you have. See &lt;a href="https://docstar.io/help/mcp/connect-ai-assistant" rel="noopener noreferrer"&gt;Connect your AI assistant&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Let the agent write the style guide for you
&lt;/h3&gt;

&lt;p&gt;You don't have to start from a blank file. Open your agent in your product's repo and paste:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use the DocStar MCP to read every published page in our docs collection, and read our code for the names we use for objects and endpoints. Then draft a documentation style guide as a "Docs style guide" section in AGENTS.md, under one page: voice and reader, a terminology table (the term to use and the terms to avoid), page structure, API endpoint rules, formatting, and what must never go in public docs. Base the rules on what our best pages already do, and list the places where our existing pages disagree with each other so I can pick the winner. Don't change any DocStar pages yet.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent reads your pages and code, proposes the rules, and flags the conflicts ("12 pages say workspace, 5 say organization"). You decide which term wins.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Apply it to your existing docs
&lt;/h3&gt;

&lt;p&gt;Once you have approved the guide, ask the agent to bring your docs in line:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Using the DocStar MCP and the "Docs style guide" in AGENTS.md, check every page in our docs collection against the style guide. Give me a list of pages that break it, grouped by rule. Then fix them as drafts, show me the changes before you save, and don't publish.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A connected agent can find the right collection and pages, read each one, rewrite it, and save the new version. It asks before it changes anything, and every edit is saved as a draft, so nothing reaches your live docs until you publish. For a broader pass that also checks accuracy and gaps, see &lt;a href="https://docstar.io/blog/audit-docs-with-ai" rel="noopener noreferrer"&gt;How to Audit Your Docs with an AI Agent&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Review and publish
&lt;/h3&gt;

&lt;p&gt;Your role is the part only a person should do: the judgment calls. Confirm the terminology choices, check that the tone sounds like your team, make sure nothing private slipped in, and read the drafts for accuracy. Our guide to &lt;a href="https://docstar.io/blog/review-ai-written-docs" rel="noopener noreferrer"&gt;reviewing AI-written docs before they go live&lt;/a&gt; has a checklist. Then publish, and every surface built from the collection picks up the change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep it current
&lt;/h2&gt;

&lt;p&gt;A style guide only works if every new page follows it, including the ones written next month.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Every new doc follows it automatically.&lt;/strong&gt; Because the rules live in &lt;code&gt;AGENTS.md&lt;/code&gt;, your coding agent reads them every time it writes or updates a page through the DocStar MCP. No reminder needed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Docs change with the code.&lt;/strong&gt; With GitHub Sync, OpenAPI files live in &lt;code&gt;api-docs/&lt;/code&gt; and Markdown pages in &lt;code&gt;docs/&lt;/code&gt;, next to your code. &lt;code&gt;docstar.md&lt;/code&gt; plus one line in &lt;code&gt;AGENTS.md&lt;/code&gt; tells your agent to update the endpoint's spec in the same change, and on push a GitHub Action sends the changed files to DocStar. Style-guide fixes and spec changes show up in the pull request diff, so you review docs like code.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Update the guide when the product changes.&lt;/strong&gt; When you rename something, ask the agent: "Update the terminology table in AGENTS.md for the rename from X to Y, then find every DocStar page that uses the old name and fix it as a draft."&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One honest limit: this works when the agent does the writing. If someone edits a page by hand without the rules, or changes code without an agent, pages can drift from the style guide, and DocStar does not police your repo for you. A monthly check with the prompt in Step 4 catches what slips through.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your style guide and your MCP server
&lt;/h2&gt;

&lt;p&gt;If you document an API in DocStar, your collection's MCP server lets your users' AI assistants call it, and you can add a &lt;strong&gt;Skill&lt;/strong&gt; (the guide assistants read before using your API) and &lt;strong&gt;Instructions&lt;/strong&gt; (rules they follow every time they connect). Your style guide shapes how your docs are written; the skill and instructions shape how other assistants use them. Keep the terminology identical in both.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prefer to write it yourself?
&lt;/h2&gt;

&lt;p&gt;You can. Write the guide by hand in &lt;code&gt;AGENTS.md&lt;/code&gt; using the five sections above, then edit pages in the DocStar editor. The editor's AI tools can rephrase a draft for you, and DocStar's Writing Good AI Prompts guide recommends saying the style you want in every prompt. The agent path is faster for a whole collection, but the rules are the same.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why teams choose DocStar
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agent-first.&lt;/strong&gt; Connect Claude Code, Cursor or Codex with one URL and browser sign-in. The agent writes in your style; you review and publish.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Safe by design.&lt;/strong&gt; The agent asks before changing anything, and every edit starts as a draft.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Write once, serve everywhere.&lt;/strong&gt; One collection is your docs site, &lt;code&gt;llms.txt&lt;/code&gt;, Markdown copies, an MCP server and, for API docs, a CLI, all in the same voice.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Docs next to the code.&lt;/strong&gt; GitHub Sync keeps docs in the same pull request as the code they describe.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Where should I keep a documentation style guide for AI agents?&lt;/strong&gt; In the instruction file your coding agent reads automatically: &lt;code&gt;AGENTS.md&lt;/code&gt; for Codex, Cursor and most agents, &lt;code&gt;CLAUDE.md&lt;/code&gt; for Claude Code, or &lt;code&gt;.github/copilot-instructions.md&lt;/code&gt; for GitHub Copilot.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can DocStar's MCP rewrite my existing pages to match the style guide?&lt;/strong&gt; Yes. Connect your agent to the DocStar MCP and ask it to check and fix pages against the guide. It reads each page, rewrites it, asks before saving, and saves every change as a draft for you to publish.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Will my agent publish pages without asking?&lt;/strong&gt; No. The DocStar MCP shows you what it will create, change or publish and waits for your OK, and edits are saved as drafts until you publish.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need GitHub Sync to use a style guide with DocStar?&lt;/strong&gt; No. The style guide works with any agent connected to the DocStar MCP. GitHub Sync adds docs that live in your repo and change in the same pull request as the code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How long should the style guide be?&lt;/strong&gt; Under a page. Short, specific rules with a terminology table get followed; long essays get skimmed by people and agents alike.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started free
&lt;/h2&gt;

&lt;p&gt;Write your style guide once, and let your AI agent apply it to every page in DocStar. &lt;a href="https://app.docstar.io/login" rel="noopener noreferrer"&gt;Get started free&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://docstar.io/blog/documentation-style-guide-for-ai" rel="noopener noreferrer"&gt;DocStar blog&lt;/a&gt;.&lt;/em&gt; Try DocStar free: &lt;a href="https://docstar.io" rel="noopener noreferrer"&gt;https://docstar.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>documentation</category>
      <category>devtools</category>
    </item>
    <item>
      <title>Documentation Best Practices for People and AI Agents</title>
      <dc:creator>Docstar</dc:creator>
      <pubDate>Sat, 28 Nov 2026 07:40:04 +0000</pubDate>
      <link>https://dev.to/docstar_io/documentation-best-practices-for-people-and-ai-agents-21el</link>
      <guid>https://dev.to/docstar_io/documentation-best-practices-for-people-and-ai-agents-21el</guid>
      <description>&lt;p&gt;With DocStar, documentation best practices come down to one idea: write each page once, clearly enough that a person can skim it and an AI agent can act on it, then let DocStar serve that same page as a docs site, an &lt;code&gt;llms.txt&lt;/code&gt; entry, a Markdown copy, an MCP server and (for API docs) a CLI. In 2026 your readers include coding agents and AI assistants, so "good docs" now means docs both can use. Below are the practices we follow ourselves, and how your AI agent can apply them to your docs in one prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Documentation best practices at a glance
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Practice&lt;/th&gt;
&lt;th&gt;Why people need it&lt;/th&gt;
&lt;th&gt;Why AI agents need it&lt;/th&gt;
&lt;th&gt;What DocStar does for you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;One topic per page&lt;/td&gt;
&lt;td&gt;Easy to find and skim&lt;/td&gt;
&lt;td&gt;Clean, focused chunks to retrieve&lt;/td&gt;
&lt;td&gt;Every page gets its own URL and &lt;code&gt;.md&lt;/code&gt; copy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Answer first&lt;/td&gt;
&lt;td&gt;Readers stop scanning sooner&lt;/td&gt;
&lt;td&gt;The first lines are what gets quoted&lt;/td&gt;
&lt;td&gt;AI SEO metadata and AI SEO Score&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Numbered steps with a check at the end&lt;/td&gt;
&lt;td&gt;Fewer "did it work?" questions&lt;/td&gt;
&lt;td&gt;Agents follow steps literally&lt;/td&gt;
&lt;td&gt;Agent drafts steps from your code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Full request and response examples&lt;/td&gt;
&lt;td&gt;Copy, paste, done&lt;/td&gt;
&lt;td&gt;Agents build calls from examples&lt;/td&gt;
&lt;td&gt;Endpoint docs become MCP tools and CLI commands&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stable, readable URLs&lt;/td&gt;
&lt;td&gt;Bookmarks keep working&lt;/td&gt;
&lt;td&gt;Links in &lt;code&gt;llms.txt&lt;/code&gt; stay valid&lt;/td&gt;
&lt;td&gt;Automatic 301 redirects on rename or move&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Machine-readable copies&lt;/td&gt;
&lt;td&gt;Not visible, not in the way&lt;/td&gt;
&lt;td&gt;Plain text beats HTML noise&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;llms.txt&lt;/code&gt;, sitemap and &lt;code&gt;.md&lt;/code&gt; for every page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Update docs with the code&lt;/td&gt;
&lt;td&gt;Docs match the product&lt;/td&gt;
&lt;td&gt;Agents never call an outdated contract&lt;/td&gt;
&lt;td&gt;GitHub Sync and &lt;code&gt;docstar.md&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Measure and fix&lt;/td&gt;
&lt;td&gt;Fix what confuses readers&lt;/td&gt;
&lt;td&gt;Fix what makes tool calls fail&lt;/td&gt;
&lt;td&gt;Analytics, reader feedback and MCP Logs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Structure: make every page easy to find
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Organise by what readers want to do, not by your org chart.&lt;/strong&gt; Group pages into a few clear sections (Getting started, Guides, API reference, FAQs, Changelog). In DocStar these all live in one workspace, so a reader moves from a guide to the endpoint it mentions without switching sites.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Keep one topic per page.&lt;/strong&gt; A page called "Webhooks" that also explains billing and SSO is hard to skim and hard for an AI to quote correctly. Short, focused pages give search engines and AI assistants clean answers to lift.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use short, descriptive slugs.&lt;/strong&gt; &lt;code&gt;reset-password&lt;/code&gt; beats &lt;code&gt;how-to-reset-your-password-in-the-app&lt;/code&gt;. When you do need to rename or move a page, DocStar adds a permanent (301) redirect from the old URL automatically, including for subpages, so shared links and search rankings survive.&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing: answer first, then show the steps
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Lead with the answer.&lt;/strong&gt; The first two sentences of a page should say what it is for and what the reader will have at the end. That is also the part search snippets and AI answers tend to use.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Write steps as numbered actions with one action each,&lt;/strong&gt; and end with a check ("You should now see..."). People skim steps; agents follow them literally, so an ambiguous step becomes a failed task.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Show complete examples.&lt;/strong&gt; For API docs, every endpoint needs a clear description, every parameter explained, a full JSON request body example and real success and error responses. In DocStar this is doubly important: the same endpoint docs become the tools on your collection's MCP server and the commands in the DocStar CLI, so a vague description means an AI agent picks the wrong tool or sends the wrong field. Our guide to &lt;a href="https://docstar.io/blog/keep-api-docs-in-sync-with-code" rel="noopener noreferrer"&gt;keeping API docs in sync with your code&lt;/a&gt; explains why wrong docs now break agents, not just confuse people.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use plain words and one name per thing.&lt;/strong&gt; Agents don't guess that "workspace", "org" and "account" mean the same object.&lt;/p&gt;

&lt;h2&gt;
  
  
  Publishing: make docs readable by AI, not just by browsers
&lt;/h2&gt;

&lt;p&gt;This is where most docs teams fall behind, and where DocStar does the work for you. When you publish a page, DocStar:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;adds it to &lt;code&gt;sitemap.xml&lt;/code&gt;, which updates as you publish or unpublish;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;lists it in a generated &lt;code&gt;llms.txt&lt;/code&gt; file, the plain-text index AI tools read to understand your docs;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;serves a raw Markdown version at the page URL plus &lt;code&gt;.md&lt;/code&gt;, which AI crawlers and assistants read more reliably than HTML;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;makes it searchable through your collection's MCP server. Drafts never reach the MCP server; only published content does.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Details are in &lt;a href="https://docstar.io/help/publish-and-seo/seo" rel="noopener noreferrer"&gt;SEO, Sitemap and llms.txt&lt;/a&gt;. Two more habits matter here:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Write a real meta title and description for your key pages.&lt;/strong&gt; In DocStar, &lt;strong&gt;Generate with AI&lt;/strong&gt; fills in the meta title, description and tags from the page content, and if you publish a page without them, DocStar generates them in the background. Published pages with at least 1,000 characters also get an &lt;strong&gt;AI SEO Score&lt;/strong&gt; out of 100 with suggestions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Serve docs from your own domain.&lt;/strong&gt; Pages on the default DocStar link are marked &lt;code&gt;noindex&lt;/code&gt;. Connect a custom domain to get search traffic.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Not sure whether you need &lt;code&gt;llms.txt&lt;/code&gt;, an MCP server or both? See &lt;a href="https://docstar.io/blog/llms-txt-vs-mcp" rel="noopener noreferrer"&gt;llms.txt vs MCP Server: Which Do Your Docs Need?&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Maintenance: treat docs as part of the product
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Update docs in the same change as the code.&lt;/strong&gt; The most common docs failure isn't bad writing; it's stale writing. With &lt;a href="https://docstar.io/help/integrations/github-sync" rel="noopener noreferrer"&gt;GitHub Sync&lt;/a&gt;, your OpenAPI files live in &lt;code&gt;api-docs/&lt;/code&gt; and Markdown pages in &lt;code&gt;docs/&lt;/code&gt;, next to your code, so docs change in the same commit and pull request and spec changes show up in the PR diff.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Measure, then fix the pages that matter.&lt;/strong&gt; DocStar's Analytics dashboard shows reads per page, page status, SEO score, UTM sources and &lt;strong&gt;Was this helpful?&lt;/strong&gt; feedback with reader comments. Sort by reads, then look at negative feedback: a popular page with many "No" votes is your top priority.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch what agents actually do.&lt;/strong&gt; For API collections, MCP Logs show every call AI assistants made through your MCP server, with a one-line reason when a call failed: a &lt;code&gt;401&lt;/code&gt; means the token was rejected or the user wasn't signed in, a &lt;code&gt;404&lt;/code&gt; a wrong path or id, and a &lt;code&gt;400&lt;/code&gt; or &lt;code&gt;422&lt;/code&gt; a wrong request body. Each of those usually points to a docs fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to apply these best practices with DocStar and your AI agent
&lt;/h2&gt;

&lt;p&gt;You don't need to work through this list by hand. DocStar is built to be run by AI agents: connect Claude Code, Cursor, Codex or another assistant to the DocStar MCP, describe the job in plain language, and the agent does the work while you make the judgment calls.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Connect your agent to DocStar
&lt;/h3&gt;

&lt;p&gt;Add the DocStar MCP URL, &lt;code&gt;https://mcp.docstar.io/mcp&lt;/code&gt;, to your assistant once. The first time it needs your workspace, you sign in to DocStar in your browser. There is no API key to copy, and the assistant works only with the workspaces and collections your account can access, with your permissions. See &lt;a href="https://docstar.io/help/mcp/connect-ai-assistant" rel="noopener noreferrer"&gt;Connect your AI assistant&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Give it one prompt
&lt;/h3&gt;

&lt;p&gt;Open the agent in your product's repo, so it can read the code as well as the docs, and paste:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use the DocStar MCP to review our docs collection against documentation best practices for people and AI agents. For each page, check that it covers one topic, answers the question in the first two sentences, uses numbered steps that end with a check, and has a clear meta title and description. For every API endpoint, compare the docs with our current code and make sure it has a clear description, every parameter explained, a full JSON request body example and success and error responses. Give me a prioritised list of fixes first. Then make the fixes as drafts, ask before changing anything that's already published, and don't publish.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 3: Let the agent do the work
&lt;/h3&gt;

&lt;p&gt;A connected agent can find the right workspace, collection and pages, read your code, rewrite intros and steps, fill in missing endpoint details from the code, and draft new pages where something is missing. It asks before it changes anything. For a deeper pass, our guide on &lt;a href="https://docstar.io/blog/audit-docs-with-ai" rel="noopener noreferrer"&gt;how to audit your docs with an AI agent&lt;/a&gt; covers turning the review into a repeatable checklist.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Review and publish
&lt;/h3&gt;

&lt;p&gt;Your job is the part only a person should do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;What stays private.&lt;/strong&gt; Internal and admin endpoints should never be in public docs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Naming and tone.&lt;/strong&gt; Approve titles, slugs and terminology that match how your customers talk.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Accuracy.&lt;/strong&gt; Read the drafts. AI output is a starting point.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then publish. On publish, each page joins your sitemap, &lt;code&gt;llms.txt&lt;/code&gt;, Markdown copies and MCP server with no extra step.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep it current
&lt;/h2&gt;

&lt;p&gt;Best practices decay the moment the product changes. Make the agent keep the docs current as part of every code change:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Ask your agent: "Set up DocStar GitHub Sync for this repo." With the DocStar MCP connected, it can create or pick the collection, write the OpenAPI files from your code, create an API token and store it as the &lt;code&gt;DOCSTAR_API_KEY&lt;/code&gt; GitHub secret without showing it in chat, add the workflow and add &lt;code&gt;docstar.md&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The line it adds to &lt;code&gt;AGENTS.md&lt;/code&gt; (or &lt;code&gt;CLAUDE.md&lt;/code&gt;) tells your coding agent to read &lt;code&gt;docstar.md&lt;/code&gt; and update &lt;code&gt;api-docs/&lt;/code&gt; in the same change whenever an endpoint is added, changed, renamed or removed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;On every push, a GitHub Action sends changed files to DocStar, and your docs site, MCP tools and CLI commands update with no manual import.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One honest caveat: this works when the agent does the update. If someone changes code without an agent, or the agent skips the &lt;code&gt;docstar.md&lt;/code&gt; rule, docs can still drift. DocStar doesn't watch your repo for you. So review spec changes in the PR diff like any other code, and run the review prompt above every month or so.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prefer to write it yourself?
&lt;/h2&gt;

&lt;p&gt;Everything above also works in the DocStar editor: use the table at the top as your checklist, click &lt;strong&gt;Generate with AI&lt;/strong&gt; in &lt;strong&gt;SEO Configuration&lt;/strong&gt; for meta details, and use &lt;strong&gt;Rename URL&lt;/strong&gt; for slug changes so DocStar adds the redirect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why teams choose DocStar
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Write once, serve everywhere.&lt;/strong&gt; One collection is your docs site, &lt;code&gt;llms.txt&lt;/code&gt;, Markdown copies, an MCP server and, for API docs, a CLI.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agent-first by design.&lt;/strong&gt; Connect your coding agent with one URL and browser sign-in; it drafts, you review and publish.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Docs that change with the code.&lt;/strong&gt; GitHub Sync puts docs in the same pull request as the code.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Feedback from people and agents.&lt;/strong&gt; Analytics and reader feedback for humans, MCP Logs for AI tool calls.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;SEO handled.&lt;/strong&gt; AI metadata, AI SEO Score, sitemaps and automatic redirects.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What are the most important documentation best practices?&lt;/strong&gt; One topic per page, the answer first, numbered steps with a check, complete examples, stable URLs, and updating docs in the same change as the code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I make my docs readable by AI agents in DocStar?&lt;/strong&gt; Publish them. DocStar generates &lt;code&gt;llms.txt&lt;/code&gt;, a sitemap and a Markdown copy of every published page, and makes published content searchable through your collection's MCP server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can an AI agent apply these best practices for me?&lt;/strong&gt; Yes. Connect Claude Code, Cursor, Codex or another assistant to the DocStar MCP and ask it to review and fix your docs. It asks before changing anything, and you review and publish.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does DocStar keep my docs in sync with my code automatically?&lt;/strong&gt; GitHub Sync publishes doc changes automatically on every push, and &lt;code&gt;docstar.md&lt;/code&gt; tells your coding agent to update the docs in the same change. DocStar doesn't watch your repo or detect drift on its own, so the update still has to happen in the change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I know which pages to fix first?&lt;/strong&gt; Open &lt;strong&gt;Analytics&lt;/strong&gt; in your collection, sort by reads and check negative feedback. For API docs, MCP Logs show which tool calls failed and why.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started free
&lt;/h2&gt;

&lt;p&gt;Put these best practices to work on your own docs: connect your AI agent to DocStar, give it one prompt, and publish docs that work for people and AI agents alike. &lt;a href="https://app.docstar.io/login" rel="noopener noreferrer"&gt;Get started free&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://docstar.io/blog/documentation-best-practices" rel="noopener noreferrer"&gt;DocStar blog&lt;/a&gt;.&lt;/em&gt; Try DocStar free: &lt;a href="https://docstar.io" rel="noopener noreferrer"&gt;https://docstar.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>seo</category>
      <category>documentation</category>
    </item>
    <item>
      <title>How to Debug Failed MCP Tool Calls</title>
      <dc:creator>Docstar</dc:creator>
      <pubDate>Fri, 27 Nov 2026 03:40:04 +0000</pubDate>
      <link>https://dev.to/docstar_io/how-to-debug-failed-mcp-tool-calls-1ha3</link>
      <guid>https://dev.to/docstar_io/how-to-debug-failed-mcp-tool-calls-1ha3</guid>
      <description>&lt;p&gt;With DocStar, debugging a failed MCP tool call takes minutes instead of guesswork: every call an AI assistant makes to your API through your DocStar MCP server is logged with what the assistant sent, the exact request that reached your API and the response it got back. Connect your coding agent to the DocStar MCP, ask it to read those logs, and it explains each failure and drafts the fix in your docs for you to review.&lt;/p&gt;

&lt;p&gt;This guide covers why MCP tool calls fail, how to read the error codes, and the agent-first workflow we use to find and fix the cause.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why MCP tool calls fail
&lt;/h2&gt;

&lt;p&gt;When a person calls your API and gets an error, they read the message and try again. When an AI assistant calls it through an MCP server, the error goes to the assistant, which rephrases it ("that didn't work, sorry") or quietly tries something else. Your user never sees the real reason, and neither do you.&lt;/p&gt;

&lt;p&gt;Most failures come from one of four places:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Where it breaks&lt;/th&gt;
&lt;th&gt;What it looks like&lt;/th&gt;
&lt;th&gt;Usual cause&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Sign-in&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;401&lt;/code&gt;, or users asked to sign in again and again&lt;/td&gt;
&lt;td&gt;No signed-in user, a rejected token, or a sign-in setup problem&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The path or id&lt;/td&gt;
&lt;td&gt;&lt;code&gt;404&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The assistant built the wrong URL or used an id that doesn't exist&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The request body&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;400&lt;/code&gt; or &lt;code&gt;422&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;A missing required field, a wrong field name or a wrong type&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your API itself&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;5xx&lt;/code&gt;, timeout, or no answer&lt;/td&gt;
&lt;td&gt;A bug, an outage or an unreachable API&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Notice that three of the four are usually &lt;strong&gt;docs problems&lt;/strong&gt;, not code problems. The assistant called your API exactly the way your docs told it to. If the docs left out a required field or used an old field name, the call fails. That is why the fix for most MCP errors is better docs, and why DocStar keeps the docs, the logs and the fix in one place.&lt;/p&gt;

&lt;h2&gt;
  
  
  How DocStar shows you what went wrong
&lt;/h2&gt;

&lt;p&gt;Every DocStar docs or API collection gets its own hosted MCP server. For API collections, assistants call your API through a general "call any API" tool, or through endpoint tools you give your most important endpoints. DocStar logs each of those calls.&lt;/p&gt;

&lt;p&gt;In the collection's &lt;strong&gt;MCP&lt;/strong&gt; tab, click &lt;strong&gt;Logs&lt;/strong&gt; next to a tool that calls your API. The call-any-API tools share one log, and each endpoint tool has its own. The newest calls come first, and each one shows:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;th&gt;What it tells you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Summary&lt;/td&gt;
&lt;td&gt;Whether the call worked, the method and path, when it ran, and a one-line reason when it failed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Input from the AI assistant&lt;/td&gt;
&lt;td&gt;What the assistant gave the tool&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Request sent to your API&lt;/td&gt;
&lt;td&gt;Method, URL, query params, headers, body, and whether a signed-in user's token was sent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Response from your API&lt;/td&gt;
&lt;td&gt;Status, time taken, size and the response body, including your API's own error message&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Tokens, API keys and other secret values are masked, calls are kept for two weeks, and you need edit access to the collection to see them. Full details are on the help page &lt;a href="https://docstar.io/help/mcp/collection-mcp-server" rel="noopener noreferrer"&gt;Build an MCP Server for Your App&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reading the status codes
&lt;/h3&gt;

&lt;p&gt;DocStar's help docs give a simple key for the most common errors:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;401&lt;/code&gt;: your API rejected the token, or the user wasn't signed in.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;404&lt;/code&gt;: the assistant used a wrong path or id.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;400&lt;/code&gt;** or **&lt;code&gt;422&lt;/code&gt;: the request body was wrong.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the log shows the tool failed before it ever called your API, the problem is in the tool's input, not your API. If the call shows a "problem" such as an unreachable API, your API never answered.&lt;/p&gt;

&lt;h2&gt;
  
  
  Debug MCP errors with your AI agent
&lt;/h2&gt;

&lt;p&gt;Reading logs one by one works for a single failure. For a week of calls, let your coding agent do it. This is the workflow we recommend with DocStar.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Connect your agent to DocStar
&lt;/h3&gt;

&lt;p&gt;Add DocStar to Claude Code, Cursor, Codex or another assistant. Use DocStar from your assistant's connector directory if it's listed there, or add it as a custom MCP server with this URL:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://mcp.docstar.io/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first time the agent needs your workspace, you sign in to DocStar in your browser. There is no API key to copy, and the agent works only with the collections your account can access. See &lt;a href="https://docstar.io/help/mcp/connect-ai-assistant" rel="noopener noreferrer"&gt;Connect Your AI Assistant&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Give it one prompt
&lt;/h3&gt;

&lt;p&gt;Open the agent in the repo for your API and paste something like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use the DocStar MCP to debug my API's MCP server in the "Orders API" collection. Read the MCP logs for the last week, newest first. Group the failed calls by cause (sign-in, wrong path or id, wrong request body, API error). For each group, compare what the assistant sent with my latest code and my DocStar docs, explain why it failed, and propose the fix: endpoint docs, tool descriptions, the skill or the instructions. Show me every change before you save it, and save doc changes as drafts.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 3: What the agent does
&lt;/h3&gt;

&lt;p&gt;The agent reads the log list through the DocStar API (a short summary of each call first, then the full details of the failed ones). For each failure it checks three sources side by side: what the AI assistant sent, what your API answered, and what your docs say. Then it tells you the likely cause, for example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;422&lt;/code&gt;** on create order:** the docs example still sends &lt;code&gt;customer&lt;/code&gt;, but your code now requires &lt;code&gt;customer_id&lt;/code&gt;. Fix: update the endpoint's body example and field descriptions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;404&lt;/code&gt;** on get invoice:** assistants keep passing the order number where the invoice id belongs. Fix: say clearly in the endpoint description where the invoice id comes from, and which endpoint to call first.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;401&lt;/code&gt;** on every call since Tuesday:** no user token was sent, or your API refused it. Fix: check your sign-in setup (see below), not the docs.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It asks before changing anything. When you approve, it updates the endpoint docs, rewrites a tool's description or adds a line to the server's instructions, and saves its doc changes as drafts for you to publish.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Review and publish
&lt;/h3&gt;

&lt;p&gt;Your job is judgment: is the agent's reading of the error right, does the new wording match how your product works, and should anything stay private. Then publish. Updated docs feed your docs site, your llms.txt, your MCP server and your CLI at the same time, so the next assistant that calls the endpoint reads the fixed version.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Check the fix in the logs
&lt;/h3&gt;

&lt;p&gt;Ask the agent to run the same task through your MCP server again, or wait for real traffic, and check the logs. A &lt;code&gt;200&lt;/code&gt; where the &lt;code&gt;422&lt;/code&gt; used to be is your proof. For a fuller test plan, see &lt;a href="https://docstar.io/blog/test-api-docs-with-ai-agents" rel="noopener noreferrer"&gt;How to Test If AI Agents Can Use Your API Docs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the fix usually lives in DocStar
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Failure&lt;/th&gt;
&lt;th&gt;Fix in DocStar&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Wrong body (&lt;code&gt;400&lt;/code&gt;/&lt;code&gt;422&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Endpoint docs: every parameter described, plus a full JSON request body example&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wrong path or id (&lt;code&gt;404&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Endpoint description, the server's skill (which endpoint to call first), or a dedicated endpoint tool&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wrong tool picked&lt;/td&gt;
&lt;td&gt;Tool descriptions, including your own wording for the built-in tools (&lt;a href="https://docstar.io/blog/write-mcp-tool-descriptions" rel="noopener noreferrer"&gt;how to write them&lt;/a&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rules ignored&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Additional instructions&lt;/strong&gt;: short rules assistants get every time they connect, under 2,000 characters&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sign-in (&lt;code&gt;401&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Sign-in for API calls&lt;/strong&gt; in the MCP tab: your OAuth app's details, token validation URL and redirect URIs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two sign-in checks catch most &lt;code&gt;401&lt;/code&gt;s. DocStar checks your &lt;strong&gt;token validation URL&lt;/strong&gt; on every MCP request, so that endpoint must return &lt;code&gt;200&lt;/code&gt; for a valid token. And every &lt;strong&gt;redirect URI&lt;/strong&gt; shown in the MCP tab must be in your OAuth app's allowed callback URLs, or sign-in fails. Entering the OAuth app details is one of the few steps only a person on your team should do.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get told about failures as they happen
&lt;/h2&gt;

&lt;p&gt;Logs answer "why did it fail?". Failure alerts answer "did anything fail?". Turn them on in the MCP tab under &lt;strong&gt;Server settings&lt;/strong&gt;, &lt;strong&gt;Failure alerts&lt;/strong&gt;, and DocStar tells you when a tool, your token check or your sign-in fails for one of your users. Alerts go to up to 8 webhooks, a Slack channel, or up to 20 email addresses. The same problem is sent at most once every 10 minutes, with a count of repeats, and secret values are hidden. Our post &lt;a href="https://docstar.io/blog/mcp-failure-alerts" rel="noopener noreferrer"&gt;MCP Failure Alerts&lt;/a&gt; walks through it.&lt;/p&gt;

&lt;p&gt;A good routine: the alert tells you something broke, you paste it to your agent, and the agent reads the matching log entry and drafts the fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep it current so the same errors don't come back
&lt;/h2&gt;

&lt;p&gt;Many MCP errors start the same way: a developer renames a field or adds a required parameter, and the docs get updated later or never. With DocStar, the same docs feed your docs site, llms.txt, your MCP server and your CLI, so stale docs don't just confuse people. The agent calls your API with the old field and the call fails.&lt;/p&gt;

&lt;p&gt;DocStar's GitHub Sync keeps your API docs in your repo (&lt;code&gt;api-docs/&lt;/code&gt; for OpenAPI files), so they change in the same commit and pull request as the code. A &lt;code&gt;docstar.md&lt;/code&gt; file and one line in &lt;code&gt;AGENTS.md&lt;/code&gt; tell your coding agent to update the endpoint's spec whenever it changes the endpoint, and on push DocStar updates the docs site, MCP tools and CLI. Your agent can set it all up from one prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Set up DocStar GitHub Sync for this repo.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;One honest caveat: the agent still has to do the update. If someone changes code without an agent, or the agent skips the &lt;code&gt;docstar.md&lt;/code&gt; rule, the docs drift and nothing catches it automatically. That's when the MCP logs and alerts above tell you. More in &lt;a href="https://docstar.io/blog/keep-api-docs-in-sync-with-code" rel="noopener noreferrer"&gt;How to Keep Your API Docs in Sync with Your Code&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prefer to click?
&lt;/h2&gt;

&lt;p&gt;You can do all of this by hand: open the collection's &lt;strong&gt;MCP&lt;/strong&gt; tab, click &lt;strong&gt;Logs&lt;/strong&gt; next to the tool, open a failed call, compare the request with your endpoint docs, fix the docs in the editor and publish.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why teams choose DocStar for MCP servers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;One source for everything.&lt;/strong&gt; Docs site, llms.txt, MCP server and CLI come from the same collection, so one fix reaches all of them.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Real logs, safely.&lt;/strong&gt; Every call your MCP server makes to your API, with secrets masked.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Alerts where you work.&lt;/strong&gt; Webhooks, Slack or email, without alert floods.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agent-first.&lt;/strong&gt; Your coding agent reads the logs, finds the cause and drafts the fix. You review and publish.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;No server code.&lt;/strong&gt; DocStar hosts the MCP server for you, with per-user sign-in for API calls.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Where do I find MCP logs in DocStar?&lt;/strong&gt; In your collection's &lt;strong&gt;MCP&lt;/strong&gt; tab, click &lt;strong&gt;Logs&lt;/strong&gt; next to a tool that calls your API. The call-any-API tools share one log, and each endpoint tool has its own.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How long are MCP logs kept?&lt;/strong&gt; Two weeks. You need edit access to the collection to see them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can my AI agent read the logs for me?&lt;/strong&gt; Yes. Connected to the DocStar MCP, your agent can read the logs through the DocStar API, explain each failure and propose fixes. It asks before changing anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Are tokens or API keys shown in the logs?&lt;/strong&gt; No. Tokens, API keys and other secret values are masked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started free
&lt;/h2&gt;

&lt;p&gt;Turn your API docs into an MCP server that AI assistants can use, with logs and failure alerts built in. &lt;a href="https://app.docstar.io/login" rel="noopener noreferrer"&gt;Get started free&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://docstar.io/blog/debug-mcp-tool-calls" rel="noopener noreferrer"&gt;DocStar blog&lt;/a&gt;.&lt;/em&gt; Try DocStar free: &lt;a href="https://docstar.io" rel="noopener noreferrer"&gt;https://docstar.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>api</category>
      <category>documentation</category>
    </item>
    <item>
      <title>Remote vs Local MCP Server: What's the Difference?</title>
      <dc:creator>Docstar</dc:creator>
      <pubDate>Thu, 26 Nov 2026 15:40:07 +0000</pubDate>
      <link>https://dev.to/docstar_io/remote-vs-local-mcp-server-whats-the-difference-1ani</link>
      <guid>https://dev.to/docstar_io/remote-vs-local-mcp-server-whats-the-difference-1ani</guid>
      <description>&lt;p&gt;With DocStar, your API gets a remote MCP server the moment you publish its docs, so this question has a short answer for most SaaS teams. A &lt;strong&gt;local MCP server&lt;/strong&gt; runs on the user's own machine: the AI app launches it as a subprocess and talks to it over standard input and output (stdio). A &lt;strong&gt;remote MCP server&lt;/strong&gt; runs on a server you host and is reached over the internet at a URL, using the Streamable HTTP transport. Local suits tools that touch one person's files. Remote suits products with many users.&lt;/p&gt;

&lt;p&gt;Below we explain how each one works, when to pick which, and how DocStar gives your API a hosted remote MCP server that your coding agent sets up from one prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Remote vs local MCP server at a glance
&lt;/h2&gt;

&lt;p&gt;The Model Context Protocol (MCP) defines two standard transports. The definitions below follow the MCP specification version 2026-07-28 (as of November 2026).&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Local MCP server&lt;/th&gt;
&lt;th&gt;Remote MCP server&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Where it runs&lt;/td&gt;
&lt;td&gt;On the user's computer&lt;/td&gt;
&lt;td&gt;On a server, reached by URL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Transport&lt;/td&gt;
&lt;td&gt;stdio: the client launches the server as a subprocess and exchanges messages over stdin and stdout&lt;/td&gt;
&lt;td&gt;Streamable HTTP: each message is an HTTP POST to a single MCP endpoint&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How users add it&lt;/td&gt;
&lt;td&gt;Install a package and a runtime, then add a command to a config file&lt;/td&gt;
&lt;td&gt;Paste one URL into Claude, ChatGPT, Cursor or VS Code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who it serves&lt;/td&gt;
&lt;td&gt;One user, one machine&lt;/td&gt;
&lt;td&gt;Many users at once&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sign-in&lt;/td&gt;
&lt;td&gt;Usually a key pasted into a local config&lt;/td&gt;
&lt;td&gt;OAuth sign-in per user, in the browser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Updates&lt;/td&gt;
&lt;td&gt;Every user has to update their copy&lt;/td&gt;
&lt;td&gt;You update the server once and everyone gets it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best for&lt;/td&gt;
&lt;td&gt;Local files, local databases, dev tools&lt;/td&gt;
&lt;td&gt;SaaS APIs and product docs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  How a local MCP server works
&lt;/h3&gt;

&lt;p&gt;In the stdio transport, the AI app (the MCP client) starts the server as a child process on the same machine. The server reads requests from standard input and writes replies to standard output. Nothing is exposed to the network, which is why local servers are a good fit for things like reading a project folder or querying a database on a laptop.&lt;/p&gt;

&lt;p&gt;The catch is distribution. Every user needs the right runtime, has to install your package, has to edit a JSON config file and has to keep it updated. For a product with thousands of customers, that is a support queue, not an integration.&lt;/p&gt;

&lt;h3&gt;
  
  
  How a remote MCP server works
&lt;/h3&gt;

&lt;p&gt;In the Streamable HTTP transport, the server runs as its own process and can handle many client connections. It exposes one MCP endpoint, and the client sends every request as an HTTP POST to it. Users connect by adding the URL to their AI app.&lt;/p&gt;

&lt;p&gt;Running a remote server yourself also means owning the security work. The spec says servers must validate the &lt;code&gt;Origin&lt;/code&gt; header to block DNS rebinding attacks and should authenticate every connection. In practice you also need per-user sign-in, token checks, logging and monitoring. That is the part most teams don't want to build.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which one does your product need?
&lt;/h2&gt;

&lt;p&gt;Ask who the server is for.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Pick local&lt;/strong&gt; when the tool works on one person's machine: their files, their shell, a database on their laptop.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Pick remote&lt;/strong&gt; when the tool calls your product's API for your customers. They shouldn't install anything, each of them should sign in as themselves, and you should be able to fix a tool once for everyone.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you run a SaaS product with an API, you want a remote MCP server. The question is whether you build and operate it, or let DocStar host it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How remote MCP servers work in DocStar
&lt;/h2&gt;

&lt;p&gt;DocStar gives every docs and API collection its own hosted MCP server. You document your API in a DocStar collection, publish it, and the collection's MCP server is ready. The URL looks like &lt;code&gt;https://mcp.docstar.io/connector/your_collection_slug&lt;/code&gt;. Your users add that one URL to Claude, ChatGPT, Cursor or VS Code and use your product in plain language.&lt;/p&gt;

&lt;p&gt;Here is what that server includes, with no server code on your side:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Built-in tools&lt;/strong&gt; that DocStar keeps in line with your docs: search your published docs, read your API reference, and call any endpoint (GET, and POST/PUT/PATCH/DELETE). There is also a feedback tool that sends bug reports from assistants to your team.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Endpoint tools.&lt;/strong&gt; Give up to 20 of your most important published endpoints their own named tool, such as &lt;code&gt;create_payment&lt;/code&gt;, with safety hints (read-only, destructive, idempotent, open-world) so assistants know when to ask first.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Per-user sign-in.&lt;/strong&gt; For API collections, you add your OAuth app's details and users sign in with their own account the first time an assistant calls your API. Your token validation URL is checked on every MCP request.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;A skill and instructions.&lt;/strong&gt; A generated quickstart guide assistants load before using your API, which you can rewrite, plus short rules assistants receive every time they connect.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Branding and a custom domain.&lt;/strong&gt; Assistants show your product's name, website and icon, and you can serve the server on a domain like &lt;code&gt;mcp.yourcompany.com&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Usage and Logs.&lt;/strong&gt; See calls, success rates and response times per tool, and open any call to see what the assistant sent, the request to your API and the response. Secrets are masked and calls are kept for two weeks.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Only published content reaches the server. Drafts never do.&lt;/p&gt;

&lt;p&gt;For the full setup reference, see &lt;a href="https://docstar.io/help/mcp/collection-mcp-server" rel="noopener noreferrer"&gt;Build an MCP Server for Your App&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let your coding agent set up your remote MCP server
&lt;/h2&gt;

&lt;p&gt;You don't need to click through any of this. The main way to do it in DocStar is to hand the job to the coding agent you already use.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Connect your agent to DocStar.&lt;/strong&gt; Add DocStar to Claude Code, Cursor, Codex or another assistant from its connector directory, or as a custom (remote) MCP server with this URL: &lt;code&gt;https://mcp.docstar.io/mcp&lt;/code&gt;. You sign in in the browser, so there is no API key to copy. See &lt;a href="https://docstar.io/help/mcp/connect-ai-assistant" rel="noopener noreferrer"&gt;Connect Your AI Assistant&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Give it one prompt.&lt;/strong&gt; Open your API's repository and paste:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use the DocStar MCP to turn my app's API into an MCP server. First read &lt;a href="https://docstar.io/mcp/quickstart.md" rel="noopener noreferrer"&gt;https://docstar.io/mcp/quickstart.md&lt;/a&gt; and follow it step by step. Read my latest code for the API, not an old OpenAPI file, and document each endpoint with a clear description and a full JSON body example.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;3. Let the agent do the work.&lt;/strong&gt; It reads your code, documents your endpoints in a DocStar collection, gets your MCP URL, picks up to 20 important endpoints as tools, writes the skill, adds your instructions and sets your branding. It asks you before it changes or publishes anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Review and publish.&lt;/strong&gt; Your job is judgment: check that only public endpoints are documented (never admin or internal routes), that tool names and descriptions read well, and which actions should be confirmed first. If your API needs a signed-in user, enter your OAuth app's details in the collection's &lt;strong&gt;MCP&lt;/strong&gt; tab and add the redirect URIs it shows to your OAuth app. That part needs you, because it involves your secrets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Share the URL.&lt;/strong&gt; Your customers add it to their AI app. No install, no config file, no runtime.&lt;/p&gt;

&lt;p&gt;If you already have an MCP server idea but no clear list of tools, our guide on &lt;a href="https://docstar.io/blog/turn-your-api-into-an-mcp-server" rel="noopener noreferrer"&gt;how to turn your API into an MCP server without writing server code&lt;/a&gt; walks through the choices.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep it current
&lt;/h2&gt;

&lt;p&gt;A remote MCP server is only as good as the docs behind it. When a developer renames a field and the docs change later, or never, the agent calls your API with the old field and the call fails. With DocStar the same docs feed your docs site, &lt;code&gt;llms.txt&lt;/code&gt;, the MCP server and the CLI, so stale docs now break agents, not just confuse people.&lt;/p&gt;

&lt;p&gt;DocStar's GitHub Sync keeps the docs in your repository, next to the code: OpenAPI files in &lt;code&gt;api-docs/&lt;/code&gt; and Markdown pages in &lt;code&gt;docs/&lt;/code&gt;. Ask your agent:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Set up DocStar GitHub Sync for this repo.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;With the DocStar MCP connected, the agent adds the workflow, writes &lt;code&gt;docstar.md&lt;/code&gt; into the repo, adds a line to &lt;code&gt;AGENTS.md&lt;/code&gt; (or &lt;code&gt;CLAUDE.md&lt;/code&gt;) telling it to update &lt;code&gt;api-docs/&lt;/code&gt; in the same change whenever an endpoint is added, changed, renamed or removed, and stores the API token as a GitHub secret without showing it in chat. From then on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Docs change in the same pull request as the code&lt;/strong&gt;, so reviewers see spec changes in the diff.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Publishing is automatic.&lt;/strong&gt; On every push that changes &lt;code&gt;api-docs/&lt;/code&gt; or &lt;code&gt;docs/&lt;/code&gt;, a GitHub Action sends the changed files to DocStar, and your docs, MCP tools and CLI update.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One honest limit: the agent still has to make the update. If someone changes code without an agent, or the agent skips the &lt;code&gt;docstar.md&lt;/code&gt; rule, the docs drift and nothing catches it automatically. DocStar doesn't watch your repo for you. To spot problems early, check MCP Logs for failed calls, and turn on &lt;a href="https://docstar.io/blog/mcp-failure-alerts" rel="noopener noreferrer"&gt;MCP failure alerts&lt;/a&gt; so you hear about errors by webhook, Slack or email.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prefer to set it up yourself?
&lt;/h2&gt;

&lt;p&gt;You can. Create an API collection, add and publish your endpoints, then open the collection's settings, go to the &lt;strong&gt;MCP&lt;/strong&gt; tab and copy the MCP server URL. From the same tab you can add endpoint tools, edit the skill and instructions, set branding and add sign-in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why teams choose DocStar for remote MCP servers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;No server to run.&lt;/strong&gt; DocStar hosts the server, the tools and the sign-in. You never write or deploy MCP server code.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;One source for everything.&lt;/strong&gt; The same collection gives you public API docs, an MCP server and CLI commands, so they never disagree.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Built for many users.&lt;/strong&gt; Each customer signs in with their own account, and you see every call in Usage and Logs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agent-first setup.&lt;/strong&gt; Your coding agent documents the API from your code and sets up the server, and you review before anything goes live.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;New to the idea? Start with &lt;a href="https://docstar.io/blog/what-is-an-mcp-server" rel="noopener noreferrer"&gt;What Is an MCP Server?&lt;/a&gt;, then read &lt;a href="https://docstar.io/blog/mcp-server-authentication" rel="noopener noreferrer"&gt;MCP Server Authentication Explained&lt;/a&gt; for how sign-in works.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is a DocStar MCP server local or remote?
&lt;/h3&gt;

&lt;p&gt;Remote. DocStar hosts it and gives you a URL such as &lt;code&gt;https://mcp.docstar.io/connector/your_collection_slug&lt;/code&gt;, or your own custom domain. Users add the URL to their AI app; nothing runs on their machine.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can a remote MCP server act as each of my users?
&lt;/h3&gt;

&lt;p&gt;Yes. For API collections, add your OAuth app's details in the &lt;strong&gt;MCP&lt;/strong&gt; tab. The first time an assistant calls your API, the user signs in with their own account, and DocStar checks the token on every MCP request.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which AI apps can connect to a remote MCP server?
&lt;/h3&gt;

&lt;p&gt;DocStar's help docs name Claude, ChatGPT, Cursor and VS Code. Any assistant that supports custom remote MCP servers can add the URL.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do drafts show up in my MCP server?
&lt;/h3&gt;

&lt;p&gt;No. Only published content is visible to your MCP server. Drafts never reach it.&lt;/p&gt;

&lt;h3&gt;
  
  
  When should I still build a local MCP server?
&lt;/h3&gt;

&lt;p&gt;When the tool needs the user's own machine, such as their files or a local database. For your product's API, a hosted remote server is simpler for you and your users.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started free
&lt;/h2&gt;

&lt;p&gt;Give your API a remote MCP server without writing server code. Connect your coding agent to DocStar, paste one prompt, review and publish. &lt;a href="https://app.docstar.io/login" rel="noopener noreferrer"&gt;Get started free&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://docstar.io/blog/remote-vs-local-mcp-server" rel="noopener noreferrer"&gt;DocStar blog&lt;/a&gt;.&lt;/em&gt; Try DocStar free: &lt;a href="https://docstar.io" rel="noopener noreferrer"&gt;https://docstar.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>documentation</category>
      <category>devtools</category>
      <category>api</category>
    </item>
    <item>
      <title>MCP Failure Alerts: Know When Your MCP Server Breaks</title>
      <dc:creator>Docstar</dc:creator>
      <pubDate>Thu, 26 Nov 2026 07:40:07 +0000</pubDate>
      <link>https://dev.to/docstar_io/mcp-failure-alerts-know-when-your-mcp-server-breaks-48c7</link>
      <guid>https://dev.to/docstar_io/mcp-failure-alerts-know-when-your-mcp-server-breaks-48c7</guid>
      <description>&lt;p&gt;When an AI assistant calls your MCP server and something on your side breaks, nobody tells you. The assistant gets an error, maybe retries, and then tells your user "that didn't work". Your user gives up, and you find out days later, if at all. DocStar's MCP failure alerts fix that: the moment a tool, your token check or your sign-in fails for one of your users, you get an alert on your own webhooks, in a Slack channel or by email, with the request that failed and the response your API gave.&lt;/p&gt;

&lt;p&gt;This post explains why MCP failures are so easy to miss, what a useful alert should contain, and how to turn alerts on for your DocStar MCP server in a couple of minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why MCP failures go unnoticed
&lt;/h2&gt;

&lt;p&gt;A normal API has a dashboard, error logs and users who email support. An MCP server sits between an AI assistant and your API, and that changes who sees the error:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The user never sees your error message.&lt;/strong&gt; The AI assistant reads it and rephrases it, often as a vague apology.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The assistant hides the pattern.&lt;/strong&gt; It may retry, try a different tool, or give up quietly. One broken endpoint can look like the AI "being bad at your product".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sign-in failures look like the user's fault.&lt;/strong&gt; If your token check refuses every token after a deploy, every user is asked to sign in again, and most simply stop using the connector.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the people who could fix the problem, you and your team, are the last to know.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a useful MCP alert contains
&lt;/h2&gt;

&lt;p&gt;An alert that just says "tool failed" sends you digging through logs. A useful one answers five questions straight away:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What happened?&lt;/td&gt;
&lt;td&gt;&lt;code&gt;"create_order" failed: your API answered 422&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What did my users see?&lt;/td&gt;
&lt;td&gt;The AI got the error back and told the user the action failed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What should I do?&lt;/td&gt;
&lt;td&gt;A 4xx often means the AI called the tool with wrong inputs: check the tool's description and input examples.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Which call failed, exactly?&lt;/td&gt;
&lt;td&gt;The request sent (&lt;code&gt;POST https://api.acme.com/v1/orders&lt;/code&gt; with its body) and the response (422 in 312 ms, with its body).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How often?&lt;/td&gt;
&lt;td&gt;First time in the last 10 minutes, or "7 more since the last alert".&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;It also has to be safe to send to a chat channel. Passwords, tokens, API keys, cookies and login codes must never end up in Slack.&lt;/p&gt;

&lt;h2&gt;
  
  
  How failure alerts work in DocStar
&lt;/h2&gt;

&lt;p&gt;Every DocStar docs and API collection gets its own hosted MCP server. With failure alerts on, that server watches three things on your side:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Tools.&lt;/strong&gt; Your API answers 4xx or 5xx, can't be reached, or a tool's viaSocket flow fails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your token check.&lt;/strong&gt; If your MCP server checks users' tokens against your own validation URL, you're told when that URL fails, times out or refuses tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sign-in.&lt;/strong&gt; Your token URL refuses a login code or refresh, your session exchange fails, or your login page sends users back with an error.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each alert includes what happened, what your users saw, what to do, the API that failed, the request sent and the response received. Secret-looking values show as &lt;code&gt;[hidden]&lt;/code&gt;, query strings are removed from URLs, and request headers are never included.&lt;/p&gt;

&lt;p&gt;To keep the noise down, the same problem is sent at most once every 10 minutes, and the next alert says how many times it happened in between. Problems on DocStar's side, and users who simply haven't signed in yet, never trigger an alert.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where alerts go
&lt;/h2&gt;

&lt;p&gt;Pick any mix of three places:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your webhooks.&lt;/strong&gt; Add up to 9 &lt;code&gt;https&lt;/code&gt; URLs. Each gets a &lt;code&gt;POST&lt;/code&gt; with the alert as JSON, ready for your incident tool, your own Slack bot or a workflow. The JSON includes a ready-to-read &lt;code&gt;message&lt;/code&gt; plus separate fields such as &lt;code&gt;kind&lt;/code&gt;, &lt;code&gt;api&lt;/code&gt;, &lt;code&gt;request&lt;/code&gt; and &lt;code&gt;response&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slack.&lt;/strong&gt; Connect your workspace and pick a channel. Alerts arrive as a message in that channel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Email.&lt;/strong&gt; Add up to 20 addresses, with nothing to connect. Alerts arrive from DocStar (&lt;a href="mailto:docstar-report@viasocket.com"&gt;docstar-report@viasocket.com&lt;/a&gt;), and each address gets its own copy, so no one sees the others.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Turn it on
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open your collection's settings and open the &lt;strong&gt;MCP&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Under &lt;strong&gt;Server settings&lt;/strong&gt;, click &lt;strong&gt;Set up&lt;/strong&gt; next to &lt;strong&gt;Failure alerts&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Add a webhook, connect Slack or add email addresses.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Send test alert&lt;/strong&gt; to check every destination. You see the result for each one.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's it. The next time something on your side breaks for an AI assistant user, you hear about it first.&lt;/p&gt;

&lt;p&gt;Full details, including the complete webhook payload, are in the Help page: &lt;a href="https://docstar.io/help/mcp/mcp-failure-alerts" rel="noopener noreferrer"&gt;MCP Failure Alerts: Webhooks, Slack and Email&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Will I get flooded if my API goes down?&lt;/strong&gt;&lt;br&gt;
No. Each problem is sent at most once every 10 minutes, with a count of repeats.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I send alerts to more than one place?&lt;/strong&gt;&lt;br&gt;
Yes. Add several webhooks, a Slack channel and several email addresses together. Every alert goes to all of them, and one failing destination doesn't stop the others.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Are my users' tokens or passwords ever included?&lt;/strong&gt;&lt;br&gt;
No. Values whose name looks like a password, token, API key, cookie or code are hidden, query strings are removed and request headers are never sent.&lt;/p&gt;

&lt;p&gt;Building an MCP server for your API? &lt;a href="https://app.docstar.io/login" rel="noopener noreferrer"&gt;Start with DocStar&lt;/a&gt; and turn your API docs into an MCP server any AI assistant can use, with failure alerts built in.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://docstar.io/blog/mcp-failure-alerts" rel="noopener noreferrer"&gt;DocStar blog&lt;/a&gt;.&lt;/em&gt; Try DocStar free: &lt;a href="https://docstar.io" rel="noopener noreferrer"&gt;https://docstar.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>documentation</category>
      <category>devtools</category>
    </item>
    <item>
      <title>Documentation Roles and Permissions: A Practical Guide</title>
      <dc:creator>Docstar</dc:creator>
      <pubDate>Thu, 26 Nov 2026 03:40:05 +0000</pubDate>
      <link>https://dev.to/docstar_io/documentation-roles-and-permissions-a-practical-guide-3mj3</link>
      <guid>https://dev.to/docstar_io/documentation-roles-and-permissions-a-practical-guide-3mj3</guid>
      <description>&lt;p&gt;DocStar gives every docs team a simple answer to "who can write, approve and publish our documentation?": three workspace roles (Owner, Admin, Member), a Read Only, Read &amp;amp; Write or Access Denied permission on each collection, and AI agents that only ever act with the signed-in person's own access. In this guide we show how to design documentation roles and permissions for a team that writes docs with people and AI agents, and how to let your coding agent audit and set up access for you in one prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why documentation roles and permissions matter now
&lt;/h2&gt;

&lt;p&gt;A few years ago, the question was simple: who has edit access to the wiki? Today your docs feed far more than a website. In DocStar the same published collection powers your docs site, &lt;code&gt;llms.txt&lt;/code&gt;, a hosted MCP server that AI assistants use to search your docs and call your API, and CLI commands for every endpoint. A wrong edit that goes live doesn't only confuse a reader. It can send an agent to the wrong endpoint.&lt;/p&gt;

&lt;p&gt;At the same time, more people (and more agents) touch the docs: engineers updating endpoints, support writing FAQs, product writing changelogs, freelancers fixing a guide, and coding agents drafting pages from your code. Good roles and permissions answer three questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Who can see each set of docs?&lt;/strong&gt; Internal runbooks and public API docs need different audiences.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Who can write?&lt;/strong&gt; The people who own the content, not everyone in the company.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Who decides what goes live?&lt;/strong&gt; Edits should land as drafts and be published by someone who checked them.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How roles and permissions work in DocStar
&lt;/h2&gt;

&lt;p&gt;DocStar keeps the model small on purpose, so anyone can understand it at a glance. It has two layers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Layer 1: workspace roles
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;th&gt;What they can do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Owner&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Full access to every collection and setting. The only role that can create and revoke API tokens. Can't be removed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Admin&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Invites and removes members, changes roles, sets collection permissions and manages domain-based access.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Member&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Views and edits the collections they've been given access to. Can't invite or remove people.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Layer 2: collection permissions
&lt;/h3&gt;

&lt;p&gt;For every Admin and Member, each collection gets one of three settings:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Permission&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Read Only&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Can view the collection's content&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Read &amp;amp; Write&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Can edit and create content&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Access Denied&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Can't open the collection&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A few rules make this safe by default. Owners always have full access. If no permission has been set for a collection, the person can read it but not edit it. When you invite a Member, every collection starts at Read Only. And you can only grant up to the access you have yourself. All of this is covered in &lt;a href="https://docstar.io/help/workspaces-and-team/members-and-roles" rel="noopener noreferrer"&gt;Members and Roles&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Drafts and publishing: the built-in review step
&lt;/h3&gt;

&lt;p&gt;In DocStar, editing and going live are separate steps. When you edit a published page, it goes back to draft and the live site keeps showing the last published version until someone publishes again. Every publish is recorded in &lt;strong&gt;Published History&lt;/strong&gt; with who published it and when, and you can restore an earlier version from &lt;a href="https://docstar.io/help/writing-and-formatting/version-history" rel="noopener noreferrer"&gt;Version History&lt;/a&gt;. That gives you a natural "write, then approve" flow without extra tooling.&lt;/p&gt;

&lt;h2&gt;
  
  
  A simple roles model for docs teams
&lt;/h2&gt;

&lt;p&gt;Here's the setup we recommend for most teams using DocStar:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Person&lt;/th&gt;
&lt;th&gt;Workspace role&lt;/th&gt;
&lt;th&gt;Collection permissions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Head of docs / engineering lead&lt;/td&gt;
&lt;td&gt;Owner or Admin&lt;/td&gt;
&lt;td&gt;Read &amp;amp; Write on all collections&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Technical writers&lt;/td&gt;
&lt;td&gt;Member&lt;/td&gt;
&lt;td&gt;Read &amp;amp; Write on the collections they own&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Engineers&lt;/td&gt;
&lt;td&gt;Member&lt;/td&gt;
&lt;td&gt;Read &amp;amp; Write on API reference collections, Read Only elsewhere&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Support team&lt;/td&gt;
&lt;td&gt;Member&lt;/td&gt;
&lt;td&gt;Read &amp;amp; Write on the help center and FAQs, Read Only on API docs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sales, marketing, everyone else&lt;/td&gt;
&lt;td&gt;Member&lt;/td&gt;
&lt;td&gt;Read Only, or Access Denied on internal collections&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Freelancer or partner fixing one page&lt;/td&gt;
&lt;td&gt;Not in the workspace&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://docstar.io/help/workspaces-and-team/edit-via-link" rel="noopener noreferrer"&gt;Edit via Link&lt;/a&gt; on that one page&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Keep it boring: give write access by collection to the people who own that content, keep internal collections on Access Denied for anyone who doesn't need them, and turn on Edit via Link only for as long as the outside work takes. Anyone with that link can edit the page while the option is on, and their changes go into the page's draft, so you still review and publish them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let your AI agent set up documentation permissions in DocStar
&lt;/h2&gt;

&lt;p&gt;DocStar is built for AI agents to do the work and people to make the calls. Member and permission management is part of the DocStar API, so a coding agent connected through the DocStar MCP can review who has access and, once you approve, apply the changes for you.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Connect your agent to DocStar
&lt;/h3&gt;

&lt;p&gt;Add the DocStar MCP server to Claude Code, Cursor, Codex or another assistant: &lt;code&gt;https://mcp.docstar.io/mcp&lt;/code&gt; (or find DocStar in your assistant's connector directory). The first time the agent needs your workspace, you sign in to DocStar in your browser. There's no API key to copy. See &lt;a href="https://docstar.io/help/mcp" rel="noopener noreferrer"&gt;Work with AI Assistants (MCP)&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The important part for governance: &lt;strong&gt;the agent works only with the workspaces and collections your DocStar account can access, with the same permissions you have.&lt;/strong&gt; A Member's agent can't hand out access, and nobody's agent can exceed its user's rights.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Give it one prompt
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Use the DocStar MCP to review access in our DocStar workspace. List every member with their role and their permission on each collection. Then propose a roles plan: writers get Read &amp;amp; Write only on the collections they own, engineers get Read &amp;amp; Write on our API reference collections, support gets Read &amp;amp; Write on the help center, and everyone else gets Read Only. Internal collections should be Access Denied for anyone outside the docs and engineering teams. Flag anyone with more access than their job needs. Show me the plan as a table and don't change anything until I approve it. After I approve, apply the changes and write a short "Docs roles and permissions" page as a draft in our internal collection so the team knows who owns what.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 3: What the agent does
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Reads the current state.&lt;/strong&gt; It lists your collections, members, roles and per-collection permissions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Drafts a plan.&lt;/strong&gt; It maps each person to the model above and highlights gaps, such as a former contractor who still has write access or an internal collection everyone can read.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Asks before changing anything.&lt;/strong&gt; The DocStar MCP shows you what it will create, change or publish and waits for your OK.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Applies the approved changes.&lt;/strong&gt; Role updates and collection permissions are set through the DocStar API, within your own access.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Documents the rules as a draft.&lt;/strong&gt; The "who owns what" page is saved as a draft. Nothing goes live until it's published.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 4: You make the judgment calls
&lt;/h3&gt;

&lt;p&gt;The agent does the listing, mapping and clicking. You decide what only a person should decide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Which collections are internal and who truly needs them.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Who gets Admin, since Admins can change roles and permissions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Who should own API tokens. Only the workspace Owner can create and revoke them.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Whether a freelancer gets a workspace seat or just an Edit via Link on one page.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Add a publishing rule for your coding agents
&lt;/h2&gt;

&lt;p&gt;Roles control who &lt;em&gt;can&lt;/em&gt; publish. A short rule in your repo controls how agents &lt;em&gt;should&lt;/em&gt; behave. Add a few lines to &lt;code&gt;AGENTS.md&lt;/code&gt; or &lt;code&gt;CLAUDE.md&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Docs (DocStar)
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;Update docs with the DocStar MCP (https://mcp.docstar.io/mcp).
&lt;span class="k"&gt;- &lt;/span&gt;Save every change as a draft. Never publish unless a person asks.
&lt;span class="k"&gt;- &lt;/span&gt;Only edit collections listed in docs/OWNERS.md.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because DocStar saves agent edits as drafts by default, this keeps the human approval step even when several agents work on the docs. For a full checklist on approving agent drafts, see &lt;a href="https://docstar.io/blog/review-ai-written-docs" rel="noopener noreferrer"&gt;How to Review AI-Written Docs Before They Go Live&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep it current
&lt;/h2&gt;

&lt;p&gt;Access drifts the same way docs do. People join, change teams and leave; new collections get created. Make the access review a routine your agent runs:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use the DocStar MCP to compare current workspace access with the roles plan on our "Docs roles and permissions" page. List anyone whose access doesn't match, any new collection without explicit permissions, and any page with Edit via Link still turned on. Propose fixes and wait for my approval.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Run it monthly, and whenever someone leaves the team. The &lt;strong&gt;User Activity Logs&lt;/strong&gt; at the bottom of the Members page show recent invites, removals and role updates, so you can check what changed. You can pair this with a content check from &lt;a href="https://docstar.io/blog/audit-docs-with-ai" rel="noopener noreferrer"&gt;How to Audit Your Docs with an AI Agent&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prefer to click?
&lt;/h2&gt;

&lt;p&gt;Everything above also works by hand. Click your workspace name at the bottom of the left sidebar, then &lt;strong&gt;Members&lt;/strong&gt;. Use &lt;strong&gt;Invite Member&lt;/strong&gt; to add someone and choose Admin or Member (for a Member, set each collection's permission before sending the invite). Use the &lt;strong&gt;Role&lt;/strong&gt; column to change a role, &lt;strong&gt;Manage Permissions&lt;/strong&gt; to change collection access, and &lt;strong&gt;Remove&lt;/strong&gt; to take someone out of the workspace; removed people lose access immediately.&lt;/p&gt;

&lt;p&gt;One note for SSO workspaces: members come from the other product's sign-in, so the Members page isn't available. Admins have full access, and other users can read content but not edit it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why teams choose DocStar
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;A model anyone can explain.&lt;/strong&gt; Three roles and three collection permissions cover almost every docs team without a policy manual.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agents never exceed their user.&lt;/strong&gt; The DocStar MCP uses browser sign-in and the signed-in person's own permissions, so an agent can't grant access its user doesn't have.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Drafts first, publish on purpose.&lt;/strong&gt; Edits, including agent edits and Edit via Link changes, land as drafts. Readers see the last published version until someone publishes again.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;A record of who published what.&lt;/strong&gt; Published History shows each published version, who published it and when, and lets you restore it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;One source for people and agents.&lt;/strong&gt; The same collection feeds your docs site, &lt;code&gt;llms.txt&lt;/code&gt;, your MCP server and the CLI, so controlling who publishes protects all of them at once.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What roles does DocStar have?&lt;/strong&gt; Three workspace roles: Owner (full access, manages API tokens), Admin (invites and removes members, changes roles, sets collection permissions) and Member (views and edits the collections they've been given). On top of that, each collection is Read Only, Read &amp;amp; Write or Access Denied for each Admin and Member.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can an AI agent change permissions in DocStar?&lt;/strong&gt; Yes, through the DocStar MCP and API, but only within the signed-in user's own access. You can only grant up to the access you have yourself, and the agent asks before changing anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I let someone fix one page without adding them to the workspace?&lt;/strong&gt; Turn on Edit via Link for that page. They don't need a DocStar account, they can edit only that page, and their changes go into the draft for you to review and publish. Turn it off when the work is done.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I see who published a page?&lt;/strong&gt; Yes. Published History lists every published version with the person who published it and the time, and you can restore any of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started free
&lt;/h2&gt;

&lt;p&gt;Set up your docs team in minutes: invite your writers, give each collection the right owners, and let your AI agent keep access tidy. &lt;a href="https://app.docstar.io/login" rel="noopener noreferrer"&gt;Get started free&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://docstar.io/blog/documentation-roles-and-permissions" rel="noopener noreferrer"&gt;DocStar blog&lt;/a&gt;.&lt;/em&gt; Try DocStar free: &lt;a href="https://docstar.io" rel="noopener noreferrer"&gt;https://docstar.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>documentation</category>
      <category>devtools</category>
      <category>api</category>
    </item>
    <item>
      <title>llms.txt vs MCP Server: Which Do Your Docs Need?</title>
      <dc:creator>Docstar</dc:creator>
      <pubDate>Mon, 23 Nov 2026 03:40:05 +0000</pubDate>
      <link>https://dev.to/docstar_io/llmstxt-vs-mcp-server-which-do-your-docs-need-5e22</link>
      <guid>https://dev.to/docstar_io/llmstxt-vs-mcp-server-which-do-your-docs-need-5e22</guid>
      <description>&lt;p&gt;With DocStar, you don't have to choose between llms.txt and an MCP server: every published collection gets both. &lt;strong&gt;llms.txt&lt;/strong&gt; is a plain-text index at the root of your docs site that tells AI tools which pages exist and where to read them. An &lt;strong&gt;MCP server&lt;/strong&gt; is a live connection that lets AI assistants search your docs, and for API docs, call your API for a signed-in user. llms.txt helps AI &lt;em&gt;read&lt;/em&gt; your docs; MCP lets AI &lt;em&gt;use&lt;/em&gt; them.&lt;/p&gt;

&lt;p&gt;That is the short answer. The rest of this guide explains how each one works, when each one matters, and how to set both up in DocStar by handing the job to your AI agent.&lt;/p&gt;

&lt;h2&gt;
  
  
  llms.txt vs MCP server at a glance
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;llms.txt&lt;/th&gt;
&lt;th&gt;MCP server&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What it is&lt;/td&gt;
&lt;td&gt;A text file listing your pages with links and short summaries&lt;/td&gt;
&lt;td&gt;A server AI assistants connect to with a URL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who uses it&lt;/td&gt;
&lt;td&gt;AI crawlers, chat assistants and agents fetching your site&lt;/td&gt;
&lt;td&gt;Claude, ChatGPT, Cursor, VS Code, Codex and other MCP clients&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What the AI can do&lt;/td&gt;
&lt;td&gt;Find and read pages&lt;/td&gt;
&lt;td&gt;Search and read pages, read your API reference and call your API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Setup&lt;/td&gt;
&lt;td&gt;One file at &lt;code&gt;/llms.txt&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;A server with tools, sign-in and instructions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Acts for a user?&lt;/td&gt;
&lt;td&gt;No, read-only&lt;/td&gt;
&lt;td&gt;Yes, with per-user sign-in for API calls&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best for&lt;/td&gt;
&lt;td&gt;Being found and understood by AI&lt;/td&gt;
&lt;td&gt;Being &lt;em&gt;used&lt;/em&gt; by AI inside real workflows&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Think of llms.txt as the table of contents you leave out for any AI that visits, and the MCP server as the front desk where an assistant can ask questions and get work done.&lt;/p&gt;

&lt;h2&gt;
  
  
  What llms.txt does (and doesn't do)
&lt;/h2&gt;

&lt;p&gt;llms.txt is a proposed convention (&lt;a href="https://llmstxt.org" rel="noopener noreferrer"&gt;llmstxt.org&lt;/a&gt;) for a Markdown file at the root of a website. It gives language models a clean list of the pages worth reading, without the navigation, scripts and layout that make HTML noisy.&lt;/p&gt;

&lt;p&gt;It is useful because it is simple. Any AI tool that can fetch a URL can read it. But it has limits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;It's a map, not an interface.&lt;/strong&gt; An AI can read your pages; it can't run anything.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;It's public.&lt;/strong&gt; It has no idea who the reader is, so it can't act on anyone's account.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;It only helps if something fetches it.&lt;/strong&gt; Whether a given AI tool reads llms.txt is up to that tool.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is why the "llms.txt vs MCP" question often has the wrong framing. One makes your docs readable. The other makes your product usable from inside an AI assistant.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an MCP server adds
&lt;/h2&gt;

&lt;p&gt;MCP (Model Context Protocol) is the standard way AI assistants connect to other apps. An MCP server exposes &lt;strong&gt;tools&lt;/strong&gt; the assistant can call. For docs, that means the assistant doesn't have to guess which page to fetch. It can search your docs, read the right page, and, for an API, make the actual call.&lt;/p&gt;

&lt;p&gt;If you're new to MCP, start with &lt;a href="https://docstar.io/blog/what-is-an-mcp-server" rel="noopener noreferrer"&gt;What Is an MCP Server?&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How llms.txt and MCP work in DocStar
&lt;/h2&gt;

&lt;p&gt;DocStar generates both from the same published docs, so there is nothing to keep in sync between them.&lt;/p&gt;

&lt;h3&gt;
  
  
  llms.txt, Markdown copies and a sitemap, automatically
&lt;/h3&gt;

&lt;p&gt;When you publish a DocStar collection, DocStar builds an &lt;code&gt;llms.txt&lt;/code&gt; file from your published pages (&lt;a href="https://docstar.io/help/publish-and-seo/seo" rel="noopener noreferrer"&gt;SEO, Sitemap and llms.txt&lt;/a&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;On a custom domain it lives at &lt;code&gt;https://your-domain.com/llms.txt&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For a regular docs collection it lists each published page with its link and a short summary.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For an API collection it also tells AI agents how to discover your modules and endpoints.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every published page also has a &lt;strong&gt;Markdown copy&lt;/strong&gt;: add &lt;code&gt;.md&lt;/code&gt; to the end of the page URL. The links in llms.txt point to these Markdown versions, which AI tools read more reliably than HTML. DocStar also builds &lt;code&gt;sitemap.xml&lt;/code&gt; for search engines, and readers get a &lt;strong&gt;Copy page&lt;/strong&gt; button with &lt;strong&gt;Open in ChatGPT&lt;/strong&gt;, &lt;strong&gt;Open in Claude&lt;/strong&gt; and &lt;strong&gt;Open in Perplexity&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;One thing to know: pages on the default DocStar link are marked &lt;code&gt;noindex&lt;/code&gt;, so connect a custom domain if you want search traffic. For the bigger picture on AI-readable docs, see &lt;a href="https://docstar.io/blog/is-your-documentation-readable-by-ai-llms-txt" rel="noopener noreferrer"&gt;Is Your Documentation Readable by AI?&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  A hosted MCP server for every collection
&lt;/h3&gt;

&lt;p&gt;DocStar also gives each collection its own MCP server, with nothing for you to host (&lt;a href="https://docstar.io/help/mcp/collection-mcp-server" rel="noopener noreferrer"&gt;Build an MCP Server for Your App&lt;/a&gt;). Its URL looks like &lt;code&gt;https://mcp.docstar.io/connector/your_collection_slug&lt;/code&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Collection type&lt;/th&gt;
&lt;th&gt;What AI assistants can do through its MCP server&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Docs and blogs&lt;/td&gt;
&lt;td&gt;Search and read your published pages&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API docs&lt;/td&gt;
&lt;td&gt;Search and read your docs, read your API reference, and call your API&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Only published content reaches the server; drafts never do. For API collections you control how assistants behave:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Endpoint tools:&lt;/strong&gt; give up to 20 of your most important endpoints their own tools.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Skill:&lt;/strong&gt; the guide assistants read before using your API.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Additional instructions:&lt;/strong&gt; short rules applied every time an assistant connects (under 2,000 characters).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Sign-in for API calls:&lt;/strong&gt; let assistants call your API as the signed-in user, through your OAuth app.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Logs:&lt;/strong&gt; see every call assistants made through the server, with the reason a call failed (for example a &lt;code&gt;401&lt;/code&gt;, &lt;code&gt;404&lt;/code&gt; or &lt;code&gt;422&lt;/code&gt;). Calls are kept for two weeks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Custom domain:&lt;/strong&gt; serve the server on something like &lt;code&gt;mcp.yourcompany.com&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Set up both with your AI agent
&lt;/h2&gt;

&lt;p&gt;You don't need to click through settings to get here. DocStar's own MCP server lets Claude Code, Cursor, Codex or another assistant do the setup for you.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Connect your assistant to DocStar
&lt;/h3&gt;

&lt;p&gt;Add DocStar from your assistant's connector directory, or add it as a custom remote MCP server with &lt;code&gt;https://mcp.docstar.io/mcp&lt;/code&gt;. The first time it needs your workspace, you sign in to DocStar in your browser. There is no API key to copy, and the assistant only gets the access your DocStar account already has.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Give it one prompt
&lt;/h3&gt;

&lt;p&gt;Open your coding agent in your API's repo and paste something like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use the DocStar MCP to make our API docs ready for AI. Read &lt;a href="https://docstar.io/mcp/quickstart.md" rel="noopener noreferrer"&gt;https://docstar.io/mcp/quickstart.md&lt;/a&gt; first and follow it. Read our latest API code, not an old OpenAPI file, and document every endpoint in a DocStar API collection with a clear description, every parameter and a full JSON request example. Pick our 10 most important endpoints as MCP tools, write the skill, and add instructions for anything an assistant must confirm before calling. Show me your plan before you change anything, and don't publish until I say so.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  3. What the agent does
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Reads your routes and handlers to find the real endpoints.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Creates or picks the DocStar collection and documents each endpoint.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Chooses endpoint tools and writes the skill and instructions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Shows you what it will create or change and waits for your OK before it does.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Your part: review and publish
&lt;/h3&gt;

&lt;p&gt;The human work is judgment: which endpoints stay private, how tools are named, what an assistant must confirm before a write, and the few things only you can enter, such as your OAuth app's client details for sign-in. When you're happy, tell the agent to publish (or publish in the app).&lt;/p&gt;

&lt;p&gt;The moment the collection is published, both sides are live from the same content: &lt;code&gt;llms.txt&lt;/code&gt; and &lt;code&gt;.md&lt;/code&gt; copies for any AI that reads your site, and the MCP server for assistants that need to search and act.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Test it like a user would
&lt;/h3&gt;

&lt;p&gt;Add your collection's MCP URL to an assistant and ask for a real task. If a call fails, open &lt;strong&gt;Logs&lt;/strong&gt; in the MCP tab to see why, then ask your agent to fix the docs or the skill. We walk through this in &lt;a href="https://docstar.io/blog/test-api-docs-with-ai-agents" rel="noopener noreferrer"&gt;How to Test If AI Agents Can Use Your API Docs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep it current
&lt;/h2&gt;

&lt;p&gt;Both llms.txt and the MCP server are only as good as the docs behind them, and both update when you republish. The risk is stale docs: a field gets renamed in code and the docs change later, or never. With an MCP server in the mix, stale docs no longer just confuse readers. An agent calling your API with the old field gets a failed call.&lt;/p&gt;

&lt;p&gt;When code changes, ask your agent to update the docs in the same piece of work:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;We renamed &lt;code&gt;customer_id&lt;/code&gt; to &lt;code&gt;account_id&lt;/code&gt; in the Orders API. Update the matching DocStar endpoints and the MCP skill, show me the diff, and save it as a draft.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For teams that keep docs in the repo, DocStar's &lt;a href="https://docstar.io/blog/keep-api-docs-in-sync-with-code" rel="noopener noreferrer"&gt;GitHub Sync&lt;/a&gt; puts OpenAPI files in &lt;code&gt;api-docs/&lt;/code&gt; next to the code, so the docs change in the same pull request and a GitHub Action sends them to DocStar on every push. With the DocStar MCP connected, ask your agent to "set up DocStar GitHub Sync for this repo" and it does the setup. It still depends on the agent (or a person) making the docs change; DocStar doesn't watch your repo for drift on its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prefer to click?
&lt;/h2&gt;

&lt;p&gt;You can do all of this in the app. Publish your collection and llms.txt and the Markdown copies appear automatically. Then open the collection's &lt;strong&gt;Settings&lt;/strong&gt;, go to the &lt;strong&gt;MCP&lt;/strong&gt; tab, copy the server URL, and set up tools, skill, instructions and sign-in there.&lt;/p&gt;

&lt;h2&gt;
  
  
  So which do your docs need?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Docs that only need to be found and quoted by AI&lt;/strong&gt; (a help center, a blog): llms.txt and Markdown copies cover most of it, and a read-only MCP server adds search inside assistants.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;API docs&lt;/strong&gt;: you want both. llms.txt helps AI understand your API; the MCP server lets it actually call it for your users.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In DocStar, it's not a trade-off. You publish once and get both.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why teams choose DocStar
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Both from one source.&lt;/strong&gt; llms.txt, Markdown copies, sitemap and an MCP server are generated from the same published docs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;No server to run.&lt;/strong&gt; The MCP server is hosted per collection, with sign-in, logs and an optional custom domain.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agent-first.&lt;/strong&gt; Your coding agent can document the API and configure the server; it asks before changing anything, and you publish.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Everything in one workspace.&lt;/strong&gt; API docs, help docs, FAQs, changelog and blog, plus a CLI generated from your published API docs.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does DocStar generate llms.txt automatically?
&lt;/h3&gt;

&lt;p&gt;Yes. DocStar builds llms.txt from your published pages. On a custom domain it is at &lt;code&gt;/llms.txt&lt;/code&gt;, and its links point to the Markdown copy of each page.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is an MCP server a replacement for llms.txt?
&lt;/h3&gt;

&lt;p&gt;No. They do different jobs. llms.txt is a readable index for any AI that fetches your site; an MCP server is a connection assistants use to search your docs and call your API. DocStar gives you both.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can AI assistants see my draft pages?
&lt;/h3&gt;

&lt;p&gt;No. Only published content reaches llms.txt and your MCP server. Drafts never do.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I have to write MCP server code?
&lt;/h3&gt;

&lt;p&gt;No. DocStar hosts the server for each collection. You or your AI agent configure tools, the skill, instructions and sign-in.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I know if AI assistants are using my MCP server well?
&lt;/h3&gt;

&lt;p&gt;Open &lt;strong&gt;Logs&lt;/strong&gt; in the MCP tab. You see each call, what the assistant sent, what your API returned, and why a call failed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started free
&lt;/h2&gt;

&lt;p&gt;Publish your docs once and give every AI both a map and a front door. &lt;a href="https://app.docstar.io/login" rel="noopener noreferrer"&gt;Get started free with DocStar&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://docstar.io/blog/llms-txt-vs-mcp" rel="noopener noreferrer"&gt;DocStar blog&lt;/a&gt;.&lt;/em&gt; Try DocStar free: &lt;a href="https://docstar.io" rel="noopener noreferrer"&gt;https://docstar.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>api</category>
      <category>seo</category>
    </item>
    <item>
      <title>How to Review AI-Written Docs Before They Go Live</title>
      <dc:creator>Docstar</dc:creator>
      <pubDate>Sun, 22 Nov 2026 03:40:04 +0000</pubDate>
      <link>https://dev.to/docstar_io/how-to-review-ai-written-docs-before-they-go-live-2l6j</link>
      <guid>https://dev.to/docstar_io/how-to-review-ai-written-docs-before-they-go-live-2l6j</guid>
      <description>&lt;p&gt;With DocStar, AI-written docs never go live on their own: your AI agent asks before it changes anything, every edit is saved as a draft, and a person on your team publishes. That gives you a natural review step. This guide shows how to use it well: let an agent draft and pre-check the changes, then review the parts only a human can judge, and publish with confidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why AI-written docs need a review step
&lt;/h2&gt;

&lt;p&gt;AI agents now write a lot of documentation. A coding agent can read your routes and document every endpoint, turn release notes into a changelog, or rewrite a confusing help page in minutes. That speed is the point, but it moves the risk. The hard part is no longer writing the page. It is making sure what goes live is true.&lt;/p&gt;

&lt;p&gt;AI drafts fail in a few predictable ways:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What goes wrong&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;Why it matters&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Invented details&lt;/td&gt;
&lt;td&gt;A rate limit or field that isn't in your code&lt;/td&gt;
&lt;td&gt;Readers and agents trust it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Out-of-date facts&lt;/td&gt;
&lt;td&gt;The draft describes last month's behaviour&lt;/td&gt;
&lt;td&gt;Support tickets, failed calls&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wrong scope&lt;/td&gt;
&lt;td&gt;Internal or admin endpoints in public docs&lt;/td&gt;
&lt;td&gt;Security and confusion&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tone and naming&lt;/td&gt;
&lt;td&gt;Product names or terms used inconsistently&lt;/td&gt;
&lt;td&gt;Your docs stop sounding like you&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Secrets in examples&lt;/td&gt;
&lt;td&gt;A real token pasted into a request sample&lt;/td&gt;
&lt;td&gt;A leak, not just a typo&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In DocStar this matters even more, because the same published docs feed your docs site, &lt;code&gt;llms.txt&lt;/code&gt;, the MCP server AI agents use to call your API, and the CLI. A wrong field in a published endpoint doesn't just confuse a reader. An agent calling your API copies it, and the call fails.&lt;/p&gt;

&lt;h2&gt;
  
  
  How review works in DocStar
&lt;/h2&gt;

&lt;p&gt;DocStar is built so that nothing an AI writes reaches readers until someone publishes it. These are the pieces you review with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The agent asks first.&lt;/strong&gt; When you connect Claude, Cursor, ChatGPT or another assistant to the DocStar MCP, it shows you what it will create, change or publish and waits for your OK (&lt;a href="https://docstar.io/help/mcp" rel="noopener noreferrer"&gt;how it works&lt;/a&gt;).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Every change starts as a draft.&lt;/strong&gt; Drafts are visible only inside your workspace. When you or an agent edit a published page, the live site keeps showing the last published version until the page is published again.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Amber dots show what's waiting.&lt;/strong&gt; In &lt;strong&gt;Settings &amp;gt; Publish Collection&lt;/strong&gt;, each page has a dot: red for Unpublished, amber for Updated (live, but changed since), green for Published. Amber pages are your review queue (&lt;a href="https://docstar.io/help/publish-and-seo/publish-pages" rel="noopener noreferrer"&gt;Publish Pages&lt;/a&gt;).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Two histories per page.&lt;/strong&gt; Version History keeps every saved draft and who made the changes; Published History keeps every version that went live and who published it. You can preview and restore either (&lt;a href="https://docstar.io/help/writing-and-formatting/version-history" rel="noopener noreferrer"&gt;Version History&lt;/a&gt;).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Permissions decide who can publish.&lt;/strong&gt; Each Admin and Member gets Read Only, Read &amp;amp; Write or Access Denied per collection, and only people with edit access can publish. Your agent works with exactly your permissions, never more.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;AI suggestions wait for approval.&lt;/strong&gt; AI-generated FAQs stay in a Pending tab until someone approves them, and AI changelog entries are drafts until you publish them.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The agent-first review workflow
&lt;/h2&gt;

&lt;p&gt;Our main workflow is agent-first: the agent drafts the change and does the first pass of review, and a person makes the final call. Here is how to set it up.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Connect your AI assistant to the DocStar MCP
&lt;/h3&gt;

&lt;p&gt;Add &lt;code&gt;https://mcp.docstar.io/mcp&lt;/code&gt; to Claude Code, Cursor, Codex or another assistant (or add DocStar from its connector directory). The first time it needs your workspace, you sign in to DocStar in your browser. There is no API key to copy. See &lt;a href="https://docstar.io/help/mcp" rel="noopener noreferrer"&gt;Connect your AI assistant&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Let the agent draft the change
&lt;/h3&gt;

&lt;p&gt;Ask for the documentation work in plain language, as you normally would: "document the new refunds endpoint", "update the Webhooks page for the new event". The agent reads your code, writes the pages or endpoint docs, and saves them as drafts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Ask the agent to review its own drafts against the source
&lt;/h3&gt;

&lt;p&gt;Before a person reads anything, have the agent check the drafts against the real source of truth: your code, your specs and your published docs. Paste a prompt like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Using the DocStar MCP, list every page and endpoint in our "Payments API" collection that has unpublished changes. For each one, compare the draft with our code in this repo and flag: (1) any field, parameter, limit or error code that isn't in the code, (2) anything the code does that the draft leaves out, (3) internal or admin endpoints that shouldn't be public, (4) anything that looks like a real token or secret in an example, and (5) product names or terms that don't match the rest of our docs. Give me a short report per page with the exact lines to fix. Don't change or publish anything yet.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent lists the collection's pages, reads each draft, checks it against the code it can see, and hands you a report. Because it asks before it changes anything, nothing is edited until you say so. When you agree with a fix, tell it to apply it, and the corrected text is saved as a draft again.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: The human review
&lt;/h3&gt;

&lt;p&gt;This is the part only a person can do, and it is where your time should go. The agent's report already caught the mechanical problems, so you focus on judgment:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;What stays private.&lt;/strong&gt; Is every endpoint in the draft one your users should call? Admin, internal and debug routes never belong in public docs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Is it true for users?&lt;/strong&gt; The code says what is possible; you know what is supported, on which plans, and what is about to change.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Naming and tone.&lt;/strong&gt; Does it sound like your product? Are features called what your UI and marketing call them?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Examples.&lt;/strong&gt; Would a new user get a working first call from this example?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Open each amber page, read the draft, and use &lt;strong&gt;Version History&lt;/strong&gt; if you want to see exactly what changed and who changed it. If a draft goes the wrong way, restore an earlier version and start again.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Publish what you approved
&lt;/h3&gt;

&lt;p&gt;When the drafts pass, publish them yourself from the page or with bulk publish, or tell the agent:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Publish the pages we just reviewed in the Payments API collection, and nothing else.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent shows you the list and waits for your OK. Once published, the docs site, &lt;code&gt;llms.txt&lt;/code&gt;, MCP tools and CLI commands all use the new version. If something slips through, Published History lets you roll back to what readers saw before, then publish again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reviewing API docs in pull requests with GitHub Sync
&lt;/h2&gt;

&lt;p&gt;If your API docs live in your repository, &lt;a href="https://docstar.io/help/integrations/github-sync" rel="noopener noreferrer"&gt;GitHub Sync&lt;/a&gt; moves review to where your team already reviews code. OpenAPI files sit in &lt;code&gt;api-docs/&lt;/code&gt; and Markdown pages in &lt;code&gt;docs/&lt;/code&gt;, next to the code. When a coding agent changes an endpoint, &lt;code&gt;docstar.md&lt;/code&gt; plus a line in &lt;code&gt;AGENTS.md&lt;/code&gt; tells it to update the spec in the same change, so the spec change shows up in the same pull request diff as the code. Reviewers approve both together. On push, the GitHub Action sends the changed files to DocStar, with no manual import.&lt;/p&gt;

&lt;p&gt;Two honest notes. First, with GitHub Sync the pull request is your review gate, because a push to the synced branch updates the docs. Second, the agent still has to make the doc change: DocStar does not watch your repo or compare code with docs on its own. If someone changes code without updating the spec, the docs drift until it's caught. Your AI can set the whole thing up with one prompt ("set up DocStar GitHub Sync for this repo"). We cover this in &lt;a href="https://docstar.io/blog/keep-api-docs-in-sync-with-code" rel="noopener noreferrer"&gt;How to Keep Your API Docs in Sync with Your Code&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep it current: make review part of every release
&lt;/h2&gt;

&lt;p&gt;Review isn't a one-off. Add a short check to your release routine so AI-written changes never pile up unreviewed:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Using the DocStar MCP, list all pages in our collections that are live but have unpublished changes, and all pending AI FAQs. For each, tell me what changed and whether it still matches the current code. Suggest which ones are ready to publish and which need a person to look.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For a deeper pass across a whole collection, see &lt;a href="https://docstar.io/blog/audit-docs-with-ai" rel="noopener noreferrer"&gt;How to Audit Your Docs with an AI Agent&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you want your team pinged when docs change, DocStar webhooks can notify your systems on events like page content updates (the payload includes the content before and after the change) and publish status changes, so you can post them to a review channel.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick review checklist
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Who does it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Fields, params, limits and errors match the code&lt;/td&gt;
&lt;td&gt;Agent, then human spot-check&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nothing the code does is missing&lt;/td&gt;
&lt;td&gt;Agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No secrets in examples&lt;/td&gt;
&lt;td&gt;Agent, plus DocStar's warning on endpoint publish&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Only public endpoints are documented&lt;/td&gt;
&lt;td&gt;Human&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Naming, tone and plan details&lt;/td&gt;
&lt;td&gt;Human&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Changes published, nothing else&lt;/td&gt;
&lt;td&gt;Human approves, agent or human publishes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When you publish an API endpoint and DocStar finds what looks like a secret, such as a token, it shows a Sensitive Information Warning so you can remove it first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prefer to review by hand?
&lt;/h2&gt;

&lt;p&gt;Open your collection's &lt;strong&gt;Settings &amp;gt; Publish Collection&lt;/strong&gt;, scroll to &lt;strong&gt;Bulk Page Publishing&lt;/strong&gt;, and look for amber dots. Open each page, compare it with &lt;strong&gt;Version History&lt;/strong&gt;, fix what you need in the editor, then tick the pages and click &lt;strong&gt;Publish Selected&lt;/strong&gt;. For AI FAQs, open &lt;strong&gt;FAQ&lt;/strong&gt; in the left sidebar and use the &lt;strong&gt;Pending&lt;/strong&gt; tab to approve, edit or reject each suggestion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why teams choose DocStar
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Drafts by default.&lt;/strong&gt; AI and humans write into the same draft-then-publish flow, so nothing reaches readers by accident.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agent does the first pass.&lt;/strong&gt; Your AI drafts, checks its work against the code and fixes what you approve, so people spend time on judgment, not proofreading.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;One review, four outputs.&lt;/strong&gt; Approve once and your docs site, &lt;code&gt;llms.txt&lt;/code&gt;, MCP server and CLI all update together.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Clear history and permissions.&lt;/strong&gt; Every page keeps draft and published history, and collection permissions decide who can publish.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can an AI agent publish docs in DocStar without anyone approving?&lt;/strong&gt; The agent asks before it creates, changes or publishes anything, and every edit is saved as a draft first. It also has only your permissions: if you can only read a collection, so can the agent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I see what an AI agent changed on a page?&lt;/strong&gt; Open the page's Version History. It records your draft each time an editing session ends, with when it was saved and who made the changes, and you can preview and restore any version.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What happens to the live page while a change is in review?&lt;/strong&gt; Readers keep seeing the last published version. The page shows an amber Updated dot until you publish it again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do AI-generated FAQs and changelogs need review too?&lt;/strong&gt; Yes. AI FAQs stay pending until someone approves them, and AI changelog entries are drafts until you publish them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I undo a published change?&lt;/strong&gt; Yes. Restore an earlier version from Published History; it loads into the editor as a draft, and you publish it again to make it live.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started free
&lt;/h2&gt;

&lt;p&gt;Connect your AI assistant to DocStar, let it draft and pre-check your docs, and publish only what your team approves. &lt;a href="https://app.docstar.io/login" rel="noopener noreferrer"&gt;Get started free&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://docstar.io/blog/review-ai-written-docs" rel="noopener noreferrer"&gt;DocStar blog&lt;/a&gt;.&lt;/em&gt; Try DocStar free: &lt;a href="https://docstar.io" rel="noopener noreferrer"&gt;https://docstar.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>documentation</category>
      <category>devtools</category>
      <category>api</category>
    </item>
    <item>
      <title>How to Audit Your Docs with an AI Agent</title>
      <dc:creator>Docstar</dc:creator>
      <pubDate>Sat, 21 Nov 2026 03:40:04 +0000</pubDate>
      <link>https://dev.to/docstar_io/how-to-audit-your-docs-with-an-ai-agent-43po</link>
      <guid>https://dev.to/docstar_io/how-to-audit-your-docs-with-an-ai-agent-43po</guid>
      <description>&lt;p&gt;With DocStar, you can audit your whole docs site with an AI agent in one prompt: connect Claude Code, Cursor or Codex to the DocStar MCP, ask it to find gaps, outdated pages and broken links, and it reads every page, reports what it found, and saves each fix as a draft for you to review. Nothing goes live until you publish it.&lt;/p&gt;

&lt;p&gt;Most docs teams know their docs have problems. They just never find the afternoon to read 80 pages side by side and list them. An AI agent connected to your DocStar workspace can do that reading for you, so the audit stops being a quarterly project and becomes a prompt you run whenever you ship.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why docs audits never happen (and why it matters more now)
&lt;/h2&gt;

&lt;p&gt;A manual docs audit means opening every page, checking it against the product, noting broken links, spotting duplicate answers and finding the topics nobody wrote. It is slow, boring and easy to postpone.&lt;/p&gt;

&lt;p&gt;The cost of skipping it has gone up. Your docs are no longer read only by people. AI assistants read your pages through llms.txt and the Markdown copy of every page, and in DocStar an API collection's docs also power the MCP server that AI agents use to call your API. An outdated page now gives an AI assistant a wrong answer, not just a confused reader.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What goes wrong&lt;/th&gt;
&lt;th&gt;What it costs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A page describes an old screen or flow&lt;/td&gt;
&lt;td&gt;Support tickets from readers who followed it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Two pages answer the same question differently&lt;/td&gt;
&lt;td&gt;Readers and AI assistants pick the wrong one&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A link points to a page that was removed&lt;/td&gt;
&lt;td&gt;Dead ends for readers and crawlers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A common question has no page at all&lt;/td&gt;
&lt;td&gt;Readers leave, or open a ticket&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An API page is missing a field or example&lt;/td&gt;
&lt;td&gt;AI agents call your API with the wrong body&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How to audit your docs with an AI agent in DocStar
&lt;/h2&gt;

&lt;p&gt;This is the main path we recommend. You do the judgment calls; the agent does the reading and the first drafts.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Connect your AI assistant to DocStar
&lt;/h3&gt;

&lt;p&gt;Add DocStar to Claude Code, Cursor, Codex, Claude or ChatGPT. If DocStar is in your assistant's connector directory, connect it from there. If not, add it as a custom (remote) MCP server with this URL:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://mcp.docstar.io/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first time the assistant needs your workspace, you sign in to DocStar in your browser. There is no API key to copy. The assistant only sees the workspaces and collections your DocStar account can access, with the same permissions you have. See &lt;a href="https://docstar.io/help/mcp/connect-ai-assistant" rel="noopener noreferrer"&gt;Connect your AI assistant&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Give it one audit prompt
&lt;/h3&gt;

&lt;p&gt;Paste a prompt like this and change the collection name:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use the DocStar MCP to audit our "Help Docs" collection. Read every page. Then give me a report with: (1) pages that look outdated or contradict each other, (2) links that point to pages that don't exist in the collection, (3) questions a new user would ask that no page answers, (4) pages that are too thin to be useful, and (5) API pages missing a description, a parameter or a full request example. Rank the issues by impact. Don't change anything yet; show me the report first.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  3. What the agent does
&lt;/h3&gt;

&lt;p&gt;With the DocStar MCP connected, the agent can find your collections and pages, read them, rewrite or fix them, rename pages and change their URLs, and publish when you say so. For an audit, that means it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Lists every page in the collection and reads each one.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Compares pages with each other to find duplicates and contradictions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Checks the links on each page against the pages that actually exist.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Notes topics that are mentioned but never explained.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For API collections, checks each endpoint doc for missing descriptions, parameters and examples.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you point it at your code, compares what the docs say with what the code does.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You get a ranked list, not a pile of edits.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. You decide, the agent drafts the fixes
&lt;/h3&gt;

&lt;p&gt;Read the report and tell the agent what to fix:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Fix issues 1 to 6. Merge the two "Reset password" pages into one and point the old URL at it. Write a new "Getting started" page for the missing setup steps. Leave the pricing pages alone; I'll handle those.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;DocStar is safe by design here. The agent shows you what it will create, change or publish and waits for your OK, and every edit is saved as a draft. Drafts never reach your live site or your MCP server. When a page's URL changes, DocStar redirects the old URL to the new one automatically, so merged or renamed pages don't create new broken links. See &lt;a href="https://docstar.io/help/publish-and-seo/redirects" rel="noopener noreferrer"&gt;Redirects&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Review and publish
&lt;/h3&gt;

&lt;p&gt;Open the drafts in DocStar, check the tone and the facts, and publish. Or ask the agent: "Publish the pages we fixed." If a change turns out wrong, every page keeps a Version History and a Published History, so you can preview an older copy and restore it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The human's job:&lt;/strong&gt; decide what matters, what stays private, how things are named and how they should sound. The agent's job: the reading, the comparing and the first drafts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add real reader signals to the audit
&lt;/h2&gt;

&lt;p&gt;An agent can tell you what looks wrong. Your readers can tell you what actually hurts. DocStar's Analytics dashboard shows, for each page, how many times it was read, its SEO score, Yes and No votes from "Was this helpful?" and readers' written comments.&lt;/p&gt;

&lt;p&gt;Before you run the audit:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Open your collection and click &lt;strong&gt;Analytics&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set the date to &lt;strong&gt;Last Month&lt;/strong&gt; and sort by &lt;strong&gt;Reads&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Note the popular pages with many &lt;strong&gt;No&lt;/strong&gt; votes, and copy a few of the comments.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then add them to your prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;These pages get the most reads and the most "No" votes: [list]. Readers said: [comments]. Start the audit with these pages and tell me what is missing from each one.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A popular page with many No votes is usually your top priority. See &lt;a href="https://docstar.io/help/analytics-and-feedback/reader-feedback" rel="noopener noreferrer"&gt;Reader Feedback&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Auditing API docs: check them against the code
&lt;/h2&gt;

&lt;p&gt;For an API collection, the most valuable audit compares the docs with your current code. Open your coding agent in the repo and ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use the DocStar MCP. Read our API routes in this repo and compare them with the endpoints in our "Payments API" collection. List every endpoint that is missing, renamed, or has different fields than the docs say. Then update the endpoint docs to match the code, as drafts.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This matters because in DocStar the same API docs feed your docs site, llms.txt, the CLI and the MCP server that AI agents use to call your API. If a field name in the docs is wrong, an agent calling your API sends the wrong field and the call fails.&lt;/p&gt;

&lt;p&gt;If your API collection already has an MCP server, its &lt;strong&gt;Logs&lt;/strong&gt; help here too. In the collection's MCP tab you can see every call AI assistants made through your MCP server: what the assistant sent, the request, and your API's response. A &lt;code&gt;404&lt;/code&gt; usually means a wrong path or id, and a &lt;code&gt;400&lt;/code&gt; or &lt;code&gt;422&lt;/code&gt; a wrong request body, which often points to a docs gap. Calls are kept for two weeks, and you need edit access to the collection to see them. For a deeper version of this check, see &lt;a href="https://docstar.io/blog/test-api-docs-with-ai-agents" rel="noopener noreferrer"&gt;How to Test If AI Agents Can Use Your API Docs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep it current: make the audit a habit
&lt;/h2&gt;

&lt;p&gt;One audit fixes today's docs. Keeping them right is a habit, and DocStar makes it a small one.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Run the audit after every release.&lt;/strong&gt; Same prompt, scoped to what changed: "Read the release notes for v2.4 and update any DocStar pages they affect, as drafts."&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Keep API docs next to the code.&lt;/strong&gt; With &lt;a href="https://docstar.io/blog/keep-api-docs-in-sync-with-code" rel="noopener noreferrer"&gt;GitHub Sync&lt;/a&gt;, your OpenAPI files live in the repo and change in the same pull request as the code. A line in AGENTS.md tells your coding agent to update the endpoint's spec in the same change, and on push DocStar updates the docs site, MCP tools and CLI commands. Spec changes show up in the PR diff, so they get reviewed like code. Your agent can set it up in one prompt: "Set up DocStar GitHub Sync for this repo."&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Know the limit.&lt;/strong&gt; GitHub Sync works when the agent (or a person) updates the spec with the change. If someone changes code and skips the docs, the docs drift and nothing catches it automatically. That is exactly why a regular audit prompt is worth keeping.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Read more about this workflow in &lt;a href="https://docstar.io/blog/what-is-docs-as-code" rel="noopener noreferrer"&gt;What Is Docs-as-Code?&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Prefer to audit by hand?
&lt;/h2&gt;

&lt;p&gt;You can still do it yourself in DocStar. Use the sidebar filter to show only &lt;strong&gt;Published&lt;/strong&gt; or &lt;strong&gt;Unpublished&lt;/strong&gt; pages, open &lt;strong&gt;Analytics&lt;/strong&gt; to sort pages by reads and feedback, check each page's SEO score, and open &lt;strong&gt;Logs&lt;/strong&gt; in the sidebar to see who changed what across the collection. It works, but it is the slow version of the same audit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why teams choose DocStar for AI-driven docs work
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;One workspace for everything.&lt;/strong&gt; API docs, help docs, FAQs, changelog and blog live together, so one agent can audit all of them.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agent-first by default.&lt;/strong&gt; The DocStar MCP lets Claude, ChatGPT, Cursor, Codex and others read, write, organise and publish your docs with browser sign-in.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Safe changes.&lt;/strong&gt; The agent asks before it changes anything, edits are saved as drafts, old URLs redirect automatically and every page has a version history.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Docs that serve people and AI.&lt;/strong&gt; Every collection gets llms.txt, a Markdown copy of every page and its own MCP server; API collections also get a CLI.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Real reader signals.&lt;/strong&gt; Reads, SEO scores and "Was this helpful?" feedback show where to start.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can an AI agent change my live docs without asking?&lt;/strong&gt; No. With the DocStar MCP, the assistant shows you what it will create, change or publish and waits for your OK. Every edit is saved as a draft, and drafts never reach your live docs or your MCP server until you publish.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which AI assistants can audit my DocStar docs?&lt;/strong&gt; Any assistant that supports MCP, including Claude, Claude Code, ChatGPT, Cursor, VS Code and Codex. Connect it from the connector directory or add &lt;code&gt;https://mcp.docstar.io/mcp&lt;/code&gt; as a custom MCP server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need an API key?&lt;/strong&gt; No. You sign in to DocStar in your browser the first time the assistant needs your workspace. If your assistant can't connect that way, you can use an Auth Key instead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if the agent's fix is wrong?&lt;/strong&gt; Don't publish the draft, or restore an earlier copy from Version History or Published History. Restoring a published version loads it as your current draft, so you review it before it goes live again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How often should we audit our docs?&lt;/strong&gt; Run a full audit once, then a short one after each release. With GitHub Sync for API docs and a release-time audit prompt, most problems are caught before readers find them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started free
&lt;/h2&gt;

&lt;p&gt;Connect your AI assistant to DocStar and run your first docs audit today. &lt;a href="https://app.docstar.io/login" rel="noopener noreferrer"&gt;Get started free&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://docstar.io/blog/audit-docs-with-ai" rel="noopener noreferrer"&gt;DocStar blog&lt;/a&gt;.&lt;/em&gt; Try DocStar free: &lt;a href="https://docstar.io" rel="noopener noreferrer"&gt;https://docstar.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>documentation</category>
      <category>devtools</category>
    </item>
    <item>
      <title>DocStar</title>
      <dc:creator>Docstar</dc:creator>
      <pubDate>Fri, 20 Nov 2026 08:04:28 +0000</pubDate>
      <link>https://dev.to/docstar_io/docstar-32p3</link>
      <guid>https://dev.to/docstar_io/docstar-32p3</guid>
      <description>&lt;p&gt;Most API docs are written for humans and go stale fast. DocStar is an API documentation platform built for people and AI agents, and it takes a different route to getting docs written.&lt;/p&gt;

&lt;p&gt;Paste one setup prompt into a coding agent such as Claude Code, Cursor or Codex. The agent reads your API's routes and creates the docs, so no OpenAPI file is needed. If you already have an OpenAPI, Swagger 2 or Postman file, you can import it instead.&lt;/p&gt;

&lt;p&gt;From that one source, DocStar publishes a docs site with a try-it playground, llms.txt and markdown for every page, a hosted MCP server with OAuth sign-in, a CLI (docstar-cli) and an OpenAPI 3 export. Agents draft and propose changes, and you review and publish unless you enable auto-publish.&lt;/p&gt;

&lt;p&gt;After launch, a GitHub app or GitHub Actions sync watches your repo and drafts doc fixes when routes, params or responses change. There is also analytics on human and agent traffic. A free plan is available. Details at &lt;a href="https://docstar.io/" rel="noopener noreferrer"&gt;https://docstar.io/&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>mcp</category>
      <category>ai</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
