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."),
1162
+
Name: "issue_write",
1163
+
Description: t("TOOL_ISSUE_WRITE_DESCRIPTION", `Create a new or update an existing issue in a GitHub repository.
1164
+
1165
+
When show_ui is true, an interactive form is displayed for the user to fill in issue details. Use show_ui when:
1166
+
- Creating a new issue and you want user input on the details
1167
+
- The user hasn't specified all required fields (title, body, etc.)
1168
+
- Interactive feedback would be valuable
1169
+
1170
+
When show_ui is false or omitted, the issue is created/updated directly with the provided parameters.`),
1161
1171
Annotations: &mcp.ToolAnnotations{
1162
1172
Title: t("TOOL_ISSUE_WRITE_USER_TITLE", "Create or update issue."),
1163
1173
ReadOnlyHint: false,
1164
1174
},
1175
+
// MCP Apps UI metadata - links this tool to its UI resource
1176
+
Meta: mcp.Meta{
1177
+
"ui": map[string]any{
1178
+
"resourceUri": IssueWriteUIResourceURI,
1179
+
"visibility": []string{"model", "app"},
1180
+
},
1181
+
},
1165
1182
InputSchema: &jsonschema.Schema{
1166
1183
Type: "object",
1167
1184
Properties: map[string]*jsonschema.Schema{
1185
+
"show_ui": {
1186
+
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.",
1188
+
},
1168
1189
"method": {
1169
1190
Type: "string",
1170
1191
Description: `Write operation to perform on a single issue.
returnutils.NewToolResultError("issue_number is required for update method"), nil, nil
1287
+
}
1288
+
returnutils.NewToolResultText(fmt.Sprintf("Ready to update issue #%d in %s/%s. The interactive form will be displayed.", issueNumber, owner, repo)), nil, nil
1289
+
}
1290
+
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