MCP Servers
How MCP (Model Context Protocol) sources work in Fabric Agents — supported transports, tool namespacing, and the overall model.
Model Context Protocol (MCP) is an open protocol for exposing structured tools and resources to an AI agent. Lots of services ship an MCP server — Linear, GitHub, Notion, Sentry, Stripe — and you can write your own against the MCP spec.
Fabric Agents speaks MCP as a first-class source type. Add an MCP server as a source and every tool it exposes becomes callable inside a conversation.
Supported transports
Fabric Agents supports three MCP transports:
| Transport | When to use | Config field |
|---|---|---|
| HTTP (streamable) | Default for remote servers. | url (default when transport unspecified) |
| SSE (Server-Sent Events) | Older remote servers that pre-date streamable HTTP. | "transport": "sse" |
| stdio | Local servers that speak MCP over a subprocess. Common for community-built connectors. | "transport": "stdio" |
Protocol versions
Fabric Agents speaks the current MCP revision, 2026-07-28 (stateless MCP), with remote servers that offer it, and the 2025 revisions (2025-11-25 and older) with servers that don't. It finds out on connect (server/discover) and falls back to the older handshake by itself; you don't configure anything. Local (stdio) servers start with the 2025 handshake, and are reconnected on 2026-07-28 when they only speak that; Test connection does the same.
When a server changes its tool list while you work (list_changed), the agent gets the new tools without reconnecting.
Questions from a server
An MCP server can ask you something in the middle of a tool call (MCP elicitation): a confirmation before it publishes or deletes something, a few form fields, or a page to open in your browser. Fabric shows the question in the chat, in place of the message box, and the call waits for your answer:
- A form: text, numbers, yes/no, and one or several choices. Fabric checks each field as you type and sends the server only what you entered. Send, Decline or Cancel.
- A link: Fabric shows where it goes and opens it in your browser only when you click Open page. Check the address before you sign in or pay there.
The agent learns only what you chose (accepted, declined or cancelled), never the question itself. A form should never ask for a password or an API key: the server must use a link for those. Questions are cancelled when you stop the turn, after 30 minutes without an answer, or when the server gives up. You get a notification when a server asks while Fabric is in the background.
Tool namespacing
When an MCP source is enabled, every tool it exposes becomes available to the agent under a namespaced name:
mcp__<source-slug>__<tool-name>For example, adding a Linear MCP server with slug linear and a tool called list_issues gives the agent a tool called mcp__linear__list_issues. The agent sees the original tool name and description; the namespace is invisible to you and prevents collisions between sources that happen to share tool names.
Permissions work against the namespaced form: writing a pattern like list in your source's permissions.json expands to mcp__linear__.*list.* automatically.
Resources and prompts
Besides tools, an MCP server can publish resources (documents such as usage guides, schemas or files, addressed by URI) and prompts (reusable instructions or playbooks that take arguments). The agent reads them with four built-in session tools, available on Claude and Pi sessions alike:
| Tool | What it does |
|---|---|
source_list_resources | Lists a source's resources and resource templates. |
source_read_resource | Reads one resource by URI. |
source_list_prompts | Lists a source's prompts. |
source_get_prompt | Gets one prompt with its arguments filled in. |
When a connected source offers resources or prompts, the session notes it once, together with any instructions the server itself sent. If those instructions or the source's guide.md point at a guide resource, the agent reads it before using the source's tools. When you write a guide.md for such a source, name the resource URIs worth reading.
Product documentation
There's no built-in documentation source to enable. When the agent needs product or setup guidance, it reads this documentation site directly at agents.fabric.pro/docs with its web tools.
Lifecycle
When a source is enabled, the MCP client:
- Connects to the configured transport.
- Calls
listTools()as a health check — a server that can't list tools is considered unhealthy and the source shows "needs auth" or "unreachable" in the sidebar. - Stays connected for the lifetime of the session. If the connection drops, the next tool call triggers an automatic reconnect.
For stdio servers, Fabric Agents spawns the subprocess with a filtered environment — sensitive variables (ANTHROPIC_API_KEY, AWS_*, GITHUB_TOKEN, etc.) are stripped before launch to avoid accidentally leaking credentials to servers you don't fully trust.
What's next
- Connecting an MCP server — add a server with HTTP, SSE, or stdio.
- Authentication — bearer tokens, OAuth, and token refresh.
Related
- Sources overview — the three source types at a glance.
- APIs — REST API source type for services without an MCP server.
- Permissions — how MCP tool allowlists work in Explore mode.
Sources
Connect Fabric Agents to external data — MCP servers, REST APIs, and local folders. How sources work, how to add one, and how the agent uses them in conversations.
Connecting MCP servers
Add an MCP server to Fabric Agents — config schemas for HTTP, SSE, and stdio transports, with worked examples.