Skip to content

Commit 94b3d72

Browse files
authored
Revert "Add flexibility around server instructions for search-related tools (…" (#1187)
This reverts commit 8a69a5c.
1 parent d0d4b0e commit 94b3d72

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/github/instructions.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ func GenerateInstructions(enabledToolsets []string) string {
2828
}
2929

3030
// Base instruction with context management
31-
baseInstruction := `The GitHub MCP Server provides tools to interact with GitHub.
32-
33-
Context management:
34-
1. Use pagination whenever possible with batches of 5-10 items.
35-
2. Use minimal_output parameter set to true if the full information is not needed to accomplish a task.
31+
baseInstruction := `The GitHub MCP Server provides tools to interact with GitHub platform.
3632
3733
Tool selection guidance:
3834
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.
39-
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).`
35+
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).
36+
37+
Context management:
38+
1. Use pagination whenever possible with batches of 5-10 items.
39+
2. Use minimal_output parameter set to true if the full information is not needed to accomplish a task.`
4040

4141
allInstructions := []string{baseInstruction}
4242
allInstructions = append(allInstructions, instructions...)

0 commit comments

Comments
 (0)