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

Commitef60ef7

Browse files
committed
Merge branch 'omgitsads/go-sdk' ofhttps://github.com/github/github-mcp-server into omgitsads/go-sdk
2 parentseab4876 +66e6ad5 commitef60ef7

12 files changed

+856
-469
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint":true,
4+
"title":"Get a global security advisory"
5+
},
6+
"description":"Get a global security advisory",
7+
"inputSchema": {
8+
"type":"object",
9+
"required": [
10+
"ghsaId"
11+
],
12+
"properties": {
13+
"ghsaId": {
14+
"type":"string",
15+
"description":"GitHub Security Advisory ID (format: GHSA-xxxx-xxxx-xxxx)."
16+
}
17+
}
18+
},
19+
"name":"get_global_security_advisory"
20+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint":true,
4+
"title":"Get secret scanning alert"
5+
},
6+
"description":"Get details of a specific secret scanning alert in a GitHub repository.",
7+
"inputSchema": {
8+
"type":"object",
9+
"required": [
10+
"owner",
11+
"repo",
12+
"alertNumber"
13+
],
14+
"properties": {
15+
"alertNumber": {
16+
"type":"number",
17+
"description":"The number of the alert."
18+
},
19+
"owner": {
20+
"type":"string",
21+
"description":"The owner of the repository."
22+
},
23+
"repo": {
24+
"type":"string",
25+
"description":"The name of the repository."
26+
}
27+
}
28+
},
29+
"name":"get_secret_scanning_alert"
30+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint":true,
4+
"title":"List global security advisories"
5+
},
6+
"description":"List global security advisories from GitHub.",
7+
"inputSchema": {
8+
"type":"object",
9+
"properties": {
10+
"affects": {
11+
"type":"string",
12+
"description":"Filter advisories by affected package or version (e.g.\"package1,package2@1.0.0\")."
13+
},
14+
"cveId": {
15+
"type":"string",
16+
"description":"Filter by CVE ID."
17+
},
18+
"cwes": {
19+
"type":"array",
20+
"description":"Filter by Common Weakness Enumeration IDs (e.g. [\"79\",\"284\",\"22\"]).",
21+
"items": {
22+
"type":"string"
23+
}
24+
},
25+
"ecosystem": {
26+
"type":"string",
27+
"description":"Filter by package ecosystem.",
28+
"enum": [
29+
"actions",
30+
"composer",
31+
"erlang",
32+
"go",
33+
"maven",
34+
"npm",
35+
"nuget",
36+
"other",
37+
"pip",
38+
"pub",
39+
"rubygems",
40+
"rust"
41+
]
42+
},
43+
"ghsaId": {
44+
"type":"string",
45+
"description":"Filter by GitHub Security Advisory ID (format: GHSA-xxxx-xxxx-xxxx)."
46+
},
47+
"isWithdrawn": {
48+
"type":"boolean",
49+
"description":"Whether to only return withdrawn advisories."
50+
},
51+
"modified": {
52+
"type":"string",
53+
"description":"Filter by publish or update date or date range (ISO 8601 date or range)."
54+
},
55+
"published": {
56+
"type":"string",
57+
"description":"Filter by publish date or date range (ISO 8601 date or range)."
58+
},
59+
"severity": {
60+
"type":"string",
61+
"description":"Filter by severity.",
62+
"enum": [
63+
"unknown",
64+
"low",
65+
"medium",
66+
"high",
67+
"critical"
68+
]
69+
},
70+
"type": {
71+
"type":"string",
72+
"description":"Advisory type.",
73+
"default":"reviewed",
74+
"enum": [
75+
"reviewed",
76+
"malware",
77+
"unreviewed"
78+
]
79+
},
80+
"updated": {
81+
"type":"string",
82+
"description":"Filter by update date or date range (ISO 8601 date or range)."
83+
}
84+
}
85+
},
86+
"name":"list_global_security_advisories"
87+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint":true,
4+
"title":"List org repository security advisories"
5+
},
6+
"description":"List repository security advisories for a GitHub organization.",
7+
"inputSchema": {
8+
"type":"object",
9+
"required": [
10+
"org"
11+
],
12+
"properties": {
13+
"direction": {
14+
"type":"string",
15+
"description":"Sort direction.",
16+
"enum": [
17+
"asc",
18+
"desc"
19+
]
20+
},
21+
"org": {
22+
"type":"string",
23+
"description":"The organization login."
24+
},
25+
"sort": {
26+
"type":"string",
27+
"description":"Sort field.",
28+
"enum": [
29+
"created",
30+
"updated",
31+
"published"
32+
]
33+
},
34+
"state": {
35+
"type":"string",
36+
"description":"Filter by advisory state.",
37+
"enum": [
38+
"triage",
39+
"draft",
40+
"published",
41+
"closed"
42+
]
43+
}
44+
}
45+
},
46+
"name":"list_org_repository_security_advisories"
47+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint":true,
4+
"title":"List repository security advisories"
5+
},
6+
"description":"List repository security advisories for a GitHub repository.",
7+
"inputSchema": {
8+
"type":"object",
9+
"required": [
10+
"owner",
11+
"repo"
12+
],
13+
"properties": {
14+
"direction": {
15+
"type":"string",
16+
"description":"Sort direction.",
17+
"enum": [
18+
"asc",
19+
"desc"
20+
]
21+
},
22+
"owner": {
23+
"type":"string",
24+
"description":"The owner of the repository."
25+
},
26+
"repo": {
27+
"type":"string",
28+
"description":"The name of the repository."
29+
},
30+
"sort": {
31+
"type":"string",
32+
"description":"Sort field.",
33+
"enum": [
34+
"created",
35+
"updated",
36+
"published"
37+
]
38+
},
39+
"state": {
40+
"type":"string",
41+
"description":"Filter by advisory state.",
42+
"enum": [
43+
"triage",
44+
"draft",
45+
"published",
46+
"closed"
47+
]
48+
}
49+
}
50+
},
51+
"name":"list_repository_security_advisories"
52+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint":true,
4+
"title":"List secret scanning alerts"
5+
},
6+
"description":"List secret scanning alerts in a GitHub repository.",
7+
"inputSchema": {
8+
"type":"object",
9+
"required": [
10+
"owner",
11+
"repo"
12+
],
13+
"properties": {
14+
"owner": {
15+
"type":"string",
16+
"description":"The owner of the repository."
17+
},
18+
"repo": {
19+
"type":"string",
20+
"description":"The name of the repository."
21+
},
22+
"resolution": {
23+
"type":"string",
24+
"description":"Filter by resolution",
25+
"enum": [
26+
"false_positive",
27+
"wont_fix",
28+
"revoked",
29+
"pattern_edited",
30+
"pattern_deleted",
31+
"used_in_tests"
32+
]
33+
},
34+
"secret_type": {
35+
"type":"string",
36+
"description":"A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter."
37+
},
38+
"state": {
39+
"type":"string",
40+
"description":"Filter by state",
41+
"enum": [
42+
"open",
43+
"resolved"
44+
]
45+
}
46+
}
47+
},
48+
"name":"list_secret_scanning_alerts"
49+
}

‎pkg/github/context_tools_test.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ func Test_GetMe(t *testing.T) {
115115
textContent:=getTextResult(t,result)
116116

117117
iftc.expectToolError {
118-
assert.Error(t,err)
119118
assert.True(t,result.IsError,"expected tool call result to be an error")
120119
assert.Contains(t,textContent.Text,tc.expectedToolErrMsg)
121120
return

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp