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

# Custom MCP Servers

> Add your own remote MCP server so the Canvas Agent can gather context and take action without a user, using only the tools you allow.

Add your own remote [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server so the Canvas Agent can gather context and take action in the systems you already run.
Examples are a runbook store, a deploy tool, or a search service for your internal logs.
You run or buy the server. Honeycomb does not provide it.

A custom MCP server works like a [team connector](https://docs.honeycomb.io/investigate/canvas/team-connectors.md):

* A team owner connects the server once, with a team credential.
* The Canvas Agent uses that credential in every run with no user present.
* The Canvas Agent runs only the tools that the owner allows.

If the owner turns on the **Members** switch, team members can also use the server in their own Canvas chats.
To learn more, visit [Using custom MCP servers in Canvas chats](#using-custom-mcp-servers-in-canvas-chats).

> [!WARNING]
>
> The Canvas Agent has all the access that the team credential has on your server.
> Use a dedicated service account with the narrowest access that the Canvas Agent needs.

## Requirements for your server

Honeycomb runs a test connection when an owner saves the server.
If the server does not meet a requirement, Honeycomb shows the first requirement that failed.

A custom MCP server must:

* Use MCP over Streamable HTTP, with the `tools` capability.
* Have a public `https` URL.
* Require authentication: an API key or another static credential, or [OAuth](#oauth).
* Stay within the [tool limits](#tools).

Honeycomb does not support servers with no authentication.

### Connection

* **Transport:** The server uses MCP over Streamable HTTP.
  It offers the `tools` capability.
* **Network:** The server has a public `https` URL on port 443.
  The host resolves only to public IP addresses.
  Honeycomb cannot connect to a server on a private network, in a VPC, or behind a VPN.
* **URL:** The URL has at most 512 characters.
  It has no username, password, or `#` fragment.
  Honeycomb does not follow redirects, so enter the final URL.
* **Response time:** The server answers the test connection within 30 seconds.

### Tools

* **Tool count:** The server has at most 80 tools.
  The `tools/list` responses together are at most 8 MiB.
* **Tool names:** Honeycomb replaces each character other than `a-z`, `A-Z`, `0-9`, `_`, and `-` with `_`.
* **Tool descriptions:** Honeycomb cuts a description at 4 KiB.
* **Tool calls:** Each call finishes in 30 seconds.
  A result larger than 100 KB goes back to the agent as an error.

Honeycomb drops a tool when one of these is true:

* The name is longer than 100 characters.
* The name matches another tool's name after the character replacement.
* The input and output schemas together are larger than 64 KiB.

The Canvas Agent uses tools only.
Prompts, resources, sampling, and elicitation do not pass through Honeycomb.
Honeycomb does not give the server's `instructions` text to the agent.

## Adding a custom MCP server

1. Navigate to **Team settings** > **Integrations**.

2. In **Team connectors**, use the switch above the table to select **Custom MCP**.

3. Select **Add MCP server**.

4. Enter the details of the server:

   | Field | What to enter |
   | - | - |
   | **Server URL** | The `https` URL of the MCP endpoint, for example `https://mcp.example.com`. |
   | **Name** | A name for the server. |
   | **Authentication** | How Honeycomb signs in to the server. To learn more, visit [Authentication](#authentication). |
   | **Description** (optional) | Text that tells the Canvas Agent when to use the server. |

5. Complete the authentication step.

6. [Review the tools](#reviewing-tools-and-setting-permissions) that the server offers, then save.

Honeycomb denies every tool that an owner has not approved. Agents cannot use a server that has no approved tools.

## Authentication

Honeycomb encrypts the credential and sends it on every call to the server.
The agent and the model never see it.

### API key and other static credentials

Choose one of these methods:

| Method | What Honeycomb sends |
| - | - |
| **Bearer token** | The token that you paste, as `Authorization: Bearer <token>`. Paste only the token. |
| **Custom header** | A header that you name, for example `X-API-Key`, with the value that you enter. |
| **Basic authentication** | A username and password, encoded in the `Authorization` header. |

* The value has at most 8,000 bytes.
* Honeycomb rejects headers that MCP or HTTP already use, such as `Host`, `Cookie`, `Content-Type`, and `Mcp-Session-Id`.
* Runs with no user present and members share the credential.
  Your server sees one identity, so use a service account.
* The credential belongs to the Team.
  It stays when the person who entered it leaves the Team.

### OAuth

For **OAuth**, a team owner signs in to your server when they add it.
Honeycomb stores that account as the team credential, and the Canvas Agent uses it when no user is present.
Use a service account with narrow access.
Members who use the server in Canvas chats sign in with their own accounts.

Honeycomb connects as a public OAuth client.
A [Client ID Metadata Document (CIMD)](https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/) identifies Honeycomb, so you do not create a client ID or a client secret.

Honeycomb finds your authorization server with the MCP authorization flow:

1. A request without credentials gets a `401` response with a `WWW-Authenticate: Bearer` header.
2. Your server publishes protected resource metadata ([RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728)).
   The `resource_metadata` URL in the header, or a `/.well-known/oauth-protected-resource` URL, points to it.
3. That metadata names an authorization server.
   The authorization server publishes [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414) metadata.

The authorization server must:

* Set `client_id_metadata_document_supported` to `true`.
* Support PKCE with the `S256` method.
* List `none` in `token_endpoint_auth_methods_supported`.
* Return `iss` on the callback ([RFC 9207](https://datatracker.ietf.org/doc/html/rfc9207)).
* Use public `https` URLs on port 443 for every endpoint.
* List `offline_access` in `scopes_supported`, to issue refresh tokens.

Honeycomb sends the `resource` parameter ([RFC 8707](https://datatracker.ietf.org/doc/html/rfc8707)).
It asks for the scopes in the `401` challenge, or else the scopes that the resource lists.

Each server gets its own client ID, which is a metadata URL.
The authorization server receives it in the sign-in request.
If your authorization server allowlists clients or redirect URIs, add these Honeycomb values:

| | US | EU |
| - | - | - |
| **Client ID** | `https://ui.honeycomb.io/custom-connector/oauth/<server key>/client-metadata.json` | `https://ui.eu1.honeycomb.io/custom-connector/oauth/<server key>/client-metadata.json` |
| **Redirect URI** | `https://ui.honeycomb.io/callback/custom-connector` | `https://ui.eu1.honeycomb.io/callback/custom-connector` |

`<server key>` is different for each server.
To allow every server on your Team, allow the client ID prefix `https://ui.honeycomb.io/custom-connector/oauth/` (US) or `https://ui.eu1.honeycomb.io/custom-connector/oauth/` (EU).

> [!NOTE]
>
> Honeycomb does not support Dynamic Client Registration (DCR) yet.
> An authorization server that supports DCR but not CIMD fails at the sign-in step.

Honeycomb refreshes tokens automatically.
If the authorization server refuses the refresh, the server shows **Needs to be reconnected**.
A token with no refresh token works until it expires, and then the server shows **Needs to be reconnected**.

## Reviewing tools and setting permissions

When an owner saves a server, Honeycomb lists its tools.
The owner chooses what the Canvas Agent can do with each tool, with no user present or in a member's chat.
Honeycomb denies a tool that the owner has not approved.

Honeycomb puts each tool in a group from its MCP annotations:

| Annotation | Group |
| - | - |
| `readOnlyHint: true` | **Read-only tools** |
| `destructiveHint: true` | **Destructive tools** |
| Any other tool, including a tool with no annotation | **Write tools** |

Honeycomb treats annotations as hints, because your server sets them.
The owner's review is the control.
Check each tool before you approve it.

A run with no one present cannot ask for approval.
Honeycomb denies a tool that you set to **Ask** in such a run.
By default, the Canvas Agent can run read-only tools and cannot run any other tool in such a run.
Allow a write or destructive tool before the Canvas Agent uses it in such a run.

You set one permission for all **Read-only tools** or all **Write tools**.
You set each destructive tool one at a time.
A permission on a tool overrides the permission of its group.

To stop a group for everyone, select **Block for everyone** in the menu for **Read-only tools** or **Write tools**.
A block applies to runs with no user present and to members.
A block on **Write tools** also stops destructive tools.

To change permissions later:

1. Navigate to **Team settings** > **Integrations**.
2. Select **Custom MCP**.
3. Find the server and select **Manage**.
4. Change the tool permissions, then select **Save**.

### When a tool changes

If the server changes a tool's definition after the review, Honeycomb blocks that tool until an owner reviews it again.
If the tools change while you review, Honeycomb resets your choices and asks you to review again.

### When an edit needs a new review

An owner who changes the URL, the authentication method, the header, or the credential reviews the tools again.
If the URL, the authentication method, or the authorization server changes, members who connected their own accounts must connect again.

## Turning a server on or off

The table of custom MCP servers has two switches for each server:

* **Goal Agents:** Turn the server on or off for runs with no user present.
* **Members:** Turn the server on or off for team members in their own Canvas chats.

## Using custom MCP servers in Canvas chats

When an owner turns on **Members**, members see the server in **Canvas** > **Connectors** > **Custom MCP**.
If an owner turns the switch off, the server shows **Turned off by a team owner**.
Owners add and edit servers in **Team settings**.

What a member does depends on how the server authenticates:

| Server authentication | How a member uses it |
| - | - |
| **Bearer token**, **Custom header**, or **Basic authentication** | The server shows as **Team**. Members use the team credential, so they do not connect an account. The owner's tool permissions apply to members. |
| **OAuth** | The server shows as **Personal**. Each member selects **Connect** and signs in with their own account. A member can select **Reconnect** or **Disconnect** later. |

For an OAuth server, a member sets their own tool permissions.
A tool that an owner denies stays denied for everyone.
The other owner permissions do not apply to members.
Until a member sets a permission, read-only tools run and other tools ask.

A read-only Honeycomb user can use read-only tools only.

## Reconnecting and removing a server

An OAuth server shows **Needs to be reconnected** in two cases:

* The authorization server refuses a token refresh.
* The owner who connected the account leaves the Team.

Only an owner can reconnect the team credential.

1. Navigate to **Team settings** > **Integrations**.
2. Select **Custom MCP**.
3. Find the server and select **Manage**.
4. Select **Reconnect** and sign in again.

To replace an API key or another static credential, select **Manage**, edit the settings, and enter the new value.

To remove a server, select **Manage**, then **Disconnect**, and confirm.
Honeycomb deletes the server, its tools, its credentials, and its tool permissions.
For an OAuth server, Honeycomb also tries to revoke the tokens at the [RFC 7009](https://datatracker.ietf.org/doc/html/rfc7009) revocation endpoint.
Revocation works only if the endpoint accepts public clients.
A failed revocation does not stop the removal.

When a member leaves the Team, Honeycomb deletes that member's connections and tool permissions.

## Security

* Honeycomb encrypts credentials.
  The agent never sees them.
* Honeycomb calls only the tools that an owner approved.
* Honeycomb refuses private addresses and redirects, and it passes only tool traffic.
* Honeycomb removes hidden characters from tool names and descriptions before the model reads them.

## Activity Log

The Team's Activity Log records each change that a person makes to a custom MCP server and its tools.
Each event names the user who made the change.

| Change | What the event records |
| - | - |
| An owner adds, edits, or deletes a server | The name, the URL without secrets, the description, the authentication method, the header name, the group blocks, and the **Goal Agents** and **Members** switches |
| An owner approves, changes, or removes a tool | The tool name, its group, and whether it is on |
| An owner sets a permission | The tool or group, and the permission |

The Activity Log never records a header value or an OAuth token.
It does not record tool calls.

## Troubleshooting

| Error | Fix |
| - | - |
| The URL must use `https` or port 443 | Serve the MCP endpoint over `https` on port 443. |
| The URL must resolve only to public addresses | Expose the server on a public host. Honeycomb does not support private networks. |
| The server answered with a redirect | Enter the final URL. |
| The server rejected the credential (HTTP 401) | Check the header name, the value, and the access of the key. |
| The server does not offer tools | Turn on the `tools` capability. |
| The server lists more than 80 tools | Split the server, or remove tools. |
| The server did not complete an MCP handshake | Use Streamable HTTP. |
| The server answered without credentials, not 401 (OAuth) | Return `401` with `WWW-Authenticate: Bearer` before sign-in. |
| No protected resource metadata (OAuth) | Publish [RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728) metadata at a well-known URL. |
| The authorization server does not support CIMD (OAuth) | Turn on CIMD, or use an API key. |
