Skip to content

Commit 74f110d

Browse files
committed
First round
1 parent 304f29a commit 74f110d

File tree

8 files changed

+35
-21
lines changed

8 files changed

+35
-21
lines changed

pkg/github/__toolsnaps__/add_issue_comment.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"annotations": {
33
"title": "Add comment to issue",
4-
"readOnlyHint": false
4+
"readOnlyHint": false,
5+
"openWorldHint": true
56
},
67
"description": "Add a comment to a specific issue in a GitHub repository. Use this tool to add comments to pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add review comments.",
78
"inputSchema": {

pkg/github/__toolsnaps__/issue_read.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"annotations": {
33
"title": "Get issue details",
4-
"readOnlyHint": true
4+
"readOnlyHint": true,
5+
"openWorldHint": true
56
},
67
"description": "Get information about a specific issue in a GitHub repository.",
78
"inputSchema": {

pkg/github/__toolsnaps__/issue_write.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"annotations": {
33
"title": "Create or update issue.",
4-
"readOnlyHint": false
4+
"readOnlyHint": false,
5+
"openWorldHint": true
56
},
67
"description": "Create a new or update an existing issue in a GitHub repository.",
78
"inputSchema": {

pkg/github/__toolsnaps__/list_issue_types.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"annotations": {
33
"title": "List available issue types",
4-
"readOnlyHint": true
4+
"readOnlyHint": true,
5+
"openWorldHint": true
56
},
67
"description": "List supported issue types for repository owner (organization).",
78
"inputSchema": {

pkg/github/__toolsnaps__/list_issues.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"annotations": {
33
"title": "List issues",
4-
"readOnlyHint": true
4+
"readOnlyHint": true,
5+
"openWorldHint": true
56
},
67
"description": "List issues in a GitHub repository. For pagination, use the 'endCursor' from the previous response's 'pageInfo' in the 'after' parameter.",
78
"inputSchema": {

pkg/github/__toolsnaps__/search_issues.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"annotations": {
33
"title": "Search issues",
4-
"readOnlyHint": true
4+
"readOnlyHint": true,
5+
"openWorldHint": true
56
},
67
"description": "Search for issues in GitHub repositories using issues search syntax already scoped to is:issue",
78
"inputSchema": {

pkg/github/__toolsnaps__/sub_issue_write.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"annotations": {
33
"title": "Change sub-issue",
4-
"readOnlyHint": false
4+
"readOnlyHint": false,
5+
"openWorldHint": true
56
},
67
"description": "Add a sub-issue to a parent issue in a GitHub repository.",
78
"inputSchema": {

pkg/github/issues.go

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,9 @@ func IssueRead(getClient GetClientFn, getGQLClient GetGQLClientFn, t translation
231231
return mcp.NewTool("issue_read",
232232
mcp.WithDescription(t("TOOL_ISSUE_READ_DESCRIPTION", "Get information about a specific issue in a GitHub repository.")),
233233
mcp.WithToolAnnotation(mcp.ToolAnnotation{
234-
Title: t("TOOL_ISSUE_READ_USER_TITLE", "Get issue details"),
235-
ReadOnlyHint: ToBoolPtr(true),
234+
Title: t("TOOL_ISSUE_READ_USER_TITLE", "Get issue details"),
235+
ReadOnlyHint: ToBoolPtr(true),
236+
OpenWorldHint: ToBoolPtr(true),
236237
}),
237238
mcp.WithString("method",
238239
mcp.Required(),
@@ -466,8 +467,9 @@ func ListIssueTypes(getClient GetClientFn, t translations.TranslationHelperFunc)
466467
return mcp.NewTool("list_issue_types",
467468
mcp.WithDescription(t("TOOL_LIST_ISSUE_TYPES_FOR_ORG", "List supported issue types for repository owner (organization).")),
468469
mcp.WithToolAnnotation(mcp.ToolAnnotation{
469-
Title: t("TOOL_LIST_ISSUE_TYPES_USER_TITLE", "List available issue types"),
470-
ReadOnlyHint: ToBoolPtr(true),
470+
Title: t("TOOL_LIST_ISSUE_TYPES_USER_TITLE", "List available issue types"),
471+
ReadOnlyHint: ToBoolPtr(true),
472+
OpenWorldHint: ToBoolPtr(true),
471473
}),
472474
mcp.WithString("owner",
473475
mcp.Required(),
@@ -512,8 +514,9 @@ func AddIssueComment(getClient GetClientFn, t translations.TranslationHelperFunc
512514
return mcp.NewTool("add_issue_comment",
513515
mcp.WithDescription(t("TOOL_ADD_ISSUE_COMMENT_DESCRIPTION", "Add a comment to a specific issue in a GitHub repository. Use this tool to add comments to pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add review comments.")),
514516
mcp.WithToolAnnotation(mcp.ToolAnnotation{
515-
Title: t("TOOL_ADD_ISSUE_COMMENT_USER_TITLE", "Add comment to issue"),
516-
ReadOnlyHint: ToBoolPtr(false),
517+
Title: t("TOOL_ADD_ISSUE_COMMENT_USER_TITLE", "Add comment to issue"),
518+
ReadOnlyHint: ToBoolPtr(false),
519+
OpenWorldHint: ToBoolPtr(true),
517520
}),
518521
mcp.WithString("owner",
519522
mcp.Required(),
@@ -586,8 +589,9 @@ func SubIssueWrite(getClient GetClientFn, t translations.TranslationHelperFunc)
586589
return mcp.NewTool("sub_issue_write",
587590
mcp.WithDescription(t("TOOL_SUB_ISSUE_WRITE_DESCRIPTION", "Add a sub-issue to a parent issue in a GitHub repository.")),
588591
mcp.WithToolAnnotation(mcp.ToolAnnotation{
589-
Title: t("TOOL_SUB_ISSUE_WRITE_USER_TITLE", "Change sub-issue"),
590-
ReadOnlyHint: ToBoolPtr(false),
592+
Title: t("TOOL_SUB_ISSUE_WRITE_USER_TITLE", "Change sub-issue"),
593+
ReadOnlyHint: ToBoolPtr(false),
594+
OpenWorldHint: ToBoolPtr(true),
591595
}),
592596
mcp.WithString("method",
593597
mcp.Required(),
@@ -798,8 +802,9 @@ func SearchIssues(getClient GetClientFn, t translations.TranslationHelperFunc) (
798802
return mcp.NewTool("search_issues",
799803
mcp.WithDescription(t("TOOL_SEARCH_ISSUES_DESCRIPTION", "Search for issues in GitHub repositories using issues search syntax already scoped to is:issue")),
800804
mcp.WithToolAnnotation(mcp.ToolAnnotation{
801-
Title: t("TOOL_SEARCH_ISSUES_USER_TITLE", "Search issues"),
802-
ReadOnlyHint: ToBoolPtr(true),
805+
Title: t("TOOL_SEARCH_ISSUES_USER_TITLE", "Search issues"),
806+
ReadOnlyHint: ToBoolPtr(true),
807+
OpenWorldHint: ToBoolPtr(true),
803808
}),
804809
mcp.WithString("query",
805810
mcp.Required(),
@@ -843,8 +848,9 @@ func IssueWrite(getClient GetClientFn, getGQLClient GetGQLClientFn, t translatio
843848
return mcp.NewTool("issue_write",
844849
mcp.WithDescription(t("TOOL_ISSUE_WRITE_DESCRIPTION", "Create a new or update an existing issue in a GitHub repository.")),
845850
mcp.WithToolAnnotation(mcp.ToolAnnotation{
846-
Title: t("TOOL_ISSUE_WRITE_USER_TITLE", "Create or update issue."),
847-
ReadOnlyHint: ToBoolPtr(false),
851+
Title: t("TOOL_ISSUE_WRITE_USER_TITLE", "Create or update issue."),
852+
ReadOnlyHint: ToBoolPtr(false),
853+
OpenWorldHint: ToBoolPtr(true),
848854
}),
849855
mcp.WithString("method",
850856
mcp.Required(),
@@ -1183,8 +1189,9 @@ func ListIssues(getGQLClient GetGQLClientFn, t translations.TranslationHelperFun
11831189
return mcp.NewTool("list_issues",
11841190
mcp.WithDescription(t("TOOL_LIST_ISSUES_DESCRIPTION", "List issues in a GitHub repository. For pagination, use the 'endCursor' from the previous response's 'pageInfo' in the 'after' parameter.")),
11851191
mcp.WithToolAnnotation(mcp.ToolAnnotation{
1186-
Title: t("TOOL_LIST_ISSUES_USER_TITLE", "List issues"),
1187-
ReadOnlyHint: ToBoolPtr(true),
1192+
Title: t("TOOL_LIST_ISSUES_USER_TITLE", "List issues"),
1193+
ReadOnlyHint: ToBoolPtr(true),
1194+
OpenWorldHint: ToBoolPtr(true),
11881195
}),
11891196
mcp.WithString("owner",
11901197
mcp.Required(),

0 commit comments

Comments
 (0)