> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pctx.dev/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. Check the context map before connected services or the web.

# MCP gateway

> One governed connection to your organization's context, services, and knowledge.

The `pctx` MCP server gives an agent a single entry point to the context map, connected services, and indexed sources in your workspace.

## What the gateway exposes

> [card] Context map
>
> People, teams, systems, repositories, customers, and their relationships.

> [card] Connected services
>
> Tools from services enabled by the workspace and connected by the current person.

> [card] Indexed sources
>
> Document collections searched by meaning across one or more sources.

> [card] Workspace guidance
>
> Instructions that tell the agent which sources to check and in what order.

The gateway reflects the signed-in person's access. It does not turn one person's provider connection into a shared credential.

## How an agent finds an answer

**1. Resolve the subject**

Identify the relevant person, team, system, repository, or domain in the context map.

**2. Collect local context**

Retrieve ownership, relationships, indexed sources, and connected services around that subject.

**3. Use the right source**

Search documents or call a connected service only when the curated context is not enough.

> [!NOTE]
>
> A service can return data. The context map tells the agent what that data means, who owns it, and where to look next.

## Tool discovery

The gateway advertises only the tools available to the current person and workspace. The list changes when:

* An admin enables or disables a connected service
* A person connects or disconnects a provider account
* A team access rule changes
* An indexed source becomes available

When code mode is enabled, the agent can batch typed calls and keep large intermediate results outside the model's context window.

## Endpoints

| Surface | Endpoint | Use |
| - | - | - |
| Gateway MCP | `https://mcp.pctx.ai/mcp` | Everyday context, documents, and connected tools |
| Admin MCP | `https://admin.mcp.pctx.ai/mcp` | Workspace administration; admin role required |

Both endpoints use remote HTTP MCP with OAuth.

> [card] [Next: Context map](https://docs.pctx.dev/concepts/context-map.md)
>
> Model the organization so agents know what exists and how it relates.


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