AgentMcpServer
Type, in @jr2/orchestrator/src/agent.ts. It is an export of @jr2/orchestrator, in the Agents group of the Authoring surface page.
ts
type AgentMcpServer = {
server: string;
tools?: readonly string[] | "*";
};One MCP server that an Agent uses, and the tools that it may call there.
serveris a name of themcpblock ofjr2.config.ts.jr2 uprefuses a name that the block does not declare, and prints thecustomize()line that binds the Agent to one it does.toolsis the allowlist. A remote server needs it: a list of tool names, or"*"for every tool. The Harness offers and runs only those tools. When Workspace code in the Agent's Sandbox can spend the server's secret,jr2 uptakes only"*", because a list would then not be a limit. A stdio server takes notools: the Agent gets every tool of the server.
The model reads each tool as mcp__<server>__<tool>. A tool name in the list must keep that name within [A-Za-z0-9_-] and 128 characters.
Fields
server:stringA server name of the
mcpblock ofjr2.config.ts.tools(optional):readonly string[] | "*"The allowlist: tool names of the server, or
"*"for every tool. Required for a remote server; absent for a stdio server.
Example
ts
import { agent } from "@jr2/orchestrator";
export const triage = agent({
model: "anthropic/claude-haiku-5-5",
instructions: "You read the ticket and post a summary to the channel.",
workspace: "none",
mcp: [{ server: "slack-acme", tools: ["post_message", "read_channel"] }],
});See also