We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a9aa13 commit 5c9b476Copy full SHA for 5c9b476
src/core/prompts/sections/mcp-servers.ts
@@ -39,7 +39,7 @@ export async function getMcpServersSection(
39
const config = JSON.parse(server.config)
40
41
return (
42
- `## ${server.name} (\`${config.command}${config.args && Array.isArray(config.args) ? ` ${config.args.join(" ")}` : ""}\`)` +
+ `## ${server.name}${config.command ? ` (\`${config.command}${config.args && Array.isArray(config.args) ? ` ${config.args.join(" ")}` : ""}\`)` : ""}` +
43
(server.instructions ? `\n\n### Instructions\n${server.instructions}` : "") +
44
(tools ? `\n\n### Available Tools\n${tools}` : "") +
45
(templates ? `\n\n### Resource Templates\n${templates}` : "") +
0 commit comments