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

# Connect through MCP

> Use Yappr's remote MCP server with OAuth account authorization.

Yappr's MCP server is hosted separately from the REST API:

```
https://mcp.goyappr.com/mcp
```

Use **OAuth** account authorization. A person signs in to Yappr, chooses a
workspace where they are an owner or admin, and approves permissions. Clients
must use authorization code flow with **PKCE S256**. They discover the
authorization server from the protected-resource metadata advertised in an
unauthorized request's `WWW-Authenticate` header.

## OAuth permissions

| Scope | Purpose |
| - | - |
| `yappr.read` | Read setup and call statistics. Always included in a grant. |
| `yappr.build` | Create agents and edit drafts. |
| `yappr.manage` | Manage live customer operations. Must be requested by the client and explicitly approved; older connections do not gain this scope. |
| `offline_access` | Request continued access using a refresh token. |

Call content is a separate consent choice. `yappr.manage` alone does not grant
access to transcripts or recordings. A connection may also be limited to
selected agents; both scope and agent restrictions apply on every tool call.

Authorization codes can be used once. Refresh tokens rotate; clients must
replace the stored refresh token with the one returned by each refresh.
Revoked or expired connections require another account authorization.

## MCP requests

The server supports Streamable HTTP. After authorization, initialize the MCP
session and use `tools/list` to discover the individually described operations.
The available tools depend on the connection's permissions.

```bash theme={null}
curl https://mcp.goyappr.com/mcp \
  --header 'Authorization: Bearer YOUR_OAUTH_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json, text/event-stream' \
  --data '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
```

Each operation has its own input schema, description and annotations. Pass
only the arguments advertised by that tool. Consequential operations require
an explicit confirmation after the user reviews the action. There is no
catch-all HTTP proxy tool.

## Error handling

| Response | Meaning |
| - | - |
| `401` with `WWW-Authenticate` | Authorization is required, or the token is no longer valid. Follow protected-resource discovery and reconnect. |
| `403` | The origin, workspace or connection cannot perform the requested operation. |
| `429` with `Retry-After` | Wait for the specified interval before retrying. |
| `503` | The connector is temporarily unavailable. Retry later. |
| MCP `isError: true` | The tool refused or could not complete the operation. Read its error and follow any recovery instructions. |

The REST API remains available at `https://api.goyappr.com` for code that uses
API keys. [Connect an AI app](https://docs.goyappr.com/connect-ai.md) explains the customer sign-in experience.


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