Skip to content

Commit 887b4bf

Browse files
qdaxbhannesrudolph
authored andcommitted
fix undefined mcp command (#5107)
1 parent 4f02098 commit 887b4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/prompts/sections/mcp-servers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export async function getMcpServersSection(
3939
const config = JSON.parse(server.config)
4040
4141
return (
42-
`## ${server.name} (\`${config.command}${config.args && Array.isArray(config.args) ? ` ${config.args.join(" ")}` : ""}\`)` +
42+
`## ${server.name}${config.command ? ` (\`${config.command}${config.args && Array.isArray(config.args) ? ` ${config.args.join(" ")}` : ""}\`)` : ""}` +
4343
(server.instructions ? `\n\n### Instructions\n${server.instructions}` : "") +
4444
(tools ? `\n\n### Available Tools\n${tools}` : "") +
4545
(templates ? `\n\n### Resource Templates\n${templates}` : "") +

0 commit comments

Comments
 (0)