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
"description": "Create a new or update an existing issue in a GitHub repository.",
14
+
"description": "Create a new or update an existing issue in a GitHub repository.\n\nWhen show_ui is true, an interactive form is displayed for the user to fill in issue details. Use show_ui when:\n- Creating a new issue and you want user input on the details\n- The user hasn't specified all required fields (title, body, etc.)\n- Interactive feedback would be valuable\n\nWhen show_ui is false or omitted, the issue is created/updated directly with the provided parameters.",
6
15
"inputSchema": {
7
16
"properties": {
8
17
"assignees": {
@@ -51,6 +60,10 @@
51
60
"description": "Repository name",
52
61
"type": "string"
53
62
},
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.",
Description: t("TOOL_ISSUE_WRITE_DESCRIPTION", "Create a new or update an existing issue in a GitHub repository."),
1180
+
Name: "issue_write",
1181
+
Description: t("TOOL_ISSUE_WRITE_DESCRIPTION", `Create a new or update an existing issue in a GitHub repository.
1182
+
1183
+
When show_ui is true, an interactive form is displayed for the user to fill in issue details. Use show_ui when:
1184
+
- Creating a new issue and you want user input on the details
1185
+
- The user hasn't specified all required fields (title, body, etc.)
1186
+
- Interactive feedback would be valuable
1187
+
1188
+
When show_ui is false or omitted, the issue is created/updated directly with the provided parameters.`),
1179
1189
Annotations: &mcp.ToolAnnotations{
1180
1190
Title: t("TOOL_ISSUE_WRITE_USER_TITLE", "Create or update issue."),
1181
1191
ReadOnlyHint: false,
1182
1192
},
1193
+
// MCP Apps UI metadata - links this tool to its UI resource
1194
+
Meta: mcp.Meta{
1195
+
"ui": map[string]any{
1196
+
"resourceUri": IssueWriteUIResourceURI,
1197
+
"visibility": []string{"model", "app"},
1198
+
},
1199
+
},
1183
1200
InputSchema: &jsonschema.Schema{
1184
1201
Type: "object",
1185
1202
Properties: map[string]*jsonschema.Schema{
1203
+
"show_ui": {
1204
+
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.",
1206
+
},
1186
1207
"method": {
1187
1208
Type: "string",
1188
1209
Description: `Write operation to perform on a single issue.
returnutils.NewToolResultError("issue_number is required for update method"), nil, nil
1305
+
}
1306
+
returnutils.NewToolResultText(fmt.Sprintf("Ready to update issue #%d in %s/%s. The interactive form will be displayed.", issueNumber, owner, repo)), nil, nil
1307
+
}
1308
+
returnutils.NewToolResultText(fmt.Sprintf("Ready to create an issue in %s/%s. The interactive form will be displayed.", owner, repo)), nil, nil
0 commit comments