Skip to content

Commit 3ab3f10

Browse files
authored
Added more updates
1 parent e1b06c0 commit 3ab3f10

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
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": "🎯 **PREFERRED**: Lexical 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. Use this FIRST before trying semantic alternatives - it's faster and more accurate for exact matches.",
77
"inputSchema": {
88
"properties": {
99
"order": {

pkg/github/__toolsnaps__/search_repositories.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Search repositories",
44
"readOnlyHint": true
55
},
6-
"description": "Search for GitHub repositories",
6+
"description": "Find GitHub repositories by name, description, readme, topics or other metadata. Perfect for discovering projects, finding examples, or locating specific repositories across GitHub.",
77
"inputSchema": {
88
"properties": {
99
"page": {
@@ -18,7 +18,7 @@
1818
"type": "number"
1919
},
2020
"query": {
21-
"description": "Search query",
21+
"description": "Repository search query. Examples: 'machine learning in:name start:\u003e1000 language:python', 'topic:react', 'user:facebook'. Supports advanced search syntax for precise filtering.",
2222
"type": "string"
2323
}
2424
},

pkg/github/__toolsnaps__/search_users.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Search users",
44
"readOnlyHint": true
55
},
6-
"description": "Search for GitHub users exclusively",
6+
"description": "Find GitHub users by username, real name, or other profile information. Useful for locating developers, contributors, or team members.",
77
"inputSchema": {
88
"properties": {
99
"order": {
@@ -26,11 +26,11 @@
2626
"type": "number"
2727
},
2828
"query": {
29-
"description": "Search query using GitHub users search syntax scoped to type:user",
29+
"description": "User search query. Examples: 'john smith', 'location:seattle', 'followers:\u003e100'. Search is automatically scoped to type:user.",
3030
"type": "string"
3131
},
3232
"sort": {
33-
"description": "Sort field by category",
33+
"description": "Sort users by number of followers or repositories, or when the person joined GitHub.",
3434
"enum": [
3535
"followers",
3636
"repositories",

pkg/github/search.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ import (
1616
// SearchRepositories creates a tool to search for GitHub repositories.
1717
func SearchRepositories(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
1818
return mcp.NewTool("search_repositories",
19-
mcp.WithDescription(t("TOOL_SEARCH_REPOSITORIES_DESCRIPTION", "Search for GitHub repositories")),
19+
mcp.WithDescription(t("TOOL_SEARCH_REPOSITORIES_DESCRIPTION", "Find GitHub repositories by name, description, readme, topics or other metadata. Perfect for discovering projects, finding examples, or locating specific repositories across GitHub.")),
20+
2021
mcp.WithToolAnnotation(mcp.ToolAnnotation{
2122
Title: t("TOOL_SEARCH_REPOSITORIES_USER_TITLE", "Search repositories"),
2223
ReadOnlyHint: ToBoolPtr(true),
2324
}),
2425
mcp.WithString("query",
2526
mcp.Required(),
26-
mcp.Description("Search query"),
27+
mcp.Description("Repository search query. Examples: 'machine learning in:name start:>1000 language:python', 'topic:react', 'user:facebook'. Supports advanced search syntax for precise filtering."),
2728
),
2829
WithPagination(),
2930
),
@@ -78,8 +79,7 @@ func SearchRepositories(getClient GetClientFn, t translations.TranslationHelperF
7879
// SearchCode creates a tool to search for code across GitHub repositories.
7980
func SearchCode(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
8081
return mcp.NewTool("search_code",
81-
// mcp.WithDescription(t("TOOL_SEARCH_CODE_DESCRIPTION", "Search for code across GitHub repositories")),
82-
mcp.WithDescription(t("TOOL_SEARCH_CODE_DESCRIPTION", "🎯 **PREFERRED**: Lexical 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. Use this FIRST before trying semantic alternatives - it's faster and more accurate for exact matches.")),
8383
mcp.WithToolAnnotation(mcp.ToolAnnotation{
8484
Title: t("TOOL_SEARCH_CODE_USER_TITLE", "Search code"),
8585
ReadOnlyHint: ToBoolPtr(true),
@@ -259,17 +259,17 @@ func userOrOrgHandler(accountType string, getClient GetClientFn) server.ToolHand
259259
// SearchUsers creates a tool to search for GitHub users.
260260
func SearchUsers(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
261261
return mcp.NewTool("search_users",
262-
mcp.WithDescription(t("TOOL_SEARCH_USERS_DESCRIPTION", "Search for GitHub users exclusively")),
262+
mcp.WithDescription(t("TOOL_SEARCH_USERS_DESCRIPTION", "Find GitHub users by username, real name, or other profile information. Useful for locating developers, contributors, or team members.")),
263263
mcp.WithToolAnnotation(mcp.ToolAnnotation{
264264
Title: t("TOOL_SEARCH_USERS_USER_TITLE", "Search users"),
265265
ReadOnlyHint: ToBoolPtr(true),
266266
}),
267267
mcp.WithString("query",
268268
mcp.Required(),
269-
mcp.Description("Search query using GitHub users search syntax scoped to type:user"),
269+
mcp.Description("User search query. Examples: 'john smith', 'location:seattle', 'followers:>100'. Search is automatically scoped to type:user."),
270270
),
271271
mcp.WithString("sort",
272-
mcp.Description("Sort field by category"),
272+
mcp.Description("Sort users by number of followers or repositories, or when the person joined GitHub."),
273273
mcp.Enum("followers", "repositories", "joined"),
274274
),
275275
mcp.WithString("order",
@@ -283,14 +283,15 @@ func SearchUsers(getClient GetClientFn, t translations.TranslationHelperFunc) (t
283283
// SearchOrgs creates a tool to search for GitHub organizations.
284284
func SearchOrgs(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
285285
return mcp.NewTool("search_orgs",
286-
mcp.WithDescription(t("TOOL_SEARCH_ORGS_DESCRIPTION", "Search for GitHub organizations exclusively")),
286+
mcp.WithDescription(t("TOOL_SEARCH_ORGS_DESCRIPTION", "Find GitHub organizations by name, location, or other organization metadata. Ideal for discovering companies, open source foundations, or teams.")),
287+
287288
mcp.WithToolAnnotation(mcp.ToolAnnotation{
288289
Title: t("TOOL_SEARCH_ORGS_USER_TITLE", "Search organizations"),
289290
ReadOnlyHint: ToBoolPtr(true),
290291
}),
291292
mcp.WithString("query",
292293
mcp.Required(),
293-
mcp.Description("Search query using GitHub organizations search syntax scoped to type:org"),
294+
mcp.Description("Organization search query. Examples: 'microsoft', 'location:california', 'created:>=2025-01-01'. Search is automatically scoped to type:org."),
294295
),
295296
mcp.WithString("sort",
296297
mcp.Description("Sort field by category"),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy