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

# Admin MCP

> Connect pctx-admin so an agent can inspect and change your workspace.

`pctx-admin` is a second MCP server, separate from the everyday `pctx` gateway. It is available to workspace admins only.

## Connect it

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

> [tab] Claude Code
>
> ```bash Terminal theme={null}
> claude mcp add --transport http --scope user pctx-admin \
>   https://admin.mcp.pctx.ai/mcp
> ```
>
> Restart Claude Code, open `/mcp`, and authenticate **pctx-admin**.

> [tab] Other clients
>
> Create a remote HTTP MCP connection named `pctx-admin` at `https://admin.mcp.pctx.ai/mcp`, then complete OAuth sign-in.

## Ask it where your tokens go

The admin MCP can report on usage as well as change settings. Start with a question that only reads:

```text Prompt wrap theme={null}
Using pctx-admin, how many tokens did code mode keep out of our agents' context windows in the last 14 days, compared with calling the same tools directly? Then list our busiest servers that are not in code mode yet. Do not change anything.
```

Token counts for gateway traffic are estimated from the size of each response. They are not billing figures, because the model that reads them is yours.

## Ask before it changes anything

Admin tools change the workspace for everyone. Ask the agent to show its proposed changes before it enables services, changes policies, or deletes anything.


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