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

> ## Agent Instructions
> Use the exact commands, endpoints, and product terms in these docs. Commands that start with `pctx` mean the Port of Context platform CLI installed from pctx.ai, not the open-source tool of the same name.

# Use these docs with an agent

> Give an agent these docs as Markdown, as one file, through an MCP server, or as an installable skill.

Every page here is also published in forms an agent can read directly. Pick the one that fits how your agent works.

| You want | Use |
| - | - |
| One page | Add `.md` to its URL, or select **Copy page** at the top of the page |
| A list of every page | `https://docs.pctx.ai/llms.txt` |
| The whole site in one file | `https://docs.pctx.ai/llms-full.txt` |
| An agent that searches the docs itself | The docs MCP server at `https://docs.pctx.ai/mcp` |
| An agent that already knows the product | The `pctx` skill |

## Read a page as Markdown

Add `.md` to any page URL to get the page as Markdown, without navigation or styling:

```text theme={null}
https://docs.pctx.ai/quickstart.md
```

**Copy page** puts the same Markdown on your clipboard. The menu beside it opens the page in ChatGPT or Claude.

## Connect the docs MCP server

The docs have their own MCP server. It needs no sign-in, and it lets an agent search these docs and read whole pages.

> [tab] Codex
>
> ```bash Terminal theme={null}
> codex mcp add pctx-docs --url https://docs.pctx.ai/mcp
> ```

> [tab] Claude Code
>
> ```bash Terminal theme={null}
> claude mcp add --transport http --scope user pctx-docs https://docs.pctx.ai/mcp
> ```

> [tab] Other clients
>
> Add a remote HTTP MCP server named `pctx-docs` at `https://docs.pctx.ai/mcp`. The menu beside **Copy page** has shortcuts for Cursor and VS Code.

This server only serves documentation. To give an agent your organization's context and tools, connect the `pctx` gateway as described in the [quickstart](https://docs.pctx.ai/quickstart.md).

## Install the skill

The `pctx` skill is a short set of instructions that tells an agent what Port of Context is, how to set it up, and how to use the gateway well.

```bash Terminal theme={null}
npx skills add https://docs.pctx.ai
```

You can read it first at `https://docs.pctx.ai/skill.md`.


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