You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/create_pull_request.snap
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,17 @@
1
1
{
2
+
"_meta": {
3
+
"ui": {
4
+
"resourceUri": "ui://github-mcp-server/pr-write",
5
+
"visibility": [
6
+
"model",
7
+
"app"
8
+
]
9
+
}
10
+
},
2
11
"annotations": {
3
12
"title": "Open new pull request"
4
13
},
5
-
"description": "Create a new pull request in a GitHub repository.",
14
+
"description": "Create a new pull request in a GitHub repository.\n\nWhen show_ui is true, an interactive form is displayed for the user to fill in PR details. Use show_ui when:\n- Creating a new PR and you want user input on the details\n- The user hasn't specified all required fields (title, head, base, etc.)\n- Interactive feedback would be valuable (branch selection, reviewers, labels)\n\nWhen show_ui is false or omitted, the PR is created directly with the provided parameters.",
6
15
"inputSchema": {
7
16
"properties": {
8
17
"base": {
@@ -33,17 +42,18 @@
33
42
"description": "Repository name",
34
43
"type": "string"
35
44
},
45
+
"show_ui": {
46
+
"description": "If true, show an interactive form for the user to fill in PR details. If false or omitted, create the PR directly with the provided parameters.",
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/issue_write.snap
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@
61
61
"type": "string"
62
62
},
63
63
"show_ui": {
64
-
"description": "If true, show an interactive form for the user to fill in issue details. If false or omitted, create/update the issue directly with the provided parameters. Use show_ui when you want user input or when not all fields are specified.",
64
+
"description": "If true, show an interactive form for the user to fill in issue details. If false or omitted, create/update the issue directly with the provided parameters.",
Copy file name to clipboardExpand all lines: pkg/github/issues.go
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1172,7 +1172,6 @@ When show_ui is false or omitted, the issue is created/updated directly with the
1172
1172
Title: t("TOOL_ISSUE_WRITE_USER_TITLE", "Create or update issue."),
1173
1173
ReadOnlyHint: false,
1174
1174
},
1175
-
// MCP Apps UI metadata - links this tool to its UI resource
1176
1175
Meta: mcp.Meta{
1177
1176
"ui": map[string]any{
1178
1177
"resourceUri": IssueWriteUIResourceURI,
@@ -1184,7 +1183,7 @@ When show_ui is false or omitted, the issue is created/updated directly with the
1184
1183
Properties: map[string]*jsonschema.Schema{
1185
1184
"show_ui": {
1186
1185
Type: "boolean",
1187
-
Description: "If true, show an interactive form for the user to fill in issue details. If false or omitted, create/update the issue directly with the provided parameters. Use show_ui when you want user input or when not all fields are specified.",
1186
+
Description: "If true, show an interactive form for the user to fill in issue details. If false or omitted, create/update the issue directly with the provided parameters.",
Description: t("TOOL_CREATE_PULL_REQUEST_DESCRIPTION", "Create a new pull request in a GitHub repository."),
479
+
Name: "create_pull_request",
480
+
Description: t("TOOL_CREATE_PULL_REQUEST_DESCRIPTION", `Create a new pull request in a GitHub repository.
481
+
482
+
When show_ui is true, an interactive form is displayed for the user to fill in PR details. Use show_ui when:
483
+
- Creating a new PR and you want user input on the details
484
+
- The user hasn't specified all required fields (title, head, base, etc.)
485
+
- Interactive feedback would be valuable (branch selection, reviewers, labels)
486
+
487
+
When show_ui is false or omitted, the PR is created directly with the provided parameters.`),
517
488
Annotations: &mcp.ToolAnnotations{
518
489
Title: t("TOOL_CREATE_PULL_REQUEST_USER_TITLE", "Open new pull request"),
519
490
ReadOnlyHint: false,
520
491
},
521
-
InputSchema: schema,
492
+
Meta: mcp.Meta{
493
+
"ui": map[string]any{
494
+
"resourceUri": PullRequestWriteUIResourceURI,
495
+
"visibility": []string{"model", "app"},
496
+
},
497
+
},
498
+
InputSchema: &jsonschema.Schema{
499
+
Type: "object",
500
+
Properties: map[string]*jsonschema.Schema{
501
+
"show_ui": {
502
+
Type: "boolean",
503
+
Description: "If true, show an interactive form for the user to fill in PR details. If false or omitted, create the PR directly with the provided parameters.",
0 commit comments