mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 05:42:54 -07:00
Always use MCP server instructions (#14297)
This commit is contained in:
@@ -327,14 +327,11 @@ export class McpClientManager {
|
||||
getMcpInstructions(): string {
|
||||
const instructions: string[] = [];
|
||||
for (const [name, client] of this.clients) {
|
||||
// Only include instructions if explicitly enabled in config
|
||||
if (client.getServerConfig().useInstructions) {
|
||||
const clientInstructions = client.getInstructions();
|
||||
if (clientInstructions) {
|
||||
instructions.push(
|
||||
`# Instructions for MCP Server '${name}'\n${clientInstructions}`,
|
||||
);
|
||||
}
|
||||
const clientInstructions = client.getInstructions();
|
||||
if (clientInstructions) {
|
||||
instructions.push(
|
||||
`# Instructions for MCP Server '${name}'\n${clientInstructions}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
return instructions.join('\n\n');
|
||||
|
||||
Reference in New Issue
Block a user