Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita2d5e63

Browse files
Copilotomgitsads
andcommitted
Migrate users toolset (SearchUsers, SearchOrgs) to go-sdk
Migrated search.go, search_test.go, and search_utils.go from mark3labs/mcp-go to modelcontextprotocol/go-sdk:- Removed //go:build ignore tags- Updated imports to use go-sdk- Migrated tool schemas from DSL to jsonschema.Schema format- Updated handler signatures to use generics (map[string]any, any)- Changed parameter extraction to use map arguments- Replaced mcp.NewToolResult* with utils package functions- Updated test handler invocations to new signature- Added search_orgs toolsnap- Updated all search tool toolsnapsCo-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
1 parente1f1e54 commita2d5e63

File tree

7 files changed

+467
-355
lines changed

7 files changed

+467
-355
lines changed
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
{
22
"annotations": {
3-
"title":"Search code",
4-
"readOnlyHint":true
3+
"readOnlyHint":true,
4+
"title":"Search code"
55
},
66
"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": {
8+
"type":"object",
9+
"required": [
10+
"query"
11+
],
812
"properties": {
913
"order": {
14+
"type":"string",
1015
"description":"Sort order for results",
1116
"enum": [
1217
"asc",
1318
"desc"
14-
],
15-
"type":"string"
19+
]
1620
},
1721
"page": {
22+
"type":"number",
1823
"description":"Page number for pagination (min 1)",
19-
"minimum":1,
20-
"type":"number"
24+
"minimum":1
2125
},
2226
"perPage": {
27+
"type":"number",
2328
"description":"Results per page for pagination (min 1, max 100)",
24-
"maximum":100,
2529
"minimum":1,
26-
"type":"number"
30+
"maximum":100
2731
},
2832
"query": {
29-
"description":"Search query using GitHub's powerful code search syntax. Examples: 'content:Skill language:Java org:github', 'NOT is:archived language:Python OR language:go', 'repo:github/github-mcp-server'. Supports exact matching, language filters, path filters, and more.",
30-
"type":"string"
33+
"type":"string",
34+
"description":"Search query using GitHub's powerful code search syntax. Examples: 'content:Skill language:Java org:github', 'NOT is:archived language:Python OR language:go', 'repo:github/github-mcp-server'. Supports exact matching, language filters, path filters, and more."
3135
},
3236
"sort": {
33-
"description":"Sort field ('indexed' only)",
34-
"type":"string"
37+
"type":"string",
38+
"description":"Sort field ('indexed' only)"
3539
}
36-
},
37-
"required": [
38-
"query"
39-
],
40-
"type":"object"
40+
}
4141
},
4242
"name":"search_code"
4343
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint":true,
4+
"title":"Search organizations"
5+
},
6+
"description":"Find GitHub organizations by name, location, or other organization metadata. Ideal for discovering companies, open source foundations, or teams.",
7+
"inputSchema": {
8+
"type":"object",
9+
"required": [
10+
"query"
11+
],
12+
"properties": {
13+
"order": {
14+
"type":"string",
15+
"description":"Sort order",
16+
"enum": [
17+
"asc",
18+
"desc"
19+
]
20+
},
21+
"page": {
22+
"type":"number",
23+
"description":"Page number for pagination (min 1)",
24+
"minimum":1
25+
},
26+
"perPage": {
27+
"type":"number",
28+
"description":"Results per page for pagination (min 1, max 100)",
29+
"minimum":1,
30+
"maximum":100
31+
},
32+
"query": {
33+
"type":"string",
34+
"description":"Organization search query. Examples: 'microsoft', 'location:california', 'created:\u003e=2025-01-01'. Search is automatically scoped to type:org."
35+
},
36+
"sort": {
37+
"type":"string",
38+
"description":"Sort field by category",
39+
"enum": [
40+
"followers",
41+
"repositories",
42+
"joined"
43+
]
44+
}
45+
}
46+
},
47+
"name":"search_orgs"
48+
}
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
11
{
22
"annotations": {
3-
"title":"Search repositories",
4-
"readOnlyHint":true
3+
"readOnlyHint":true,
4+
"title":"Search repositories"
55
},
66
"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": {
8+
"type":"object",
9+
"required": [
10+
"query"
11+
],
812
"properties": {
913
"minimal_output": {
10-
"default":true,
14+
"type":"boolean",
1115
"description":"Return minimal repository information (default: true). When false, returns full GitHub API repository objects.",
12-
"type":"boolean"
16+
"default":true
1317
},
1418
"order": {
19+
"type":"string",
1520
"description":"Sort order",
1621
"enum": [
1722
"asc",
1823
"desc"
19-
],
20-
"type":"string"
24+
]
2125
},
2226
"page": {
27+
"type":"number",
2328
"description":"Page number for pagination (min 1)",
24-
"minimum":1,
25-
"type":"number"
29+
"minimum":1
2630
},
2731
"perPage": {
32+
"type":"number",
2833
"description":"Results per page for pagination (min 1, max 100)",
29-
"maximum":100,
3034
"minimum":1,
31-
"type":"number"
35+
"maximum":100
3236
},
3337
"query": {
34-
"description":"Repository search query. Examples: 'machine learning in:name stars:\u003e1000 language:python', 'topic:react', 'user:facebook'. Supports advanced search syntax for precise filtering.",
35-
"type":"string"
38+
"type":"string",
39+
"description":"Repository search query. Examples: 'machine learning in:name stars:\u003e1000 language:python', 'topic:react', 'user:facebook'. Supports advanced search syntax for precise filtering."
3640
},
3741
"sort": {
42+
"type":"string",
3843
"description":"Sort repositories by field, defaults to best match",
3944
"enum": [
4045
"stars",
4146
"forks",
4247
"help-wanted-issues",
4348
"updated"
44-
],
45-
"type":"string"
49+
]
4650
}
47-
},
48-
"required": [
49-
"query"
50-
],
51-
"type":"object"
51+
}
5252
},
5353
"name":"search_repositories"
5454
}
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
{
22
"annotations": {
3-
"title":"Search users",
4-
"readOnlyHint":true
3+
"readOnlyHint":true,
4+
"title":"Search users"
55
},
66
"description":"Find GitHub users by username, real name, or other profile information. Useful for locating developers, contributors, or team members.",
77
"inputSchema": {
8+
"type":"object",
9+
"required": [
10+
"query"
11+
],
812
"properties": {
913
"order": {
14+
"type":"string",
1015
"description":"Sort order",
1116
"enum": [
1217
"asc",
1318
"desc"
14-
],
15-
"type":"string"
19+
]
1620
},
1721
"page": {
22+
"type":"number",
1823
"description":"Page number for pagination (min 1)",
19-
"minimum":1,
20-
"type":"number"
24+
"minimum":1
2125
},
2226
"perPage": {
27+
"type":"number",
2328
"description":"Results per page for pagination (min 1, max 100)",
24-
"maximum":100,
2529
"minimum":1,
26-
"type":"number"
30+
"maximum":100
2731
},
2832
"query": {
29-
"description":"User search query. Examples: 'john smith', 'location:seattle', 'followers:\u003e100'. Search is automatically scoped to type:user.",
30-
"type":"string"
33+
"type":"string",
34+
"description":"User search query. Examples: 'john smith', 'location:seattle', 'followers:\u003e100'. Search is automatically scoped to type:user."
3135
},
3236
"sort": {
37+
"type":"string",
3338
"description":"Sort users by number of followers or repositories, or when the person joined GitHub.",
3439
"enum": [
3540
"followers",
3641
"repositories",
3742
"joined"
38-
],
39-
"type":"string"
43+
]
4044
}
41-
},
42-
"required": [
43-
"query"
44-
],
45-
"type":"object"
45+
}
4646
},
4747
"name":"search_users"
4848
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp