Skip to content

mcp.tools

The tools of a workspace’s remote MCP server, listed by the daemon itself, no thread needed (PRT-434).

export type McpToolsParams = {
/** The server's name in the workspace's MCP config. */
server: string;
workspaceId: string;
};
/** `mcp.tools` result (PRT-434): every tool the server lists, in its order. */
export type McpTools = {
server: string;
tools: McpTool[];
workspaceId: string;
};
/** One tool of an MCP server, as its `tools/list` describes it. */
export type McpTool = {
/** Hints such as `readOnlyHint` or `destructiveHint`, as the server sends them. */
annotations?: unknown;
description?: string | null;
/** The JSON Schema of the tool's `arguments`. */
inputSchema: unknown;
name: string;
/** The JSON Schema of the tool's `structuredContent`, when the server declares one. */
outputSchema?: unknown;
title?: string | null;
};