Skip to content

Commit 4042338

Browse files
CopilotomgitsadsLuluBeatson
authored
Migrate discussions toolset to modelcontextprotocol/go-sdk (#1448)
* Initial plan * Migrate discussions toolset to modelcontextprotocol/go-sdk Co-authored-by: omgitsads <[email protected]> * Update documentation after discussions toolset migration * revert generated docs * re-add discussions toolset * rm dupe DefaultGraphQLPageSize --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: omgitsads <[email protected]> Co-authored-by: LuluBeatson <[email protected]>
1 parent 42b5533 commit 4042338

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)