From 10a87f8159a3b20daa055a143f81bd02a63b27be Mon Sep 17 00:00:00 2001 From: Tommaso Moro <37270480+tommaso-moro@users.noreply.github.com> Date: Tue, 7 Oct 2025 10:10:18 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"Add=20flexibility=20around=20server?= =?UTF-8?q?=20instructions=20for=20search-related=20tools=20(=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 8a69a5c35f7ff25a7e5b36320bd09bbcaa1234a0. --- pkg/github/instructions.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/github/instructions.go b/pkg/github/instructions.go index fcf11d816..7eefe53f0 100644 --- a/pkg/github/instructions.go +++ b/pkg/github/instructions.go @@ -28,15 +28,15 @@ func GenerateInstructions(enabledToolsets []string) string { } // Base instruction with context management - baseInstruction := `The GitHub MCP Server provides tools to interact with GitHub. - -Context management: - 1. Use pagination whenever possible with batches of 5-10 items. - 2. Use minimal_output parameter set to true if the full information is not needed to accomplish a task. + baseInstruction := `The GitHub MCP Server provides tools to interact with GitHub platform. Tool selection guidance: 1. Use 'list_*' tools for broad, simple retrieval and pagination of all items of a type (e.g., all issues, all PRs, all branches) with basic filtering. - 2. Use tools containing 'search' in their name for targeted queries with specific criteria, keywords, or complex filters (e.g., issues with certain text, PRs by author, code containing functions).` + 2. Use 'search_*' tools for targeted queries with specific criteria, keywords, or complex filters (e.g., issues with certain text, PRs by author, code containing functions). + +Context management: + 1. Use pagination whenever possible with batches of 5-10 items. + 2. Use minimal_output parameter set to true if the full information is not needed to accomplish a task.` allInstructions := []string{baseInstruction} allInstructions = append(allInstructions, instructions...)