extra spacing in discovered tool descriptions

This commit is contained in:
olcan
2025-05-04 16:26:20 -07:00
committed by Olcan
parent 9742f6e4a2
commit b8b3a288c7

View File

@@ -22,6 +22,7 @@ export class DiscoveredTool extends BaseTool<ToolParams, ToolResult> {
const discoveryCmd = config.getToolDiscoveryCommand()!; const discoveryCmd = config.getToolDiscoveryCommand()!;
const callCommand = config.getToolCallCommand()!; const callCommand = config.getToolCallCommand()!;
description += ` description += `
This tool was discovered from the project by executing the command \`${discoveryCmd}\` on project root. This tool was discovered from the project by executing the command \`${discoveryCmd}\` on project root.
When called, this tool will execute the command \`${callCommand} ${name}\` on project root. When called, this tool will execute the command \`${callCommand} ${name}\` on project root.
Tool discovery and call commands can be configured in project settings. Tool discovery and call commands can be configured in project settings.
@@ -99,6 +100,7 @@ export class DiscoveredMCPTool extends BaseTool<ToolParams, ToolResult> {
) { ) {
const mcpServerCmd = config.getMcpServerCommand()!; const mcpServerCmd = config.getMcpServerCommand()!;
description += ` description += `
This MCP tool was discovered from a local MCP server using JSON RPC 2.0 over stdio transport protocol. This MCP tool was discovered from a local MCP server using JSON RPC 2.0 over stdio transport protocol.
The MCP server was started by executing the command \`${mcpServerCmd}\` on project root. The MCP server was started by executing the command \`${mcpServerCmd}\` on project root.
When called, this tool will invoke the \`tools/call\` method for tool name \`${name}\`. When called, this tool will invoke the \`tools/call\` method for tool name \`${name}\`.