# MCP & connected apps

Connect Claude, Claude Code, ChatGPT, Codex or another MCP client to termynl. Everything you can do in the app has an MCP tool, and the client works as you, with your permissions.

## Connect your AI client

Every client below connects to this address:

```
https://mcp.termynl.com/mcp
```

Connected earlier at `https://api.termynl.com/mcp`? That address has moved and no longer answers MCP requests. Add termynl again at the address above. If you added termynl as a connector on claude.ai, edit or re-add it there; Claude Code shows that connector too, and `claude mcp remove` can't remove it. If you added it in Claude Code itself, run these commands from the project where you added it (and again in each project you set up separately): check its scope with `claude mcp get termynl`, remove it with `claude mcp remove termynl --scope <that scope>`, and add it again with the same `--scope`, so every project keeps the connection. Then run `/mcp` in Claude Code, choose **termynl**, and sign in again.

There is no key to copy. You sign in to termynl in your browser and approve the client on a consent screen. The steps below add termynl by hand.

### Claude (claude.ai and the Claude desktop app)

On Pro and Max plans:

1.  Open [Customize, then Connectors](https://claude.ai/customize/connectors).
2.  Select **+ Add**, then **Add custom connector**.
3.  Name it `termynl` and paste the address above. Select **Continue**.
4.  Keep the settings Claude detected, then select **Add**.
5.  Connect it, sign in to termynl, and approve it on the consent screen.

On Team and Enterprise plans, an owner adds it once at [Organization settings, then Connectors](https://claude.ai/admin-settings/connectors): **Add**, then **Custom**, then **Web**, with the same name and address. Each person then connects it for themselves. On the Free plan, Claude allows one custom connector.

### Claude Code

Run this in a terminal:

```
claude mcp add --transport http termynl https://mcp.termynl.com/mcp
```

Then, inside Claude Code, run `/mcp`, choose **termynl**, and sign in. A connector you added on claude.ai also appears in Claude Code when you use the same account.

### ChatGPT

Full MCP support on ChatGPT on the web needs a Business or Enterprise/Edu plan; the steps below are for those plans. Pro users can connect custom MCP servers with read and fetch permissions only.

-   **Business:** only an admin or owner can create the plugin and publish it to the workspace. If you are a member, ask an admin to follow the steps below and publish it; then install the published plugin, connect it, sign in to termynl and approve it on the consent screen (steps 7 and 8).
-   **Enterprise and Edu:** admins and owners can create it, and an admin can give selected members permission to create their own.

1.  Open [Plugins](https://chatgpt.com/plugins) in ChatGPT on the web.
2.  Select the plus button, then **Add custom MCP server**.
3.  Name it `termynl` and add a short description.
4.  Under **Connection**, paste the address above, including `/mcp`.
5.  Under authentication, choose **OAuth**. Keep the settings ChatGPT detected.
6.  Review the warning, select **I understand and want to continue**, then **Create as a plugin**.
7.  Install the plugin, connect it, sign in to termynl, and approve it on the consent screen.
8.  In a new conversation, type `@` and choose **termynl**.

### Codex

From the Codex command line:

```
codex mcp add termynl --url https://mcp.termynl.com/mcp
codex mcp login termynl
```

Your browser opens for sign-in. Run `codex mcp list` to check it, or `/mcp` inside Codex.

In the Codex IDE extension or the ChatGPT desktop app, which share Codex's settings:

1.  Open **Settings** (the gear menu in the IDE extension), then **MCP servers**.
2.  Select **Add server**.
3.  Name it `termynl`, choose **Streamable HTTP**, and paste the address above.
4.  Save, restart when asked, then select **Authenticate** next to termynl.

### Other MCP clients

Add `https://mcp.termynl.com/mcp` as a remote server over Streamable HTTP. The client signs in with OAuth 2.1, using a Client ID Metadata Document or dynamic registration, as a public client with PKCE.

### After you connect

Approve the app on the consent screen; nothing is granted until you do. To disconnect it later, go to **Account → Connected apps**.

## What Tyn and connected apps can do

Claude, Claude Code, ChatGPT, Codex and other connected apps over MCP can do what you can do in termynl, as you, with your permissions and never more. Tyn, the in-app assistant, works the same way with a smaller set of tools: for example it doesn't share items and never publishes a doc (both below). The main areas:

-   **Items:** create, read, update, move and convert tasks, issues and projects; create and edit docs and daily notes; create from a template; comment; link and unlink items; follow and unfollow; read an item's history and restore an earlier version.
-   **Properties:** list, create, change and delete shared properties, and check how many items use one.
-   **Views:** list, create, change, delete and run saved views.
-   **Files:** list, attach, delete and get a 5-minute download link for attachments.
-   **Inbox:** list your notifications and mark them read.
-   **Teams and people:** list teams and people, join or leave a team, and (admins) manage members, roles, invites and guest sharing.
-   **You:** your profile, preferences, sign-in methods, sessions, connected apps and storage choice.
-   **Workspace (admins):** modules, workspace name, join policy, domains, directory and SCIM, email settings, storage, exports, backups (see [Backups](/admin/backups/)) and Tyn's models.
-   **Billing:** read-only. Tyn and connected apps can show your plan, seats, renewal date, invoices, and the card's brand and last 4 digits.

**Statuses over MCP.** `list_statuses` shows a team's sets with each status's category, colour, position, default and how many items use it. `create_status`, `update_status` (rename, recolour, change category, make default), `reorder_statuses` and `delete_status` (with `moveTo` when items use it) are for team admins and workspace admins, like the app. The `rev` each one takes is optional; leave it out and the tool reads the current one. Set an item's status by what it means (backlog, to do, in progress, done, cancelled) or by one of its team's status names; `get_item` and `find_items` also return `statusCategory`. A name that isn't in the team's set is refused with the list of names it does have. Tyn can use the same tools as you, but deleting or renaming a status needs a direct request ("rename the Reviewing status to In Review"), and after Tyn has read text other people wrote, those changes wait on an **Apply** card.

**Safety rules.**

-   Tyn deletes, restores, disconnects apps, signs out sessions or changes seats only when you ask for that in your own message, naming the item.
-   Tyn never adds a card or pays. Billing pages open for you to use yourself.
-   Seat changes and account deletion end with a link or a code that you confirm yourself.

-   **OAuth 2.1 sign-in.** When a client connects, you approve it on a consent screen. Nothing is granted until you confirm.
-   **Scopes:** `termynl:read`, `termynl:write`, and `termynl:admin`. An app acts as you, within the scopes you granted.
-   **Admin actions.** When a workspace admin or owner approves an app, the consent screen offers **Allow admin actions**, on by default, even if the app asked only for read and write (claude.ai does). Leave it on and the app can use the admin tools (members, roles, the audit log, modules, workspace settings) as you; untick it to keep the app to read and write. Members never see it. Admin actions still need your role when each one runs: if you stop being an admin, they are refused, whatever the app was granted.
-   **Browser confirm for people and sign-in changes.** When a connected app calls one of these tools, nothing changes yet: the app gets a link, and you confirm in termynl with one click (the page says exactly what will happen and shows *you via the app*; Enter confirms, Esc cancels). The link works once, for you only, for 10 minutes, and stops working if you disconnect the app or it loses admin access. The tools are `invite_member`, `set_member_role`, `remove_member`, `deactivate_member`, `reactivate_member`, `set_guest_spaces`, `disable_scim`, `rotate_scim_token` (the new token shows on the confirm page, not in the app), `add_domain`, `verify_domain`, `remove_domain`, `set_join_policy`, `set_group_gate`, `disconnect_directory` and `set_account_transfer`, plus `share_project` and `share_item` when they would invite an email that isn't in the workspace yet (sharing with an existing member works directly). `transfer_ownership` and `connect_directory` already finish in the browser. The audit log records the app that asked and the person who confirmed. In the termynl app and with Tyn these tools work as before.
-   **Revoke** any app from **Account → Connected apps**. It loses access on its next request.
-   **Attribution.** Changes made over MCP read, for example, "Ada via Claude Code" in activity. Apps that registered themselves are marked "unverified app". Files uploaded with `upload_attachment`, deleted with `delete_attachment` and notes imported with `import_notes` or an import job carry the app's name too, even when the import finishes after the call returned.
-   **Views over MCP.** `run_view` runs a saved or ad-hoc view with the same engine as the app. Timeline runs return each item's start and end dates; table runs return the view's columns.
-   **Issues over MCP.** `create_issue`, `update_item` and `get_item` cover reporters, affected areas and linked tasks (only the ones you can see). `convert_item` turns a task into an issue or back, keeping its key.
-   **Sharing over MCP** is for team and workspace admins calling the API directly: `share_item` and `share_project` invite an email that isn't in the workspace yet; neither tool is offered to a guest or to Tyn, the in-app assistant.
-   **Docs over MCP.** `create_note` takes exactly one of `space` (an id), `team` (a key or id) or `project` (an id: the doc lands in the project's space, filed under the project). `move_doc` takes `{ doc, to, project?, dryRun? }`: `doc` is the doc's id, `to` is `general`, `private` or a team key, `project` optionally files it under a project there, and `dryRun: true` moves nothing and returns how many people would gain or lose access. The older `team`, `general` and `personal` arguments of `move_doc` are gone; use `to`. The REST route `POST /v1/docs/:id/move` keeps its body, `{ "to": { "team": "<key or id>" } | { "general": true } | { "personal": true }, "project": "<id>" }` (`project` optional).
-   **Markdown over MCP.** The note and item tools accept `format: "markdown"`: `create_note`, `update_note` and `update_item` take Markdown, and `get_item` can return a body as Markdown. The server checks every body and refuses an invalid one with a reason, so a bad body is never saved.
-   **Links and embeds in Markdown.** `[[Title]]` links and `![[Title]]` embeds written over MCP resolve only to docs you can read; anything else stays text. Uploaded images, files and videos of the same note keep their place when a body goes out as Markdown and comes back.
-   **Tables, types and comments over MCP.** `create_table` makes a New table (row notes, typed columns, a view and the embed). `change_property_type` converts a property's type with the same safe check as the app. `create_comment` takes an optional `quote` (text that appears exactly once in the body, up to 500 characters) to comment on a passage, and `resolve_comment` resolves or reopens a thread. When `get_item` returns a body as Markdown, inline databases and live answers carry a snapshot computed for you, from the rows you can open.
-   **Publishing over MCP.** A connected app can publish one of your docs and gets the link back, so only ask it to when you mean it: anyone with the link can read the doc (the tool descriptions say so). It can only do what you can in the app, and you can stop any link from the doc's Share menu or Settings → Public links. Tyn can stop a link when you ask, but never publishes. See [Publish a doc to the web](/work/publish-to-the-web/).

| Tool | Does |
| --- | --- |
| `list_pull_requests` | Pull requests in repositories you can see, as on the board: repository, number, title, state, author, agent and confidence (when labels are on), checks, review and linked item keys. Filters: `repo`, `team`, `project`, `agent`, `checks`, `review`, `item`, `mine`, `state`; up to 50 rows. Titles come back marked as GitHub text. Not offered to guests. |
| `get_pull_request` | One pull request by address or `owner/repo#123`: its evidence, links and checks. With `body: true` it reads the description live from GitHub (at most 8,000 characters, marked as GitHub text, not stored) and records `github.read` in the audit log. |
| `get_development` | The Development card for a task or issue: pull requests, branches and commits. |
| `link_pull_request` · `unlink_pull_request` | Link or unlink a pull request on an item, as the card does. `how` is `working` or `reference`. |
| `start_branch` | Returns a branch name and GitHub compare address for an item and records that the branch was issued to you or your app, which the board uses as evidence. It creates nothing in GitHub. |
| `get_github_rules` · `set_github_rules` | Read or set a team's or project's status moves. Setting needs a team admin (a project lead for its own project). |
| `connect_github` | Connecting GitHub needs an admin in the browser. Returns where to do it; changes nothing. |
| `share_project` | Share a project with a guest, or an email not yet in the workspace (a pending guest invite scoped to that project). Team admins or workspace admins. |
| `unshare_project` | Remove one guest or pending invite, or stop sharing entirely. The project returns to its team once nobody's left. Team admins or workspace admins. |
| `share_item` | Share one task or issue the same way; the guest sees only that item, never its project or team. Team admins or workspace admins. |
| `unshare_item` | Remove one guest or pending invite from a task or issue, or stop sharing entirely; it returns under its parent task or project (otherwise its team). Team admins or workspace admins. |
| `list_shares` | Who has a task, issue or project beyond its team: its guests and pending guest invites. Team admins or workspace admins, and any member when `membersShareGuests` is on. `can` says whether you may invite new guests and manage (revoke invites / stop sharing). |
| `link_team_group` | Link a team to one SCIM group from your identity provider. Workspace admins only. |
| `unlink_team_group` | Unlink a team's SCIM group: members it added leave the team; hand-added people stay. Workspace admins only. |
| `invite_member` | Invite someone by email, with `teams` to pick which teams they join on acceptance. |
| `get_security_policy` | Get the workspace's two-factor policy: `required`, `allowWebauthn`, `allowTotp`, `allowBackupCodes`, `trustDays`, `graceDays`, `requiredSince`. Workspace admins only; read only (changes are made in Settings → Workspace → Security). |
| `get_join_policy` | Get the workspace's join policy: `autoAddSeats`, `domainJoin`, `membersShareGuests` (whether plain members may share tasks, issues and projects they can edit with existing guests, never invite), and `domains`. Workspace admins only. |
| `set_join_policy` | Set the join policy, including `membersShareGuests` (default off; invites stay with team admins). `scimAutoSeats`: SCIM provisioning buys a seat when none is free (within the monthly limit) and a SCIM deactivation drops one; turning it on needs an owner in the browser. Workspace admins only. |
| `remove_member` · `deactivate_member` | `seat`: `keep` (default) keeps the paid seat for someone else; `drop` lowers paid seats by one (never below what active members use; credited on the next invoice). |
| `set_prefs` | Includes `emailPaused` (pauses every unlocked notification email), `notifyEmail` (per type) and `digest` (`off` / `daily`: unlocked item notifications batched into one daily email). |
| `get_my_notifications` | Which notifications email you: per type, whether it's on, whether your workspace admin locked it, and the workspace default; the locks your teams set; whether you paused email and whether you get a daily digest. |
| `get_notify_policy` | The workspace's notification email policy: per type the default (email on/off) and whether it's locked for everyone. Workspace admins only. |
| `set_notify_policy` | Set notification email defaults; `locked` = members can't change it. Sign-in, invite and security email is always sent. Workspace admins only; audited. |
| `get_team_notify_policy` | A team's notification email defaults for its items (assigned, activity, mentioned), the types the workspace locked, and whether you may change them. |
| `set_team_notify_policy` | Set a team's notification email defaults. A type the workspace locked can't be set here. Team admins or workspace admins; audited. |
| `get_mail_status` | Email delivery for this workspace: the provider, the sender, whether delivery webhooks are on, and the last 50 messages it sent with their status. Never shows content. Workspace admins only. |
| `send_test_email` | Send a test message to your own primary email (5 per 10 minutes). It never sends to any other address. Workspace admins only. |
| `get_account_deletions` | Members whose account deletion is scheduled, when it runs, who receives their items, and `ownDriveFiles` (files in their own Google Drive / OneDrive that stop opening once they're deleted). Workspace admins only. |
| `set_account_transfer` | Choose who receives a leaving member's items (an active member, not a guest); `transferTo: null` = the workspace owner. Workspace admins only; audited. |
| `export_workspace` | Start an export. Members' personal spaces stay out unless an owner sets `includePersonal: true`; an admin who isn't an owner exports only the spaces they can read. The person who started it downloads the file in the browser within 7 days. Workspace admins only. |
| `list_audit_log` | Read the workspace's audit log, newest first. Filters: `source` (`membership` or `apps`), `action` (a name or its start, like `member.`), `actor`, `target` (account id or email), `from` / `to`, `limit` (up to 100). Pass `next` back as `cursor` for older entries. Workspace admins only; not for Tyn. |
| `list_audit_streams` | List the workspace's audit log streaming destinations: kind, name, status, where it sends (never credentials), waiting, refused, dropped and delivered counts, the last delivery and the last error. Workspace admins only. |
| `send_test_audit_event` | Send one test event to a destination by `id`, active or paused, and say whether it was accepted (5 per 10 minutes). Workspace admins only; audited. Adding or changing destinations is browser-only. |
| `get_workspace_exports` | The workspace's last 5 exports: status, size and expiry. |
| `get_workspace_deletion` | Whether the workspace is scheduled for deletion, and when. Workspace admins only. |
| `cancel_workspace_deletion` | Cancel a scheduled workspace deletion. Nothing is deleted and the subscription renews again. Owners only. |
| `request_workspace_deletion` | Deleting the workspace needs an owner in the browser (recent sign-in and a typed confirmation). Returns where to do it; changes nothing. |
| `set_seats` | Changing paid seats spends or refunds money, so an owner does it in the browser. Returns where to do it; changes nothing. |

<div class="shot" data-screenshot="connected-apps">screenshot: consent screen and Connected apps (coming soon)</div>

## Images

Connected apps can make and place images with `create_image`, `edit_image` and `insert_image`, under the same checks and limits as the app, on your AI budget. See [Images](/ai/images/).
