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 ed1de83 commit efb452eCopy full SHA for efb452e
src/node/services/systemMessage.ts
@@ -82,12 +82,13 @@ You are in a git worktree at ${workspacePath}
82
/**
83
* Build MCP servers context XML block.
84
* Only included when at least one MCP server is configured.
85
+ * Note: We only expose server names, not commands, to avoid leaking secrets.
86
*/
87
function buildMCPContext(mcpServers: MCPServerMap): string {
- const entries = Object.entries(mcpServers);
88
- if (entries.length === 0) return "";
+ const names = Object.keys(mcpServers);
89
+ if (names.length === 0) return "";
90
- const serverList = entries.map(([name, command]) => `- ${name}: \`${command}\``).join("\n");
91
+ const serverList = names.map((name) => `- ${name}`).join("\n");
92
93
return `
94
<mcp>
0 commit comments