How to connect Witty to an MCP server
The Model Context Protocol (MCP) is an open standard through which AI assistants connect to approved tools and data sources. An MCP server exposes tools, and a connection links Witty to that server. Use this procedure to make those tools available to Witty agents and skills.
Prerequisites
- Witty is enabled under Administration > Configuration > Witty.
- You can manage remote MCP connections and Witty capabilities.
- The remote MCP endpoint is reachable from the Witboost installation.
How tool discovery works
Tool discovery retrieves the names, descriptions, and parameter definitions exposed by an MCP server. Witty uses discovery in two separate contexts:
- Administration: Refresh tool list updates a shared saved catalog shown to all Witty administrators. It uses the connection's configured authentication and, for forwarded tokens or OAuth, the administrator's own identity. The returned list can therefore be limited by that administrator's permissions. A successful refresh replaces the saved list; an unsuccessful refresh retains previously discovered tools.
- Conversations: Witty discovers tools for the current user, using the configured authentication mode, then applies the agent's direct assignments and inherited skill assignments. Runtime discovery can reuse cached discovery responses and does not update the shared administrative catalog.
Refreshing the shared list does not grant users access, authorize their OAuth connections, or change agent and skill assignments. A tool shown in administration is not proof that every user can run it; a missing saved description is not proof that a tool is unavailable at runtime.
Connect and discover tools
- Open Administration > Configuration > Witty.
- Select MCP Servers.
- Add an MCP server and provide its endpoint and transport settings.
- Choose an authentication mode and configure any required headers.
- Save the connection.
- Select Refresh tool list from the saved connection's actions menu, or select its discovery status badge.
- Review the confirmation and select Refresh tool list to retrieve the latest catalog.
Saving a connection does not populate the shared tool catalog. Refresh it before choosing individual tools so that you can review their names and descriptions. For OAuth connections, complete your own authorization if prompted, then retry the refresh.
Connections marked Platform are provided by Witty and cannot be edited or deleted from this page. Connections marked Custom are managed by platform administrators. Both types support refreshing the tool list when enabled.
Use the discovery status to decide the next action:
| Status | Meaning | Action |
|---|---|---|
| Not discovered | The shared tool list has not been loaded. | Select Refresh tool list. |
| Refreshing tool list... | Witty is retrieving the server's tool catalog. | Wait for the refresh to finish. |
| Discovered | The last discovery succeeded; the saved list may contain no tools. | Review the tools returned for your identity and continue with capability assignment. |
| Discovery unsuccessful | The last attempt failed. Previously discovered tools, if any, remain in the catalog. | Review the reported error and connection settings, then select Refresh tool list to retry. |
Select Refresh tool list whenever the remote server's catalog changes. Refreshing is unavailable while the connection is disabled or a refresh is already in progress.
Authentication options
Authentication determines which user credentials Witty sends to the MCP server. Choose one mode:
| Mode | Behavior | Use when |
|---|---|---|
| No forwarded authentication | Sends no user credentials. Any custom headers configured for the connection are still sent. | The server requires no authentication, or it uses a shared credential supplied through a sensitive custom header. |
| Forward user bearer token | Sends the signed-in user's Witboost bearer token with every request. The MCP server may be able to act on the user's behalf wherever that token is accepted. | The server is trusted and accepts Witboost identities and authorization. You must acknowledge that you trust the server before saving this configuration. |
| OAuth | Requires each user to authorize the MCP server with their own credentials. Witty then uses that user's authorization when invoking tools. | The MCP server has an OAuth authorization flow and access must reflect each user's identity or consent. |
For OAuth, Witty uses dynamic client registration by default. Expand Advanced OAuth configuration when the server requires any of these values:
- OAuth client ID for a pre-registered client.
- OAuth client secret, a write-only secret used with the client ID.
- OAuth client metadata URL for client ID metadata document registration.
- OAuth scopes, separated by spaces or commas.
Custom headers are sent with every request in addition to the selected authentication mode. Use them for values required by the MCP server, such as an API key or tenant identifier. Mark credentials and other confidential values as sensitive; sensitive values remain write-only after the connection is saved.
Assign capabilities
- Open Administration > Configuration > Witty.
- Open Agents to assign capabilities directly to an agent, or Skills to assign reusable capabilities inherited by agents that use the skill.
- Select the target agent or skill.
- Choose one assignment mode for the MCP server:
- Whole server makes all tools discovered for the current user from that server eligible for use by the agent or skill. New tools become eligible through runtime discovery without changing the assignment; refresh the shared list to review them in administration.
- Individual tools makes only the selected tools eligible. Tools added to the server are not included unless they are selected explicitly.
- Apply the assignment.
An agent's effective capabilities combine tools assigned directly to the agent with tools inherited through every assigned skill. Review both sources when validating access.
Neither assignment mode bypasses the remote server's authentication or authorization.
Authorize users when required
If the MCP server requires per-user OAuth, each user must sign in and consent to the connection from personal settings before Witty can run its tools on that user's behalf. OAuth provides this authorization without sharing the user's password with Witboost. Share How to authorize a Witty MCP connection with affected users.
Verify the connection
- Confirm that the connection is enabled and its status is Discovered. Review the tool list expected for the identity used to refresh it; it may differ from another user's list.
- Confirm the assignment mode and assigned tool count on the target agent or skill.
- For an agent, verify the effective tool count, including tools inherited from skills.
- Start a Witty conversation with the target agent, or use General Assistant for a request that should be delegated to that specialist.
- Ask Witty to perform a low-risk operation exposed by the MCP server and confirm that it completes successfully.
Troubleshooting
The tool list is empty or discovery fails
- Confirm that the connection is saved and enabled, then select Refresh tool list and confirm the action.
- If the status is Not discovered, no shared list has been loaded yet.
- If the status is Discovered but the list is empty, the server returned no tools for the credentials used. Check the refreshing administrator's permissions and the server's tool configuration.
- If the status is Discovery unsuccessful, review the reported error. A failed refresh is not evidence that the server has no tools; previously saved tools are retained.
- For authentication failures, check the selected mode and credentials. With OAuth, authorize or reconnect your own account before retrying.
- For rate limits, wait before retrying. For timeouts or temporary unavailability, check the server's health and network reachability from Witty.
- For connection failures, check the endpoint URL, transport, and required headers. If the cause remains unclear, ask the installation operator to inspect Witty and MCP server logs.
- While the status is Refreshing tool list..., wait for completion rather than starting another refresh.
The server catalog changed
- Select Refresh tool list and wait for Discovered.
- Review whole-server assignments because newly exposed tools become eligible through runtime discovery, independently of refreshing the shared catalog.
- Review individual-tool assignments for unavailable selections and explicitly select any added tools that should be granted.
A user receives an authorization error
- Confirm whether the server requires per-user OAuth.
- Ask the user to authorize or reauthorize the connection from personal settings.
- Confirm that the affected user is authorized for the remote operation as well as the Witty agent or skill.
A selected tool is unavailable
- Check that the connection is enabled and that the remote server still exposes the tool to the affected user.
- Review skill assignments as well as direct agent assignments. A tool must be included through at least one of these sources.
- Confirm the user's OAuth authorization or forwarded-token permissions, rather than relying on the administrator's discovery result.
- If administration shows Details not loaded, refresh the shared tool list to load its description. Missing saved details alone do not prove the tool was removed.
- After refreshing with appropriate permissions, review individual-tool selections. Remove or replace a selection only after confirming that the tool is no longer intended or available.