> ## Documentation Index
> Fetch the complete documentation index at: https://docs.widgetic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Docs for agents

> Let your coding agent search and read these docs, and report a page that is wrong

A coding agent does not have to guess what the Widgetic API does. This site serves itself in the forms an agent reads best: every page as Markdown, an index of all pages, a skill, and an MCP server of its own.

> [!NOTE]
>
> This page is about reading the documentation. To build widgets from an assistant, connect the [Widgetic MCP server](https://docs.widgetic.com/docs/agents/connect.md) instead: it is a different server, at `https://mcp.widgetic.com`.

## What the site serves

| Address | What an agent gets |
| - | - |
| `https://docs.widgetic.com/llms.txt` | Every page on one line: its title, its address and what it covers |
| `https://docs.widgetic.com/llms-full.txt` | The text of every page in one file |
| A page address with `.md` added, such as `https://docs.widgetic.com/docs/quickstart.md` | That page as Markdown |
| `https://docs.widgetic.com/openapi/widgetic-api-public.json` | The OpenAPI description of the public API |
| `https://docs.widgetic.com/skill.md` | The Widgetic skill: how to build, publish and embed with the MCP server, the command line and the REST API |
| `https://docs.widgetic.com/mcp` | The MCP server of this documentation, described below |

## Install the skill

The skill tells an agent which way in to use (the MCP server, the command line or the REST API), what each one needs to sign in, and the calls that matter. Install it for your agent:

```bash theme={"theme":"css-variables"}
npx skills add https://docs.widgetic.com
```

Choose your agent and where to install it when asked. The skill is named `widgetic`.

## Connect an agent to the docs

The MCP server of the documentation is at `https://docs.widgetic.com/mcp`. It needs no sign-in and no key, because the documentation is public. Its three tools are:

| Tool | What it does |
| - | - |
| `search_widgetic_developers` | Searches every page and returns snippets with titles and links |
| `query_docs_filesystem_widgetic_developers` | Reads the pages and the OpenAPI description as a read-only file system, with commands such as `rg`, `tree`, `head` and `cat` |
| `submit_feedback` | Reports a page that is wrong, out of date, confusing or incomplete (see [Report a page that is wrong](#report-a-page-that-is-wrong)) |

> [tab] Claude Code
>
> ```bash theme={"theme":"css-variables"}
> claude mcp add --transport http widgetic-docs https://docs.widgetic.com/mcp
> ```

> [tab] Cursor
>
> Add the server to `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` for every project:
>
> ```json theme={"theme":"css-variables"}
> {
>   "mcpServers": {
>     "widgetic-docs": {
>       "url": "https://docs.widgetic.com/mcp"
>     }
>   }
> }
> ```

> [tab] VS Code
>
> Add the server to `.vscode/mcp.json`:
>
> ```json theme={"theme":"css-variables"}
> {
>   "servers": {
>     "widgetic-docs": {
>       "type": "http",
>       "url": "https://docs.widgetic.com/mcp"
>     }
>   }
> }
> ```

> [tab] Codex
>
> Add the server to `~/.codex/config.toml`:
>
> ```toml theme={"theme":"css-variables"}
> [mcp_servers.widgetic_docs]
> url = "https://docs.widgetic.com/mcp"
> ```

The menu at the top of every page can also copy the address of the server, or connect Cursor or VS Code to it in one step. Give the server a name of its own, as above (`widgetic-docs`), so it is not confused with the [Widgetic MCP server](https://docs.widgetic.com/docs/agents/connect.md) that builds widgets.

## Report a page that is wrong

An agent that finds a page that is wrong, out of date, confusing or incomplete can say so with `submit_feedback`. The tool takes two things:

| Argument | What to send |
| - | - |
| `path` | The path of the page, such as `/docs/agents/tools`, or its full address. It has to be a page of this site: for any other path the tool answers with an error and nothing is recorded |
| `feedback` | What is wrong, out of date or missing, in a sentence or two |

The feedback is recorded against that page, where the people who write these documents can read it. Nobody answers it, and it is only about the documentation: for a question about your account, or a call that fails for a reason these pages do not explain, write to [the support team](https://docs.widgetic.com/docs/introduction.md#need-help). Keep keys, tokens and personal data out of `feedback`.

> [!TIP]
>
> Ask your agent to report a page when what it says does not match what the API does. A short, exact report ("the page says X, the API answers Y when I call Z") is the one that gets fixed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.