Skip to content

Commit 77ac1a7

Browse files
CopilotomgitsadsLuluBeatson
authored
Migrate projects toolset to modelcontextprotocol/go-sdk (#1475)
* Initial plan * Migrate projects toolset to modelcontextprotocol/go-sdk Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com> * Update documentation after projects migration Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com> * Enable projects toolset after migration Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com> * nit: keep toolsets in original order, remove dupe * revert docs changes --------- 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 parent 9e40d53 commit 77ac1a7

12 files changed

+745
-644
lines changed
Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,47 @@
11
{
22
"annotations": {
3-
"title": "Add project item",
4-
"readOnlyHint": false
3+
"title": "Add project item"
54
},
65
"description": "Add a specific Project item for a user or org",
76
"inputSchema": {
7+
"type": "object",
8+
"required": [
9+
"owner_type",
10+
"owner",
11+
"project_number",
12+
"item_type",
13+
"item_id"
14+
],
815
"properties": {
916
"item_id": {
10-
"description": "The numeric ID of the issue or pull request to add to the project.",
11-
"type": "number"
17+
"type": "number",
18+
"description": "The numeric ID of the issue or pull request to add to the project."
1219
},
1320
"item_type": {
21+
"type": "string",
1422
"description": "The item's type, either issue or pull_request.",
1523
"enum": [
1624
"issue",
1725
"pull_request"
18-
],
19-
"type": "string"
26+
]
2027
},
2128
"owner": {
22-
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive.",
23-
"type": "string"
29+
"type": "string",
30+
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive."
2431
},
2532
"owner_type": {
33+
"type": "string",
2634
"description": "Owner type",
2735
"enum": [
2836
"user",
2937
"org"
30-
],
31-
"type": "string"
38+
]
3239
},
3340
"project_number": {
34-
"description": "The project's number.",
35-
"type": "number"
41+
"type": "number",
42+
"description": "The project's number."
3643
}
37-
},
38-
"required": [
39-
"owner_type",
40-
"owner",
41-
"project_number",
42-
"item_type",
43-
"item_id"
44-
],
45-
"type": "object"
44+
}
4645
},
4746
"name": "add_project_item"
4847
}
Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
11
{
22
"annotations": {
3-
"title": "Delete project item",
4-
"readOnlyHint": false
3+
"title": "Delete project item"
54
},
65
"description": "Delete a specific Project item for a user or org",
76
"inputSchema": {
7+
"type": "object",
8+
"required": [
9+
"owner_type",
10+
"owner",
11+
"project_number",
12+
"item_id"
13+
],
814
"properties": {
915
"item_id": {
10-
"description": "The internal project item ID to delete from the project (not the issue or pull request ID).",
11-
"type": "number"
16+
"type": "number",
17+
"description": "The internal project item ID to delete from the project (not the issue or pull request ID)."
1218
},
1319
"owner": {
14-
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive.",
15-
"type": "string"
20+
"type": "string",
21+
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive."
1622
},
1723
"owner_type": {
24+
"type": "string",
1825
"description": "Owner type",
1926
"enum": [
2027
"user",
2128
"org"
22-
],
23-
"type": "string"
29+
]
2430
},
2531
"project_number": {
26-
"description": "The project's number.",
27-
"type": "number"
32+
"type": "number",
33+
"description": "The project's number."
2834
}
29-
},
30-
"required": [
31-
"owner_type",
32-
"owner",
33-
"project_number",
34-
"item_id"
35-
],
36-
"type": "object"
35+
}
3736
},
3837
"name": "delete_project_item"
3938
}
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
{
22
"annotations": {
3-
"title": "Get project",
4-
"readOnlyHint": true
3+
"readOnlyHint": true,
4+
"title": "Get project"
55
},
66
"description": "Get Project for a user or org",
77
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"project_number",
11+
"owner_type",
12+
"owner"
13+
],
814
"properties": {
915
"owner": {
10-
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive.",
11-
"type": "string"
16+
"type": "string",
17+
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive."
1218
},
1319
"owner_type": {
20+
"type": "string",
1421
"description": "Owner type",
1522
"enum": [
1623
"user",
1724
"org"
18-
],
19-
"type": "string"
25+
]
2026
},
2127
"project_number": {
22-
"description": "The project's number",
23-
"type": "number"
28+
"type": "number",
29+
"description": "The project's number"
2430
}
25-
},
26-
"required": [
27-
"project_number",
28-
"owner_type",
29-
"owner"
30-
],
31-
"type": "object"
31+
}
3232
},
3333
"name": "get_project"
3434
}
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
{
22
"annotations": {
3-
"title": "Get project field",
4-
"readOnlyHint": true
3+
"readOnlyHint": true,
4+
"title": "Get project field"
55
},
66
"description": "Get Project field for a user or org",
77
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"owner_type",
11+
"owner",
12+
"project_number",
13+
"field_id"
14+
],
815
"properties": {
916
"field_id": {
10-
"description": "The field's id.",
11-
"type": "number"
17+
"type": "number",
18+
"description": "The field's id."
1219
},
1320
"owner": {
14-
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive.",
15-
"type": "string"
21+
"type": "string",
22+
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive."
1623
},
1724
"owner_type": {
25+
"type": "string",
1826
"description": "Owner type",
1927
"enum": [
2028
"user",
2129
"org"
22-
],
23-
"type": "string"
30+
]
2431
},
2532
"project_number": {
26-
"description": "The project's number.",
27-
"type": "number"
33+
"type": "number",
34+
"description": "The project's number."
2835
}
29-
},
30-
"required": [
31-
"owner_type",
32-
"owner",
33-
"project_number",
34-
"field_id"
35-
],
36-
"type": "object"
36+
}
3737
},
3838
"name": "get_project_field"
3939
}
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
{
22
"annotations": {
3-
"title": "Get project item",
4-
"readOnlyHint": true
3+
"readOnlyHint": true,
4+
"title": "Get project item"
55
},
66
"description": "Get a specific Project item for a user or org",
77
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"owner_type",
11+
"owner",
12+
"project_number",
13+
"item_id"
14+
],
815
"properties": {
916
"fields": {
17+
"type": "array",
1018
"description": "Specific list of field IDs to include in the response (e.g. [\"102589\", \"985201\", \"169875\"]). If not provided, only the title field is included.",
1119
"items": {
1220
"type": "string"
13-
},
14-
"type": "array"
21+
}
1522
},
1623
"item_id": {
17-
"description": "The item's ID.",
18-
"type": "number"
24+
"type": "number",
25+
"description": "The item's ID."
1926
},
2027
"owner": {
21-
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive.",
22-
"type": "string"
28+
"type": "string",
29+
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive."
2330
},
2431
"owner_type": {
32+
"type": "string",
2533
"description": "Owner type",
2634
"enum": [
2735
"user",
2836
"org"
29-
],
30-
"type": "string"
37+
]
3138
},
3239
"project_number": {
33-
"description": "The project's number.",
34-
"type": "number"
40+
"type": "number",
41+
"description": "The project's number."
3542
}
36-
},
37-
"required": [
38-
"owner_type",
39-
"owner",
40-
"project_number",
41-
"item_id"
42-
],
43-
"type": "object"
43+
}
4444
},
4545
"name": "get_project_item"
4646
}
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
{
22
"annotations": {
3-
"title": "List project fields",
4-
"readOnlyHint": true
3+
"readOnlyHint": true,
4+
"title": "List project fields"
55
},
66
"description": "List Project fields for a user or org",
77
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"owner_type",
11+
"owner",
12+
"project_number"
13+
],
814
"properties": {
915
"after": {
10-
"description": "Forward pagination cursor from previous pageInfo.nextCursor.",
11-
"type": "string"
16+
"type": "string",
17+
"description": "Forward pagination cursor from previous pageInfo.nextCursor."
1218
},
1319
"before": {
14-
"description": "Backward pagination cursor from previous pageInfo.prevCursor (rare).",
15-
"type": "string"
20+
"type": "string",
21+
"description": "Backward pagination cursor from previous pageInfo.prevCursor (rare)."
1622
},
1723
"owner": {
18-
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive.",
19-
"type": "string"
24+
"type": "string",
25+
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive."
2026
},
2127
"owner_type": {
28+
"type": "string",
2229
"description": "Owner type",
2330
"enum": [
2431
"user",
2532
"org"
26-
],
27-
"type": "string"
33+
]
2834
},
2935
"per_page": {
30-
"description": "Results per page (max 50)",
31-
"type": "number"
36+
"type": "number",
37+
"description": "Results per page (max 50)"
3238
},
3339
"project_number": {
34-
"description": "The project's number.",
35-
"type": "number"
40+
"type": "number",
41+
"description": "The project's number."
3642
}
37-
},
38-
"required": [
39-
"owner_type",
40-
"owner",
41-
"project_number"
42-
],
43-
"type": "object"
43+
}
4444
},
4545
"name": "list_project_fields"
4646
}

0 commit comments

Comments
 (0)