Skip to content

Commit 9bf905b

Browse files
CopilotomgitsadsLuluBeatson
authored
Migrate labels toolset to modelcontextprotocol/go-sdk (#1433)
* Initial plan * Migrate labels toolset from mark3labs/mcp-go to modelcontextprotocol/go-sdk Co-authored-by: omgitsads <[email protected]> * re-add labels toolset --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: omgitsads <[email protected]> Co-authored-by: LuluBeatson <[email protected]>
1 parent eaf411c commit 9bf905b

File tree

6 files changed

+393
-379
lines changed

6 files changed

+393
-379
lines changed
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
22
"annotations": {
3-
"title": "Get a specific label from a repository.",
4-
"readOnlyHint": true
3+
"readOnlyHint": true,
4+
"title": "Get a specific label from a repository."
55
},
66
"description": "Get a specific label from a repository.",
77
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"owner",
11+
"repo",
12+
"name"
13+
],
814
"properties": {
915
"name": {
10-
"description": "Label name.",
11-
"type": "string"
16+
"type": "string",
17+
"description": "Label name."
1218
},
1319
"owner": {
14-
"description": "Repository owner (username or organization name)",
15-
"type": "string"
20+
"type": "string",
21+
"description": "Repository owner (username or organization name)"
1622
},
1723
"repo": {
18-
"description": "Repository name",
19-
"type": "string"
24+
"type": "string",
25+
"description": "Repository name"
2026
}
21-
},
22-
"required": [
23-
"owner",
24-
"repo",
25-
"name"
26-
],
27-
"type": "object"
27+
}
2828
},
2929
"name": "get_label"
3030
}
Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,51 @@
11
{
22
"annotations": {
3-
"title": "Write operations on repository labels.",
4-
"readOnlyHint": false
3+
"title": "Write operations on repository labels."
54
},
65
"description": "Perform write operations on repository labels. To set labels on issues, use the 'update_issue' tool.",
76
"inputSchema": {
7+
"type": "object",
8+
"required": [
9+
"method",
10+
"owner",
11+
"repo",
12+
"name"
13+
],
814
"properties": {
915
"color": {
10-
"description": "Label color as 6-character hex code without '#' prefix (e.g., 'f29513'). Required for 'create', optional for 'update'.",
11-
"type": "string"
16+
"type": "string",
17+
"description": "Label color as 6-character hex code without '#' prefix (e.g., 'f29513'). Required for 'create', optional for 'update'."
1218
},
1319
"description": {
14-
"description": "Label description text. Optional for 'create' and 'update'.",
15-
"type": "string"
20+
"type": "string",
21+
"description": "Label description text. Optional for 'create' and 'update'."
1622
},
1723
"method": {
24+
"type": "string",
1825
"description": "Operation to perform: 'create', 'update', or 'delete'",
1926
"enum": [
2027
"create",
2128
"update",
2229
"delete"
23-
],
24-
"type": "string"
30+
]
2531
},
2632
"name": {
27-
"description": "Label name - required for all operations",
28-
"type": "string"
33+
"type": "string",
34+
"description": "Label name - required for all operations"
2935
},
3036
"new_name": {
31-
"description": "New name for the label (used only with 'update' method to rename)",
32-
"type": "string"
37+
"type": "string",
38+
"description": "New name for the label (used only with 'update' method to rename)"
3339
},
3440
"owner": {
35-
"description": "Repository owner (username or organization name)",
36-
"type": "string"
41+
"type": "string",
42+
"description": "Repository owner (username or organization name)"
3743
},
3844
"repo": {
39-
"description": "Repository name",
40-
"type": "string"
45+
"type": "string",
46+
"description": "Repository name"
4147
}
42-
},
43-
"required": [
44-
"method",
45-
"owner",
46-
"repo",
47-
"name"
48-
],
49-
"type": "object"
48+
}
5049
},
5150
"name": "label_write"
5251
}
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
22
"annotations": {
3-
"title": "List labels from a repository.",
4-
"readOnlyHint": true
3+
"readOnlyHint": true,
4+
"title": "List labels from a repository."
55
},
66
"description": "List labels from a repository",
77
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"owner",
11+
"repo"
12+
],
813
"properties": {
914
"owner": {
10-
"description": "Repository owner (username or organization name) - required for all operations",
11-
"type": "string"
15+
"type": "string",
16+
"description": "Repository owner (username or organization name) - required for all operations"
1217
},
1318
"repo": {
14-
"description": "Repository name - required for all operations",
15-
"type": "string"
19+
"type": "string",
20+
"description": "Repository name - required for all operations"
1621
}
17-
},
18-
"required": [
19-
"owner",
20-
"repo"
21-
],
22-
"type": "object"
22+
}
2323
},
2424
"name": "list_label"
2525
}

0 commit comments

Comments
 (0)