---
title: "Custom MCP servers"
description: "Connect hosted Cadence workspaces to external Streamable HTTP MCP servers with pinned tools and owner approvals."
---

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

# Custom MCP servers

In addition to exposing your workspace *to* external AI clients over [Workspace MCP](/mcp/), a hosted Cadence workspace can connect *out* to third-party remote HTTPS **Streamable HTTP** MCP servers so workspace agents (such as Nova) can use external tools under owner-pinned controls.

> **Note**
>
> Connecting, editing tool permissions, saving guides, and disconnecting Custom MCP servers are workspace-owner actions on the hosted board.

## Connect an external MCP server

1. **Open Custom MCP settings**

   Sign in to your hosted workspace board as an owner, open **Settings → Connections**, and click **+ Connect custom MCP server**.
2. **Name, URL, and visibility**

   Enter a clear server name, its public `https://` Streamable HTTP MCP endpoint URL, and choose visibility: **Shared with company** (workspace members and permitted agents) or **Just me (Personal)** (only your own turns and routines pinned to you).
3. **Choose an authentication mode**

   Leave the default **Auto MCP OAuth 2.1** selected or open **Authentication mode** to configure static credentials:

   - **Auto MCP OAuth 2.1 (default):** performs RFC 9728 resource discovery + RFC 7591 Dynamic Client Registration + PKCE (`S256`). Cadence shows the verified authorization host, issuer, registration mode, and metadata preview before redirecting to the provider (`https://api-v2.agenticos.hk/v2/connections/mcp/oauth/callback`).
   - **Bearer token:** static API key or personal access token, encrypted at rest.
   - **Custom headers:** `Header: Value` pairs (such as `X-API-Key`), encrypted at rest.
   - **OAuth client ID:** pre-registered OAuth client with PKCE (optional client secret and space-separated scopes).
   - **No auth:** public read-only HTTPS MCP servers.
4. **Review pinned tools**

   Once connected, Cadence fetches `initialize.instructions` and `tools/list` and opens the server's inspect drawer so you can review and configure each tool.

## Fail-closed tool pinning and approvals

Connecting or syncing captures a **snapshot revision** (`snapshot_revision`) of the remote server's tool schemas and `initialize.instructions`.

Every newly discovered tool starts **fail-closed in `Ask approval` mode**—even if the external server advertises `readOnlyHint: true`. Owners set each tool's mode explicitly on the **Pinned Tools** tab:

| Tool mode | Runtime behavior |
| --- | --- |
| **Off** | Hidden from agents and blocked from execution. |
| **Ask approval** *(default)* | Never runs automatically. When an agent invokes the tool, Cadence stages a `custom_mcp_effect` approval card showing the server, endpoint host, pinned revision, tool name, and arguments until an owner clicks **Approve** (executes once) or **Deny**. |
| **Auto-read** | Agents can invoke the pinned tool directly during a turn without per-call approval. |

### Drift protection

Click **Sync tools** in the server drawer to re-fetch the remote server's tool catalog and instructions. If any tool definition or `initialize.instructions` changes, Cadence marks the connection **`needs_review`** and fails affected tools closed back to owner review until you inspect and accept the pending changes into a new pinned revision.

## Server instructions, Agent Guide, and policies

- **Pinned server instructions (`initialize.instructions`):** stored read-only (up to 16 KiB) and surfaced to agents inside an untrusted-data wrapper so remote prompt text cannot claim workspace authority.
- **Workspace Agent Guide:** optional owner-reviewed Markdown (up to 32 KiB) where you can document preferred workflows, tool ordering, or defaults. You can also import Markdown from an HTTPS URL (such as `llms.txt` or documentation) to review as a draft before clicking **Save agent guide**.
- **Policies tab:** adjust workspace-shared vs personal visibility, per-agent access, action safety defaults, and incoming trigger permissions.
- **Disconnect:** open **Auth & Access → Disconnect server…** to revoke the connection and immediately remove stored credentials and pinned tools.

## Network guardrails and limits

- **HTTPS and SSRF filtering:** only public `https://` endpoints are permitted. Private, loopback, link-local, internal TLD (`.localhost`, `.local`, `.internal`, etc.), cloud metadata addresses, and AgenticOS/Cadence platform hosts (`*.cadencecloud.app`, `*.agenticos.hk`) are refused.
- **Per-workspace limits:** up to **25** Custom MCP servers per workspace, **200** pinned tools per server, and **256 KiB** per tool response.

Source: https://docs.agenticos.hk/custom-mcp/index.mdx
