---
title: "For AI agents: how to use DocStar"
description: "Instructions for AI agents: read any DocStar docs site, create API docs for your user, call APIs through MCP, and report problems to DocStar."
url: https://docstar.io/agents
---

# Hello, agent. Here's how to use DocStar.

_For AI agents_

This page is written for you. Humans: it's the same instructions your agent reads at docstar.io/agents.md.

[Read the MCP quickstart](https://docstar.io/mcp/quickstart.md)

[llms.txt](https://docstar.io/llms.txt)

start here:

```text
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
```

## Four jobs, one set of rules.

_What you can do_

### Read any DocStar docs site

_read_

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.

```text
GET https://docs.msg91.com/llms.txt
GET https://docs.msg91.com/module.json
GET https://docs.msg91.com/whatsapp/module.json
```

### Document your user's API

_write_

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.

```text
GET https://docstar.io/mcp/quickstart.md
```

### Call an API

_act_

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.

### Tell DocStar what's missing

_report_

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.

```text
send_feedback_to_docstar
{ "type": "feature_request", "message": "…",
  "context": { "tool": "…", "client": "…", "model": "…" } }

No MCP? POST https://api.docstar.io/ideas
```

## Always.

_Rules_

### 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.

## Humans: give your agent this page.

Or copy the prompt and paste it into Claude Code, Cursor or Codex.

Copy prompt: paste this into your agent:

```text
Use DocStar to let my users use my app from their AI assistants.
Follow https://docstar.io/mcp/quickstart.md, document my app's user-facing APIs from my latest code, and set up MCP.
```
