When to Use MCP vs Built-In Hives
- Use built-in hives first. They’re pre-configured, maintained, and handle auth automatically. See the Hives Reference for the full list.
- Use custom MCP servers when you need to connect to an internal API, a service without a built-in hive, or a custom tool you’ve built.
Adding an MCP Server
In the expert editor, navigate to the Config step:- Name — A human-readable label for this server (e.g. “Company CRM”, “Internal Billing API”). This is for your reference only.
- URL — The HTTPS endpoint of the MCP server (e.g.
https://mcp.yourcompany.com/sse). - Transport — Choose between
sse(default) andstreamable_http. See Transport Types below. - Verify — Always click Verify before saving. This checks connectivity and discovers available tools. If verification fails, the expert will not be able to use this server.
Transport Types
SSE (Server-Sent Events)
- The original MCP transport and most widely supported.
- Maintains a long-lived connection between the expert and the MCP server.
- Best for: always-on servers, persistent infrastructure, most use cases.
- Set the URL to the server’s
/sseendpoint.
Streamable HTTP
- A newer MCP transport that uses stateless HTTP requests.
- Each tool call is an independent HTTP request — no persistent connection.
- Best for: serverless deployments, ephemeral infrastructure, environments where long-lived connections are impractical.
- Set the URL to the server’s base endpoint.
sse. It’s the default and works with the vast majority of MCP servers.
Building Your Own MCP Server
If you need to expose a custom API or internal service to Braintrust experts, you can build your own MCP server:- Python: Use the fastmcp library for a quick start, or the official MCP Python SDK.
- TypeScript: Use the official MCP TypeScript SDK.
- Implement the MCP protocol (tool discovery + tool execution).
- Be accessible over HTTPS from Braintrust’s infrastructure.
- Return well-structured tool descriptions so the expert knows how to use each tool.
Security Considerations
MCP servers receive full tool invocations including any user data the expert passes to them. Only connect MCP servers that you trust:- Third-party servers: Verify the provider’s security practices before connecting.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| Verify fails with connection error | Server is down, URL is wrong, or not accessible from Braintrust | Check the URL, confirm the server is running, and ensure it’s reachable over HTTPS |
| Verify succeeds but no tools appear | Server is running but not returning tool definitions | Check your MCP server’s tool registration code |
| Connection drops mid-session | SSE connection timed out or server restarted | Consider switching to streamable_http if your server is ephemeral; otherwise check server stability |
| ”Transport not supported” error | Server doesn’t support the selected transport | Try the other transport type, or check server documentation |
Next Steps
Hives Reference
See all built-in tool bundles available.
Configuring Agent Tools
Set up credentials and integrations.
Expert Fields Reference
Full reference for all expert configuration fields.