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

# MCP

> Auto-generated MCP server exposing tRPC procedures as tools for AI clients

Every app exposes an [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) server that external AI tools can connect to.

* All tRPC procedures with `.meta({ description })` are registered as MCP tools
* Tool calls go through the full tRPC middleware chain (JWT auth, RBAC, RLS)
* Uses Streamable HTTP transport with session-based mode
* Already wired up in the framework — no app code needed

AI tools like Claude Desktop, Cursor, and other MCP-compatible clients can connect to the app's MCP server to call procedures as tools. Each tool call is authenticated, scope-checked, and logged.

## Connecting

The MCP server is available at:

```
<app-url>/mcp
```

* **Transport** — Streamable HTTP
* **Authentication** — [OAuth 2.0](/docs/platform-docs/app-framework/headless/oauth) via the app's built-in provider

## Excluding procedures

To exclude a procedure from MCP exposure:

```typescript theme={null}
internalSync: scopedProcedure([])
  .meta({ description: 'Internal data sync', mcp: false })
  .mutation(...)
```

The procedure remains available via the HTTP API and to the built-in AI agent.
