From 4225567303a67ba1dec4e5b558df30265926e079 Mon Sep 17 00:00:00 2001 From: Olcan Date: Fri, 30 May 2025 14:12:51 -0700 Subject: [PATCH] disable markdown for discovered (mcp) tools (#630) --- packages/server/src/tools/mcp-tool.ts | 9 ++++++++- packages/server/src/tools/tool-registry.ts | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/server/src/tools/mcp-tool.ts b/packages/server/src/tools/mcp-tool.ts index 05ad750c..2a561179 100644 --- a/packages/server/src/tools/mcp-tool.ts +++ b/packages/server/src/tools/mcp-tool.ts @@ -27,7 +27,14 @@ When called, this tool will invoke the \`tools/call\` method for tool name \`${n MCP servers can be configured in project or user settings. Returns the MCP server response as a json string. `; - super(name, name, description, parameterSchema); + super( + name, + name, + description, + parameterSchema, + false, // isOutputMarkdown + false, // canUpdateOutput + ); } async execute(params: ToolParams): Promise { diff --git a/packages/server/src/tools/tool-registry.ts b/packages/server/src/tools/tool-registry.ts index a2677e63..e241ada5 100644 --- a/packages/server/src/tools/tool-registry.ts +++ b/packages/server/src/tools/tool-registry.ts @@ -38,7 +38,14 @@ Error: Error or \`(none)\` if no error was reported for the subprocess. Exit Code: Exit code or \`(none)\` if terminated by signal. Signal: Signal number or \`(none)\` if no signal was received. `; - super(name, name, description, parameterSchema); + super( + name, + name, + description, + parameterSchema, + false, // isOutputMarkdown + false, // canUpdateOutput + ); } async execute(params: ToolParams): Promise {