# MCP server: connect any AI tool

Truetask's MCP server has about 600 tools. Connect Claude Code, ChatGPT, Claude Desktop, Cursor, Codex, Gemini CLI, OpenCode or Pi with one browser sign-in.

URL: https://docs.truetask.io/agents/mcp

Every Truetask workspace serves a Model Context Protocol (MCP) server, so any AI tool can work in Truetask, as you or as an AI agent you own.
Point an MCP client at it, sign in once in your browser, and your workspace becomes tools that AI tool can call: boards, tasks, notes, forms, automations, the queue, git, time.
Nothing is installed on your computer, and there is no key to paste anywhere.

Step by step for one tool: [Claude Code](https://docs.truetask.io/agents/connect-claude-code), [Cursor](https://docs.truetask.io/agents/connect-cursor), [Codex](https://docs.truetask.io/agents/connect-codex), [Gemini CLI](https://docs.truetask.io/agents/connect-gemini-cli), and [ChatGPT or Claude Desktop](https://docs.truetask.io/agents/connect-chatgpt).
For how a connected tool works a task beside your other coding agents, see [A task board for coding agents](https://docs.truetask.io/agents/coding-agents).

## Connect a tool

Open the **App menu** (the grid button before your avatar), choose **Integrations** under **Extend**, then the **MCP connector** card: "Let Claude, Cursor or another AI tool read and manage your boards. One browser sign-in, no key to paste."
To connect a tool as one of your agents instead of as yourself, open that agent's **MCP connection**; see [Creating an agent](https://docs.truetask.io/agents/creating#mcp-connection).

![The MCP connector card in Truetask Integrations, with the tool picker, the Claude Code command to copy, and the lines that teach your agent the protocol](https://docs.truetask.io/screenshots/mcp-connector.webp)

1. Pick your tool.
2. Use what the card hands you: a command to paste in a terminal, a link that adds the server in one click, or the address to paste into the tool's own settings.
3. The tool opens your browser. Sign in to Truetask if you are not already, and approve the connection.

The card then reads **Waiting for the tool to sign in** and turns to "{tool} is connected" once the server hears from it.

| Tool | What you get | Then |
| --- | --- | --- |
| **Claude** ([Claude Code](https://docs.truetask.io/agents/connect-claude-code)) | **Copy the command** | Paste it in a terminal, sign in in the browser it opens, then start a new session. |
| **[Cursor](https://docs.truetask.io/agents/connect-cursor)** | **Add to Cursor** | Cursor opens and offers to add the server. Sign in in the browser window it opens. |
| **[Codex](https://docs.truetask.io/agents/connect-codex)** | **Copy the command** | Paste it in a terminal, sign in, then restart Codex. |
| **OpenCode** | **Copy the command** | Paste it in a terminal; the second half opens your browser to sign in. Restart OpenCode. |
| **Gemini** ([Gemini CLI](https://docs.truetask.io/agents/connect-gemini-cli)) | **Copy the command** | Paste it in a terminal and sign in. Gemini CLI picks the server up without a restart. |
| **[Claude Desktop](https://docs.truetask.io/agents/connect-chatgpt)** | **Copy the address** | Open **Settings > Connectors > Add custom connector**, paste the address and add it, then sign in. |
| **[ChatGPT](https://docs.truetask.io/agents/connect-chatgpt)** | **Copy the address** | Open **Settings > Connectors > Add**, paste the address, then sign in. |
| **Pi** | **Copy the command** | Paste it in a terminal: the MCP adapter installs first. Sign in, then restart Pi. |
| **LM Studio** | **Copy the address** | Open the MCP settings, add a server, paste the address, then sign in. |
| **Other** | **Copy the address** | Give your tool the address as an HTTP MCP server, with no header. It asks you to sign in the first time it connects. |

For Claude Code, the command looks like this:

```bash
claude mcp add --transport http --scope user truetask https://<your-workspace>/mcp
```

### The sign-in screen

The browser opens **Connect {tool}**: "{tool} is asking to work in this workspace."

| Choice | Options |
| --- | --- |
| **Connect as** | **You**, or **An agent you own**. The tool acts as that account: it reaches whatever that account already reaches, and nothing more. |
| **Access** | **Read only**: it can read the boards that account is on and change nothing. **Read and change**: it can read and change them. |

**Connect** approves, **Cancel** turns it down.
Pick an agent here and everything the tool does is attributed to the agent, with the agent's own board memberships and permissions.

A connection keeps itself signed in: the tool refreshes its access on its own, so you sign in once.
Each connection appears in your keys list, where you can limit it to some boards or revoke it.

## Endpoints

| Transport | URL |
| --- | --- |
| Streamable HTTP (recommended) | `https://<your-workspace>/mcp` |
| Server-Sent Events (older clients) | `https://<your-workspace>/mcp/sse` |

A tool that connects with no credential is told where to sign in, through the standard OAuth discovery documents the workspace serves, and that starts the browser sign-in above.
A script or a CI job that cannot open a browser sends an API key instead, as a bearer token on every request.

```text
Authorization: Bearer tt_...
```

```json
{
  "mcpServers": {
    "truetask": {
      "type": "http",
      "url": "https://<your-workspace>/mcp",
      "headers": { "Authorization": "Bearer <key>" }
    }
  }
}
```

## API keys

Your personal keys live in your profile: open your avatar menu, choose **Profile**, then **Tokens**.
The **MCP connector** card in Integrations reaches the same list with **Manage your keys**, so every key you have, wherever you made it, is in one place.

**Create API token** asks for:

| Field | What it sets |
| --- | --- |
| **Give it a name** | What the key is called in your list. |
| **Permissions** | **Can edit (read & write)** or **Read only**. |
| **Set an expiration date (optional)** | When the key stops working. Without one it never expires. |
| **Boards** | Which boards it may reach. "Leave empty to reach every board you are on." |

A key is shown once, when you create it, and never again.
Each row in the list shows when the key was last used, and **Change boards** edits the boards later.
A key acts as you; for a key that acts as an agent, connect the tool through the agent's **MCP connection**.

> **MCP is never gated**
>
> MCP is bring-your-own-AI and is available on every plan and every license.
> Personal keys and browser sign-ins are too, and on Truetask Cloud they never count toward the plan's workspace API token limit.

### A key limited to some boards

A key limited to a set of boards sees only those boards.
Listing boards returns exactly that set, any other board answers as if it did not exist, and no search, cross-board listing or insight carries anything from the others.
A board you cannot find through such a key may be one it was not given, not one that is gone.
A key whose last board is taken away stays limited and reaches nothing.

The same limit applies to a browser sign-in, from its row in the keys list.

## Which tools a session lists

The server has about 600 tools, and loading all their descriptions costs a client tens of thousands of tokens before it reads a single task.
So a session lists a short set by default and reaches the rest on demand.

| List | Who gets it | What is in it |
| --- | --- | --- |
| `task` | Any connection that names no list | About 60 tools for working a delegated task: the run, questions, the done proposal, checklists, comments, notes, files, memory and git. |
| `board` | Truetask's own chats on your computer | The task list plus about 120 tools for running a board from a chat: tags, lists, fields, forms, views, automations and bulk edits. |
| `connector` | Claude Desktop, ChatGPT and LM Studio | About 40 tools sized for a person working from a chat window: search, tasks, notes, time and handing work to an agent. |
| `all` | Whoever asks for it | Every tool. |

Ask for a list with the `X-Truetask-Tools` header, or with `?tools=` on the address for a tool that cannot set a header:

```text
https://<your-workspace>/mcp?tools=all
```

The addresses the MCP connector hands Claude Desktop, ChatGPT and LM Studio already carry `?tools=connector`.

Every short list carries two more tools that reach the rest.
`tools_find` searches every tool by words, including the ones not listed, and `tools_call` runs any tool by name.
A list only narrows what is shown: what a connection may actually do is still its account and its key's permissions.

## What you get

About 600 tools, grouped by family.
The database and API name for a task is `card`, so the task tools are the `cards_*` family; the rest of this site says task.

| Family | Tools | Covers |
| --- | --- | --- |
| `git_*` | 52 | Pull requests, issues, commits, repository sync, label and user mappings |
| `agent_*` | 49 | Runs, steps, logs, kickoffs, and the whole agent workflow surface |
| `cards_*` | 48 | Tasks: create, update, move, complete, query, bulk operations, files, agent context |
| `client_*` and `clients_*` | 36 | Clients and their companies, sharing a task with a client, scopes and requests; see [Client portal](https://docs.truetask.io/clients/) |
| `notes_*` | 32 | Notes, versions, comments, links, publications, vault import and export |
| `boards_*` | 30 | Boards, members, templates, field layout, folders, record import |
| `helper_*` and `helpers_*` | 33 | Paired computers, their actions, jobs, folders and coding tools |
| `xattr_*` | 21 | Custom fields, values, relations, rollups and formulas |
| `plugins_*` | 19 | Installed plugins, the catalog and their pages |
| `pipelines_*` | 17 | The queue and its tasks |
| `integrations_*` | 15 | Connecting services, memory servers and messaging |
| `automations_*` | 14 | Automations, logs, triggers, export and import |
| `agents_*` | 13 | Your agents and their messaging apps |
| `calendar_*` | 11 | Calendar connections and feeds |
| `memory_*` | 10 | What boards learned; see [Agent memory](https://docs.truetask.io/agents/memory) |

Plus families for forms, webhooks, payments, bookings, files, time, checklists, comments, databases (`db_records_*`), estimates, lists, tags, milestones, folders, groups and saved filters, and singles such as `search`, `fetch`, `workspace_export`, `fetch_url` and `users_me`.

Every tool carries a readable title, such as "Create agent workflow", and says whether it only reads, whether its change can be undone, and whether it reaches outside the workspace.
Clients that group tools by read and write, or ask before a destructive call, use those marks.

### Plugin tools

An enabled [plugin](https://docs.truetask.io/plugins/) adds its own tools to a session as it is turned on, with no reconnect, named `plugin_<id>_<route>` after the plugin and the route each one calls.
A connection sees a plugin's tools only at the level its account holds on that plugin's page, and a call runs on the connection's own credential, so a plugin adds no permission.

The `plugins_*` family manages the plugins themselves.
Any member can list what is installed and the plugin pages they can open; installing from the catalog, turning a plugin on or off, upgrading and removing one are for workspace owners and admins.

### Reading large things

`search` finds tasks, boards, comments, notes, tags and checklists, and `fetch` reads one whole record by the id a search hit carried.

A long note does not have to come back whole.
`notes_outline` returns its headings with no body text, `notes_read_part` reads one part of it, and `notes_edit` changes passages without sending the rest.

### Signing secrets

The workspace's signing secrets, which sign Truetask's calls to a workflow step's launch address and an automation's HTTP request, are tools too.
`signing_secrets_list` returns labels and ids, never the values; `signing_secrets_create`, `signing_secrets_update` and `signing_secrets_delete` manage them.

## Teach your agent the protocol

Connecting gives a tool the tools.
Two more things give it the way of working: how to work a delegated task, ask questions, keep a working note and propose done.

The **MCP connector** card has both, each with a copy button.

**Teach your agent** is one line for your repository's `CLAUDE.md` or `AGENTS.md`, or the agent's system prompt:

```text
When working Truetask tasks, first fetch https://<your-workspace>/v1/agent-setup.md and follow it.
```

The document is served by your workspace and always matches its current protocol, so it never goes stale.
Add `?board=<board_id>` and a valid `Authorization: Bearer` header to append that board's conventions, agent workflows and lists.

**Install the skill** is a command to run where your agent works.
It installs the skill your workspace serves, which teaches the agent to report so its answers draw as components and to work a task here:

```bash
npx skills add https://<your-workspace>
```

Add `-g` to install it for every project on that computer.

See [Agent protocol](https://docs.truetask.io/agents/protocol) for what the document says.

## MCP resources

The same documents are MCP resources, so a connected client can read them without an HTTP fetch.

| Resource | What it returns |
| --- | --- |
| `truetask://agent-setup` | The agent protocol document. |
| `truetask://board/<board_id>/agent-setup` | The same, plus that board's context, workflows and lists. |
| `truetask://agent-patterns` | The orchestration patterns cookbook. |
| `truetask://schema` | The workspace data model. |
| `truetask://board/<board_id>/context` | One board's context. |
| `truetask://card/<card_id>/context` | One task's working context. |

## Response conventions

Single-record tools return `{<resource>: {...}}`, so `cards_get` returns `{card: {...}}`.
List tools return `{items, totalItems, page, perPage, totalPages}` whatever the resource.
Cascade creators extend the envelope: `boards_create` returns `{board, lists}`.

## Filter grammar

Every tool that takes a `filter` speaks the same small language.

- Operators: `=` `!=` `>` `>=` `<` `<=` `~` (contains) `!~` (not contains).
- Strings are double-quoted, booleans are lowercase literals, numbers and dates compare directly: `name="alice"`, `archived=true`, `created>="2026-01-01"`.
- Combine with `&&` and `||`, and parenthesize to group.
- Traverse relations with dots: `card.board="<id>"`.
- Test membership in multi-value fields with `~`: `members~"<user_id>"`, `tags~"<tag_id>"`.

Assigning a task to a person does not give them access to the board.
Check membership with `boards_members_list` and add with `boards_add_member`.

## The ChatGPT plugin directory

To list a connector in OpenAI's plugin directory, OpenAI asks you to prove you own the domain the MCP server answers on.
It hands you a token and reads it back from `https://<your-workspace>/.well-known/openai-apps-challenge`.

> **Self-hosted only**
>
> Put the token in `OPENAI_APPS_CHALLENGE_TOKEN` in `.env` and restart the stack, and the MCP server serves it at that path.
> Until it is set, the path answers 404.
> Connecting ChatGPT as a custom connector does not need it.
> See [The .env reference](https://docs.truetask.io/self-hosted/install#the-env-reference).

## Frequently asked questions

### What is the Truetask MCP server URL?

`https://<your-workspace>/mcp` for Streamable HTTP, and `https://<your-workspace>/mcp/sse` for clients that still need Server-Sent Events.
A tool signs in through your browser the first time it connects; a script sends `Authorization: Bearer tt_...` instead.

### How do I connect Claude Code to Truetask?

Open **Integrations** in the App menu, choose the **MCP connector** card and pick Claude.
Paste the command into a terminal, sign in in the browser it opens, and start a new Claude Code session.
See [Connect Claude Code to Truetask](https://docs.truetask.io/agents/connect-claude-code).

### Can I use ChatGPT or Claude Desktop with Truetask?

Yes.
Pick ChatGPT or Claude Desktop on the **MCP connector** card, copy the address, and add it as a custom connector in the app's settings.
It signs you in through your browser, so no key is involved.
See [Connect ChatGPT or Claude Desktop](https://docs.truetask.io/agents/connect-chatgpt).

### How many tools does the Truetask MCP server expose?

About 600.
A session lists a short set by default, about 60 for working a task, and `tools_find` and `tools_call` reach the rest.
Send `X-Truetask-Tools: all`, or add `?tools=all` to the address, to list every tool.

### Can an AI tool act as a Truetask agent instead of as me?

Yes.
On the sign-in screen, choose **An agent you own** under **Connect as** and pick the agent.
Everything the tool does is then attributed to the agent, with the agent's own boards and permissions.

### Can I limit what a Truetask key reaches?

Yes.
Give a key a set of **Boards** when you create it, or use **Change boards** later, and it sees only those boards.
Choose **Read only** to let it change nothing.

## Related

- [A task board for coding agents](https://docs.truetask.io/agents/coding-agents)
- [Agent protocol](https://docs.truetask.io/agents/protocol)
- [Creating an agent](https://docs.truetask.io/agents/creating)
- [Agent memory](https://docs.truetask.io/agents/memory)
- [REST API](https://docs.truetask.io/integrations/api)
