Skip to content

Commit 514c56b

Browse files
authored
Update desc
1 parent 5dc03a9 commit 514c56b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/github/__toolsnaps__/search_code.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Search code",
44
"readOnlyHint": true
55
},
6-
"description": "Fast and precise code search across ALL GitHub repositories using GitHub's native search engine. Best for finding exact symbols, functions, classes, or specific code patterns. Use this FIRST before trying semantic alternatives - it's faster and more accurate for exact matches.",
6+
"description": "Fast and precise code search across ALL GitHub repositories using GitHub's native search engine. Best for finding exact symbols, functions, classes, or specific code patterns.",
77
"inputSchema": {
88
"properties": {
99
"order": {

pkg/github/search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func SearchRepositories(getClient GetClientFn, t translations.TranslationHelperF
7979
// SearchCode creates a tool to search for code across GitHub repositories.
8080
func SearchCode(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
8181
return mcp.NewTool("search_code",
82-
mcp.WithDescription(t("TOOL_SEARCH_CODE_DESCRIPTION", "Fast and precise code search across ALL GitHub repositories using GitHub's native search engine. Best for finding exact symbols, functions, classes, or specific code patterns. Use this FIRST before trying semantic alternatives - it's faster and more accurate for exact matches.")),
82+
mcp.WithDescription(t("TOOL_SEARCH_CODE_DESCRIPTION", "Fast and precise code search across ALL GitHub repositories using GitHub's native search engine. Best for finding exact symbols, functions, classes, or specific code patterns.")),
8383
mcp.WithToolAnnotation(mcp.ToolAnnotation{
8484
Title: t("TOOL_SEARCH_CODE_USER_TITLE", "Search code"),
8585
ReadOnlyHint: ToBoolPtr(true),

0 commit comments

Comments
 (0)