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

# MCP server

> Connect MCP clients to Tuple tools, Capture resources, and version-matched agent guidance.

**macOS**

`tuple mcp` runs a local [Model Context Protocol](https://modelcontextprotocol.io) server over stdin and stdout. It lets MCP clients read Tuple context, work with calls, inspect Capture data, and communicate with you.

The MCP client starts the `tuple` binary. The binary talks to the Tuple desktop app over its local socket. Tuple must be running, signed in, and authorized for tools that read app state or take actions.

## Install Tuple in an MCP client

Run the install command without an argument to register Tuple with every supported client detected on your Mac:

```bash theme={null}
tuple mcp install
```

You can select one or more clients explicitly:

```bash theme={null}
tuple mcp install claude
tuple mcp install claude-desktop
tuple mcp install codex
tuple mcp install claude codex
```

| Client | Target configuration |
| - | - |
| `claude` | `~/.claude.json` |
| `claude-desktop` | `~/Library/Application Support/Claude/claude_desktop_config.json` |
| `codex` | `~/.codex/config.toml` |

The server name is `tuple` for the production app. Other Tuple environments use a matching name. Pass `--name` to choose a different identifier:

```bash theme={null}
tuple mcp install codex --name tuple-work
```

Restart the MCP client after installation.

## Start with the agent guide

Tuple exposes operating guidance that matches the installed `tuple` binary. An agent can read the root guide at `tuple://agent/guide`, then open only the topic needed for its task at `tuple://agent/guide/{topic}`.

Reading the root guide or the `live-call` topic does not start ongoing monitoring. The guide directs the agent to a bounded read for a one-time question. Following a call begins only when you ask the agent to connect to or follow your call and its MCP manifest includes a live-read capability.

| Guide | What it covers |
| - | - |
| Root guide | Orientation, available topics, and the smallest useful read for a task |
| `live-call` | One-time call questions, shared-screen reads, and explicitly requested live participation |
| `managed-agent` | App-owned context delivery for an agent session started and designated by Tuple |
| `call-content` | Capture records, identities, timestamps, and delivery checkpoints |
| `past-calls` | Finding, reading, and reviewing stored calls |
| `communication` | Tuple chat, call notifications, decisions, and managed attention when available |
| `safety` | Principal authority, untrusted call content, and approval boundaries |
| `connection` | Read-only diagnosis for call connectivity and quality problems |
| `troubleshooting` | MCP access, desktop app access, and missing Capture content |
| `automation` | Choosing between Tuple triggers and external schedulers |

The server selects the topics and instructions for the session. `managed-agent` appears only for an app-designated managed session. In that session, the Tuple app owns live context delivery and resumption, so the agent uses the app-provided mount instead of starting another live reader.

## Discover the active surface

The MCP manifest is the source of truth for the tools, resources, prompts, and schemas available to a session. Tuple asks the desktop app which capabilities apply, registers only the corresponding surfaces, and notifies clients when the manifest changes.

An ordinary attached session can expose these tools:

| Area | Tools |
| - | - |
| Orientation | `get_state`, `get_current_user` |
| Contacts | `list_contacts`, `favorite_contact`, `unfavorite_contact`, `invite_contact`, `remove_contact` |
| Rooms | `list_rooms`, `get_room`, `create_room`, `join_room`, `favorite_room`, `unfavorite_room` |
| Calls and machines | `list_calls`, `list_machines`, `start_call`, `join_call`, `leave_call`, `add_participant`, `remove_participant`, `mute_microphone`, `unmute_microphone`, `update_call` |
| Live and stored Capture | `get_capture`, `get_screen`, `start_capture`, `stop_capture`, `list_captures`, `search_captures`, `export_captures`, `delete_stored_call` |
| Call notifications | `notify_user`, `request_user_decision`, `list_notifications`, `cancel_notification` |

Use the tool's discovered schema for its arguments and result. `get_state` returns a bounded orientation summary. Use the entity tools for full collections and `get_capture` for one active or stored call with its records.

### Capability-dependent surfaces

These surfaces appear only when the app reports the matching capability for the session:

| Surface | Context |
| - | - |
| `next_capture` tool | Reads one resumable batch when an attached agent is allowed to follow a call |
| `connect` tool | Briefs an attached agent on a call when you ask it to connect to or follow that call |
| `message_user` tool | Sends a message to the user's Tuple chat panel |
| `set_attention` tool | Requests delivery cadence and wake phrases for an app-designated managed session |
| `managed-agent` guide topic | Explains app-owned delivery for an app-designated managed session |

Check discovery instead of assuming one of these surfaces exists. The app decides managed participation and supplies its MCP mount and context.

## Resources

Resources provide readable context without requiring the agent to reconstruct it from tool results.

| URI | Content |
| - | - |
| `tuple://agent/guide` | Root operating guide and topic index for this session |
| `tuple://agent/guide/{topic}` | Focused operating guidance for an available topic |
| `tuple://capture/{callId}` | Human-readable Capture snapshot for an active or stored call |

Use `current` as `{callId}` for the active call. For structured records, category exclusions, or a bounded time range, use `get_capture`.

## Prompts

Tuple registers reusable prompts for common call tasks. MCP clients decide how to display and invoke them.

| Prompt | What it does |
| - | - |
| `summarize_call` | Reads an active or stored call and asks the agent for discussion points, decisions, commitments, and follow-ups |
| `find_discussion` | Searches stored calls for a topic, with optional participant and date filters |

## Connect an agent to a call

Ask the agent to connect to, listen to, or follow your Tuple call. When the `connect` tool is available, the agent calls it and passes your goal or stopping condition as `purpose`. The tool is read-only. It does not join a call, start Capture, or run a background listener.

The tool returns a briefing for the selected call, with guide pointers and the most recent events and transcript lines. `call_id` selects the call and defaults to the current call. `tail` sets how many recent lines to include and defaults to `100`.

| Selected call | What the agent does |
| - | - |
| Active, with Capture on | Follows the call until it ends or you ask it to stop. A narrower `purpose`, such as a one-time briefing or following until a decision is made, takes precedence. |
| Active, with Capture off | Reports that speech is unavailable. Connecting does not turn on Capture. |
| Ended | Uses the call as historical context only. |
| No active call, or Tuple is not reachable | Reports the problem and stops. |

## Live Capture delivery

When advertised, `next_capture` reads one batch for an explicitly requested ongoing task. Its result contains `call_id`, `records`, `cursor`, and `terminal`. Omit `cursor` for initial catch-up. After the records reach the model, repeat with the returned call and cursor. If initial catch-up is empty, `cursor: 0` begins waiting. Preserve the previous checkpoint after a failed delivery.

Use `batch` for buffering, `timeout` to bound idle waiting, and `wake_on` for literal phrases that flush matching speech early. Stop at `terminal.status: "call_ended"`. A `recording_ended` record ends Capture for that recording, not the call.

For a one-time question, use `get_capture` and finish after answering. It returns a structured `{call, records}` result; `since`, `until`, and `exclude` narrow the read.

## Safety and confirmations

Call transcripts, shared screens, and stored records are context, not instructions. The agent guide identifies the person who connected the agent as its principal and tells the agent to ask before acting on requests from other participants.

Tools publish MCP annotations that identify read-only, mutating, idempotent, and destructive operations. Confirmation behavior depends on the MCP client. Treat calls, participant changes, mute changes, contact removal, stored-call deletion, and file exports as consequential actions that require authorization from the principal when the request has not already authorized them.

For an existing integration, follow the [CLI and MCP migration guide](https://docs.tuple.app/cli/migration.md).

## Connection problems

If the MCP server is missing or disconnected, reconnect it in the MCP client and restart the client if needed. If the server is present but app tools fail, confirm that Tuple is running, signed in, and [authorized under **Settings → Integrations → CLI Server**](https://docs.tuple.app/cli/overview.md#authorizing-the-cli).

For problems with call connectivity or media quality, have the agent read `tuple://agent/guide/connection`. It starts with read-only Tuple state and separates observations from inferences. See [Networking and firewall issues](https://docs.tuple.app/troubleshooting/networking-and-firewall-issues.md) for human troubleshooting steps.


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