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

Commit4042338

Browse files
CopilotomgitsadsLuluBeatson
authored
Migrate discussions toolset to modelcontextprotocol/go-sdk (#1448)
* Initial plan* Migrate discussions toolset to modelcontextprotocol/go-sdkCo-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>* Update documentation after discussions toolset migration* revert generated docs* re-add discussions toolset* rm dupe DefaultGraphQLPageSize---------Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>Co-authored-by: LuluBeatson <lulubeatson@github.com>
1 parent42b5533 commit4042338

File tree

8 files changed

+355
-155
lines changed

8 files changed

+355
-155
lines changed
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 discussion"
5+
},
6+
"description":"Get a specific discussion by ID",
7+
"inputSchema": {
8+
"type":"object",
9+
"required": [
10+
"owner",
11+
"repo",
12+
"discussionNumber"
13+
],
14+
"properties": {
15+
"discussionNumber": {
16+
"type":"number",
17+
"description":"Discussion Number"
18+
},
19+
"owner": {
20+
"type":"string",
21+
"description":"Repository owner"
22+
},
23+
"repo": {
24+
"type":"string",
25+
"description":"Repository name"
26+
}
27+
}
28+
},
29+
"name":"get_discussion"
30+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint":true,
4+
"title":"Get discussion comments"
5+
},
6+
"description":"Get comments from a discussion",
7+
"inputSchema": {
8+
"type":"object",
9+
"required": [
10+
"owner",
11+
"repo",
12+
"discussionNumber"
13+
],
14+
"properties": {
15+
"after": {
16+
"type":"string",
17+
"description":"Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs."
18+
},
19+
"discussionNumber": {
20+
"type":"number",
21+
"description":"Discussion Number"
22+
},
23+
"owner": {
24+
"type":"string",
25+
"description":"Repository owner"
26+
},
27+
"perPage": {
28+
"type":"number",
29+
"description":"Results per page for pagination (min 1, max 100)",
30+
"minimum":1,
31+
"maximum":100
32+
},
33+
"repo": {
34+
"type":"string",
35+
"description":"Repository name"
36+
}
37+
}
38+
},
39+
"name":"get_discussion_comments"
40+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint":true,
4+
"title":"List discussion categories"
5+
},
6+
"description":"List discussion categories with their id and name, for a repository or organisation.",
7+
"inputSchema": {
8+
"type":"object",
9+
"required": [
10+
"owner"
11+
],
12+
"properties": {
13+
"owner": {
14+
"type":"string",
15+
"description":"Repository owner"
16+
},
17+
"repo": {
18+
"type":"string",
19+
"description":"Repository name. If not provided, discussion categories will be queried at the organisation level."
20+
}
21+
}
22+
},
23+
"name":"list_discussion_categories"
24+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint":true,
4+
"title":"List discussions"
5+
},
6+
"description":"List discussions for a repository or organisation.",
7+
"inputSchema": {
8+
"type":"object",
9+
"required": [
10+
"owner"
11+
],
12+
"properties": {
13+
"after": {
14+
"type":"string",
15+
"description":"Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs."
16+
},
17+
"category": {
18+
"type":"string",
19+
"description":"Optional filter by discussion category ID. If provided, only discussions with this category are listed."
20+
},
21+
"direction": {
22+
"type":"string",
23+
"description":"Order direction.",
24+
"enum": [
25+
"ASC",
26+
"DESC"
27+
]
28+
},
29+
"orderBy": {
30+
"type":"string",
31+
"description":"Order discussions by field. If provided, the 'direction' also needs to be provided.",
32+
"enum": [
33+
"CREATED_AT",
34+
"UPDATED_AT"
35+
]
36+
},
37+
"owner": {
38+
"type":"string",
39+
"description":"Repository owner"
40+
},
41+
"perPage": {
42+
"type":"number",
43+
"description":"Results per page for pagination (min 1, max 100)",
44+
"minimum":1,
45+
"maximum":100
46+
},
47+
"repo": {
48+
"type":"string",
49+
"description":"Repository name. If not provided, discussions will be queried at the organisation level."
50+
}
51+
}
52+
},
53+
"name":"list_discussions"
54+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp