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
@@ -1190,7 +1190,6 @@ When show_ui is false or omitted, the issue is created/updated directly with the
1190
1190
Title: t("TOOL_ISSUE_WRITE_USER_TITLE", "Create or update issue."),
1191
1191
ReadOnlyHint: false,
1192
1192
},
1193
-
// MCP Apps UI metadata - links this tool to its UI resource
1194
1193
Meta: mcp.Meta{
1195
1194
"ui": map[string]any{
1196
1195
"resourceUri": IssueWriteUIResourceURI,
@@ -1202,7 +1201,7 @@ When show_ui is false or omitted, the issue is created/updated directly with the
1202
1201
Properties: map[string]*jsonschema.Schema{
1203
1202
"show_ui": {
1204
1203
Type: "boolean",
1205
-
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.",
1204
+
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."),
496
+
Name: "create_pull_request",
497
+
Description: t("TOOL_CREATE_PULL_REQUEST_DESCRIPTION", `Create a new pull request in a GitHub repository.
498
+
499
+
When show_ui is true, an interactive form is displayed for the user to fill in PR details. Use show_ui when:
500
+
- Creating a new PR and you want user input on the details
501
+
- The user hasn't specified all required fields (title, head, base, etc.)
502
+
- Interactive feedback would be valuable (branch selection, reviewers, labels)
503
+
504
+
When show_ui is false or omitted, the PR is created directly with the provided parameters.`),
534
505
Annotations: &mcp.ToolAnnotations{
535
506
Title: t("TOOL_CREATE_PULL_REQUEST_USER_TITLE", "Open new pull request"),
536
507
ReadOnlyHint: false,
537
508
},
538
-
InputSchema: schema,
509
+
Meta: mcp.Meta{
510
+
"ui": map[string]any{
511
+
"resourceUri": PullRequestWriteUIResourceURI,
512
+
"visibility": []string{"model", "app"},
513
+
},
514
+
},
515
+
InputSchema: &jsonschema.Schema{
516
+
Type: "object",
517
+
Properties: map[string]*jsonschema.Schema{
518
+
"show_ui": {
519
+
Type: "boolean",
520
+
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