<Mcp>

<Mcp>

Tools from an MCP server (MCP servers).

import { Mcp } from "curb";

function Mcp(props: McpProps): ReactNode;

Props

PropTypeWhat it does
idstringA server configured in defineAgent({ mcpServers }), also the prefix of its tools (<id>__<tool>)
urlstringDeclares the server here: no mcpServers entry is needed
auth{ kind: "none" }, { kind: "bearer", token }, { kind: "oauth" }Default: a bearer token from MCP_<ID>_TOKEN when it is set, else OAuth, signed in once in the preview
headersobjectHeaders for each request
onlystring[]Keep only these tools

With neither id nor url, it brings in every registered server. In <GlobalTools> the tools reach every skill; in a skill, only that skill.

Example

<Mcp id="linear" url="https://mcp.linear.app/mcp" only={["search_issues"]} />

Version history

VersionChanges
v0.1.2<Mcp> introduced