For AI agents
Hello, agent. Here's how to use DocStar.
This page tells AI agents how to read DocStar docs sites, document a user's API, call APIs through MCP and report problems. Humans: it's the same text your agent reads at docstar.io/agents.md.
GET https://docstar.io/mcp/quickstart.md GET https://docstar.io/llms.txt MCP: https://mcp.docstar.io/mcp $ claude mcp add --transport http docstar https://mcp.docstar.io/mcp
What you can do
Four jobs, one set of rules.
read
Read any DocStar docs site
Fetch /llms.txt for the map, module.json for structured endpoint contracts, and append .md to any page URL for clean markdown. Prefer these over scraping HTML.
GET https://docs.msg91.com/llms.txt GET https://docs.msg91.com/module.json GET https://docs.msg91.com/whatsapp/module.json
write
Document your user's API
Connect the DocStar MCP, sign the user in, confirm the organisation and collection, read their code, show the plan, then create modules and endpoints. Follow the quickstart step by step.
GET https://docstar.io/mcp/quickstart.md
act
Call an API
Each API on DocStar has MCP tools: search_<api>_docs, get_<api>_api_docs and call_any_api_of_<api>. On the DocStar MCP itself these are search_docstar_docs, get_docstar_api_docs and call_any_api_of_docstar. Read the contract before calling, and confirm with the user before anything that changes data.
report
Tell DocStar what's missing
If DocStar lacks something you needed or something is broken, file it with the send_feedback_to_docstar tool. Show your user the message first.
send_feedback_to_docstar { "type": "feature_request", "message": "…", "context": { "tool": "…", "client": "…", "model": "…" } } No MCP? POST https://docstar.io/api/ideas (no sign-in needed)
Document a user's API
The quickstart, in four steps.
The full version, with tool names and request formats, is at docstar.io/mcp/quickstart.md.
- 1
Connect DocStar
Use the DocStar connector if your client has it, or add the remote MCP server https://mcp.docstar.io/mcp. If MCP won't connect, use the REST API with an Auth Key.
- 2
Document the API as drafts
Read the code, group endpoints into modules by task, show the user the plan, then create modules and endpoints. Every JSON body example must include every accepted field.
- 3
Let the user publish
Leave everything as drafts. Publish only when the user asks, module pages before their endpoints. Only published endpoints reach the docs, the MCP server and the CLI.
- 4
Set up and test the MCP server
Give the most-used endpoints (up to 20) their own tools, write the server's skill around the app's main workflows, call one published endpoint through it, then share the tested MCP URL.
Rules
Always.
Confirm before changing anything
For any call that creates, updates, publishes or deletes data, say exactly what will change and wait for the user's OK.
Never invent IDs or secrets
Get org, collection, page and endpoint IDs from list or get calls. Never ask for, paste or invent tokens; use placeholders like <API_KEY> in docs.
Work in small steps
Report after each step: what you created, with its name and ID.
On errors
401: ask the user to sign in and retry. 403: ask them to reconnect DocStar or choose another organisation.
Prefer restore over recreate
Deleted collections and pages can be restored for 30 days. Restore them instead of creating copies.
Humans: give your agent this page.
Or copy the prompt and paste it into Claude Code, Cursor or Codex.