Skip to content

Connecting an MCP Server

Whiskers can hand your agents the tools offered by an external server that speaks MCP (Model Context Protocol): GitHub, Jira, an internal service or a server you wrote yourself. This page covers that direction — Whiskers is the client. The reverse, an application such as Claude Desktop calling Whiskers agents as tools, is described under MCP Integration.

Tools from a connected server appear in the Tools list and are assigned to agents exactly like built-in tools; the agent sees no difference.

Prerequisites

  • Permission: defining an MCP server requires mcp_server:write (included in the tenant administrator role).
  • Reachability: the server must be reachable from the network Whiskers runs in — not from your laptop. In production the address must be https://.
  • Transport: the server must speak streamable HTTP (recommended) or SSE. Servers launched from a command line (stdio) are not supported; publish such a server as its own process or container over HTTP.

1. Register the server

In the admin panel, Tools → MCP Servers → New MCP Server:

Field Description
Name Display name in the list
URL Full server address, e.g. https://mcp.company.local/mcp
Transport streamable_http or sse — whichever the server supports
Auth type none · bearer · oauth (see below)
Auth token Bearer only; stored encrypted, never shown again
Discovery refresh interval How often the tool list is refreshed, in seconds; default 3600, minimum 60

Addresses that are not accepted

The address is checked when saved and on every connection. The platform's own services, localhost and the cloud metadata address (169.254.169.254) can never be targets; such a registration is rejected with 422. Private (internal) network addresses are allowed. Redirects issued by the server are not followed — if the server redirects elsewhere, enter the final address directly.

2. Authentication

  • none: the server asks for no identity (only sensible on a closed network).
  • bearer: a fixed token issued by the server, sent on every request as Authorization: Bearer ….
  • oauth: hosted MCP servers (Notion, Linear, Canva and the like) request identity via OAuth. After creating the record with this type, open the server's detail page and press Connect (OAuth); the provider's consent page opens in your browser and returns you to Whiskers on approval. Discovery and server addresses are taken from the provider automatically; there is no provider-specific setup.

The connected identity is one per tenant — use a service account

Both a bearer token and an OAuth connection are a single identity per server: every agent using this server's tools calls under that identity for everyone who can access the agent. There is no per-user identity.

If you connect your own personal account (or personal access token), an employee who cannot see a resource at the provider sees it through the agent with your permissions. So connect a service account, not a personal one: an account that reaches only shared resources everyone may see and, where possible, has read-only rights. Example: the access token (bearer) of a service account created for Jira, or giving the OAuth approval with that service account. For resources that must be used with each person's own permissions, use personal account connection as in Microsoft 365 and Google Workspace — see Microsoft 365 · Google Workspace.

Expired tokens are refreshed silently. If the provider revokes access, the detail page shows Not connected; repeat the approval with Reconnect.

Finish the approval in the browser that started it

The approval is tied to the browser where you pressed Connect. If you forward the provider's consent address to someone else or open it in another browser, no connection is made ("started in a different browser"); start the flow again. This prevents someone else's provider account from being connected to your installation (or yours to theirs).

If the provider does not support automatic client registration, register the application at the provider manually; the redirect address is the /api/v1/mcp-servers/oauth/callback path on Whiskers' internal address (the full address is shown in the error message when you press Connect). Automatically registered clients are registered again on the next connection when the installation address changes.

3. Discover the tools

After saving, press Discover on the detail page; even if you do not, automatic discovery runs within five minutes and then at every refresh interval. Discovered tools appear on the detail page and in the Tools list, ready to use.

Discovery synchronizes with the server's list:

  • A tool the server no longer offers is not deleted but marked deprecated; if it returns, the same record becomes active again. Past invocation records are kept.
  • A tool you disabled stays disabled regardless of what discovery finds.
  • An incomplete or interrupted listing does not synchronize; the status shows Failed or Partial and the existing tools are preserved.

4. Give it to an agent

On the Tools page set the tool's access list (which groups may call it), then add it to the agent's tool list. Calling requires the user to hold tool:invoke and to be on the tool's access list; this is checked when the agent is published.

Counts as external content and an outbound channel

Because what the server does cannot be seen from Whiskers, MCP tools count as tools that both fetch external content and can send data out. They therefore cannot be published in the same agent as the Microsoft 365 or Google Workspace search/read tools; together with another tool that reads private data (e.g. SQL query) the agent gets a warning. The rule and the explicit allow: Agent Guide → Tool combination.

Troubleshooting

  • Discovery shows "Failed". The detail page shows the reason and the error text the server returned: wrong address, server down, invalid token or OAuth not connected. Fix it and press Discover.
  • Server unreachable. A network outage, a timeout or an error on the server's side (5xx, 429) counts as temporary: the server stays enabled and is retried at growing intervals (5 minutes, 15 minutes, 45 minutes, then the refresh interval). It recovers by itself once the server is back; you do not need to do anything. The detail page shows when the next attempt is.
  • Server disabled automatically. If the server rejects the credentials three times in a row (401/403, OAuth renewal refused) or rejects the request (wrong address, protocol error, access rule), the system disables it. The list shows an Auto-disabled badge, the detail page shows the reason and the Configuration health panel raises a critical finding; its tools remain in agents as dead references. Resolve the problem and switch Enabled back on: the attempt counter resets and the server is retried on the next round.
  • Secret parameter in the address. If the address carries a key in a query parameter (?apikey=…), it is shown masked. Saving without changing the address keeps the stored value; to change it, enter the full address again. If the provider supports it, put the key in the bearer token field instead of the address: it is stored encrypted there.
  • The agent cannot call the tool. If the server is unreachable at that moment the call fails; the discovered list is not removed. Once the server is back, calls work again by themselves.
  • Deleting the server. The delete dialog lists the agents that use this server's tools. After deletion the tools are unusable but remain in the agent configuration; those agents fail at run time, so remove the tools from them. The server's stored token (bearer or OAuth) is deleted too.
  • Long-running calls. Every tool call has a timeout (Execution settings → Timeout (s) on the tool's detail page; 30 s if empty). Large results are cut at 1 MB and handed to the model with a "truncated" notice.