Skip to content

Commit 001e0a1

Browse files
CopilotomgitsadsLuluBeatson
authored
Migrate repos toolset to modelcontextprotocol/go-sdk (#1445)
* Initial plan * WIP: Migrate repos toolset - 7/18 tools complete Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com> * Complete repositories.go migration - all 18 tools migrated Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com> * WIP: Update repositories_test.go - partial migration Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com> * Complete repos toolset migration to go-sdk Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com> * re-add 18 tools: 15/17 repos, 3/3 stargazers * add toolsnaps for ListReleases, GetLatestRelease --------- 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> Co-authored-by: Adam Holt <me@adamholt.co.uk>
1 parent ba40198 commit 001e0a1

22 files changed

+2259
-1978
lines changed
Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
11
{
22
"annotations": {
3-
"title": "Create branch",
4-
"readOnlyHint": false
3+
"title": "Create branch"
54
},
65
"description": "Create a new branch in a GitHub repository",
76
"inputSchema": {
7+
"type": "object",
8+
"required": [
9+
"owner",
10+
"repo",
11+
"branch"
12+
],
813
"properties": {
914
"branch": {
10-
"description": "Name for new branch",
11-
"type": "string"
15+
"type": "string",
16+
"description": "Name for new branch"
1217
},
1318
"from_branch": {
14-
"description": "Source branch (defaults to repo default)",
15-
"type": "string"
19+
"type": "string",
20+
"description": "Source branch (defaults to repo default)"
1621
},
1722
"owner": {
18-
"description": "Repository owner",
19-
"type": "string"
23+
"type": "string",
24+
"description": "Repository owner"
2025
},
2126
"repo": {
22-
"description": "Repository name",
23-
"type": "string"
27+
"type": "string",
28+
"description": "Repository name"
2429
}
25-
},
26-
"required": [
27-
"owner",
28-
"repo",
29-
"branch"
30-
],
31-
"type": "object"
30+
}
3231
},
3332
"name": "create_branch"
3433
}
Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,48 @@
11
{
22
"annotations": {
3-
"title": "Create or update file",
4-
"readOnlyHint": false
3+
"title": "Create or update file"
54
},
65
"description": "Create or update a single file in a GitHub repository. If updating, you must provide the SHA of the file you want to update. Use this tool to create or update a file in a GitHub repository remotely; do not use it for local file operations.",
76
"inputSchema": {
7+
"type": "object",
8+
"required": [
9+
"owner",
10+
"repo",
11+
"path",
12+
"content",
13+
"message",
14+
"branch"
15+
],
816
"properties": {
917
"branch": {
10-
"description": "Branch to create/update the file in",
11-
"type": "string"
18+
"type": "string",
19+
"description": "Branch to create/update the file in"
1220
},
1321
"content": {
14-
"description": "Content of the file",
15-
"type": "string"
22+
"type": "string",
23+
"description": "Content of the file"
1624
},
1725
"message": {
18-
"description": "Commit message",
19-
"type": "string"
26+
"type": "string",
27+
"description": "Commit message"
2028
},
2129
"owner": {
22-
"description": "Repository owner (username or organization)",
23-
"type": "string"
30+
"type": "string",
31+
"description": "Repository owner (username or organization)"
2432
},
2533
"path": {
26-
"description": "Path where to create/update the file",
27-
"type": "string"
34+
"type": "string",
35+
"description": "Path where to create/update the file"
2836
},
2937
"repo": {
30-
"description": "Repository name",
31-
"type": "string"
38+
"type": "string",
39+
"description": "Repository name"
3240
},
3341
"sha": {
34-
"description": "Required if updating an existing file. The blob SHA of the file being replaced.",
35-
"type": "string"
42+
"type": "string",
43+
"description": "Required if updating an existing file. The blob SHA of the file being replaced."
3644
}
37-
},
38-
"required": [
39-
"owner",
40-
"repo",
41-
"path",
42-
"content",
43-
"message",
44-
"branch"
45-
],
46-
"type": "object"
45+
}
4746
},
4847
"name": "create_or_update_file"
4948
}
Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
{
22
"annotations": {
3-
"title": "Create repository",
4-
"readOnlyHint": false
3+
"title": "Create repository"
54
},
65
"description": "Create a new GitHub repository in your account or specified organization",
76
"inputSchema": {
7+
"type": "object",
8+
"required": [
9+
"name"
10+
],
811
"properties": {
912
"autoInit": {
10-
"description": "Initialize with README",
11-
"type": "boolean"
13+
"type": "boolean",
14+
"description": "Initialize with README"
1215
},
1316
"description": {
14-
"description": "Repository description",
15-
"type": "string"
17+
"type": "string",
18+
"description": "Repository description"
1619
},
1720
"name": {
18-
"description": "Repository name",
19-
"type": "string"
21+
"type": "string",
22+
"description": "Repository name"
2023
},
2124
"organization": {
22-
"description": "Organization to create the repository in (omit to create in your personal account)",
23-
"type": "string"
25+
"type": "string",
26+
"description": "Organization to create the repository in (omit to create in your personal account)"
2427
},
2528
"private": {
26-
"description": "Whether repo should be private",
27-
"type": "boolean"
29+
"type": "boolean",
30+
"description": "Whether repo should be private"
2831
}
29-
},
30-
"required": [
31-
"name"
32-
],
33-
"type": "object"
32+
}
3433
},
3534
"name": "create_repository"
3635
}
Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,40 @@
11
{
22
"annotations": {
3-
"title": "Delete file",
4-
"readOnlyHint": false,
5-
"destructiveHint": true
3+
"destructiveHint": true,
4+
"title": "Delete file"
65
},
76
"description": "Delete a file from a GitHub repository",
87
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"owner",
11+
"repo",
12+
"path",
13+
"message",
14+
"branch"
15+
],
916
"properties": {
1017
"branch": {
11-
"description": "Branch to delete the file from",
12-
"type": "string"
18+
"type": "string",
19+
"description": "Branch to delete the file from"
1320
},
1421
"message": {
15-
"description": "Commit message",
16-
"type": "string"
22+
"type": "string",
23+
"description": "Commit message"
1724
},
1825
"owner": {
19-
"description": "Repository owner (username or organization)",
20-
"type": "string"
26+
"type": "string",
27+
"description": "Repository owner (username or organization)"
2128
},
2229
"path": {
23-
"description": "Path to the file to delete",
24-
"type": "string"
30+
"type": "string",
31+
"description": "Path to the file to delete"
2532
},
2633
"repo": {
27-
"description": "Repository name",
28-
"type": "string"
34+
"type": "string",
35+
"description": "Repository name"
2936
}
30-
},
31-
"required": [
32-
"owner",
33-
"repo",
34-
"path",
35-
"message",
36-
"branch"
37-
],
38-
"type": "object"
37+
}
3938
},
4039
"name": "delete_file"
4140
}
Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
{
22
"annotations": {
3-
"title": "Fork repository",
4-
"readOnlyHint": false
3+
"title": "Fork repository"
54
},
65
"description": "Fork a GitHub repository to your account or specified organization",
76
"inputSchema": {
7+
"type": "object",
8+
"required": [
9+
"owner",
10+
"repo"
11+
],
812
"properties": {
913
"organization": {
10-
"description": "Organization to fork to",
11-
"type": "string"
14+
"type": "string",
15+
"description": "Organization to fork to"
1216
},
1317
"owner": {
14-
"description": "Repository owner",
15-
"type": "string"
18+
"type": "string",
19+
"description": "Repository owner"
1620
},
1721
"repo": {
18-
"description": "Repository name",
19-
"type": "string"
22+
"type": "string",
23+
"description": "Repository name"
2024
}
21-
},
22-
"required": [
23-
"owner",
24-
"repo"
25-
],
26-
"type": "object"
25+
}
2726
},
2827
"name": "fork_repository"
2928
}
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
{
22
"annotations": {
3-
"title": "Get commit details",
4-
"readOnlyHint": true
3+
"readOnlyHint": true,
4+
"title": "Get commit details"
55
},
66
"description": "Get details for a commit from a GitHub repository",
77
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"owner",
11+
"repo",
12+
"sha"
13+
],
814
"properties": {
915
"include_diff": {
10-
"default": true,
16+
"type": "boolean",
1117
"description": "Whether to include file diffs and stats in the response. Default is true.",
12-
"type": "boolean"
18+
"default": true
1319
},
1420
"owner": {
15-
"description": "Repository owner",
16-
"type": "string"
21+
"type": "string",
22+
"description": "Repository owner"
1723
},
1824
"page": {
25+
"type": "number",
1926
"description": "Page number for pagination (min 1)",
20-
"minimum": 1,
21-
"type": "number"
27+
"minimum": 1
2228
},
2329
"perPage": {
30+
"type": "number",
2431
"description": "Results per page for pagination (min 1, max 100)",
25-
"maximum": 100,
2632
"minimum": 1,
27-
"type": "number"
33+
"maximum": 100
2834
},
2935
"repo": {
30-
"description": "Repository name",
31-
"type": "string"
36+
"type": "string",
37+
"description": "Repository name"
3238
},
3339
"sha": {
34-
"description": "Commit SHA, branch name, or tag name",
35-
"type": "string"
40+
"type": "string",
41+
"description": "Commit SHA, branch name, or tag name"
3642
}
37-
},
38-
"required": [
39-
"owner",
40-
"repo",
41-
"sha"
42-
],
43-
"type": "object"
43+
}
4444
},
4545
"name": "get_commit"
4646
}

0 commit comments

Comments
 (0)