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
Add repo-scoped support to list_issue_types tool (#2692)
* Add repo-scoped support to list_issue_types tool
* Render multi-scope tools as "any of" in generated docs
* Clarify issue type field description for repo-scoped list_issue_types
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -885,12 +885,13 @@ The following sets of tools are available:
885
885
-`state`: New state (string, optional)
886
886
-`state_reason`: Reason for the state change. Ignored unless state is changed. (string, optional)
887
887
-`title`: Issue title (string, optional)
888
-
-`type`: Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter. (string, optional)
888
+
-`type`: Type of this issue. Only use if issue types are enabled for this repository. Use list_issue_types tool to get valid type values for this repository or its owner organization. If the repository doesn't support issue types, omit this parameter. (string, optional)
889
889
890
890
-**list_issue_types** - List available issue types
-`owner`: The account owner of the repository or organization. (string, required)
894
+
-`repo`: The name of the repository. When provided, returns issue types for this specific repository. When omitted, returns org-level issue types directly. (string, optional)
-`state_reason`: Reason for the state change. Ignored unless state is changed. (string, optional)
74
74
-`title`: Issue title (string, optional)
75
-
-`type`: Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter. (string, optional)
75
+
-`type`: Type of this issue. Only use if issue types are enabled for this repository. Use list_issue_types tool to get valid type values for this repository or its owner organization. If the repository doesn't support issue types, omit this parameter. (string, optional)
-`state_reason`: Reason for the state change. Ignored unless state is changed. (string, optional)
118
118
-`title`: Issue title (string, optional)
119
-
-`type`: Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter. (string, optional)
119
+
-`type`: Type of this issue. Only use if issue types are enabled for this repository. Use list_issue_types tool to get valid type values for this repository or its owner organization. If the repository doesn't support issue types, omit this parameter. (string, optional)
-`owner`: The account owner of the repository or organization. The name is not case sensitive. (string, required)
125
125
-`repo`: The name of the repository. When provided, returns fields for this specific repository (inherited from its organization). When omitted, returns org-level fields directly. (string, optional)
Copy file name to clipboardExpand all lines: docs/insiders-features.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ The list below is generated from the Go source. It covers tool **inventory and s
66
66
-`state`: New state (string, optional)
67
67
-`state_reason`: Reason for the state change. Ignored unless state is changed. (string, optional)
68
68
-`title`: Issue title (string, optional)
69
-
-`type`: Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter. (string, optional)
69
+
-`type`: Type of this issue. Only use if issue types are enabled for this repository. Use list_issue_types tool to get valid type values for this repository or its owner organization. If the repository doesn't support issue types, omit this parameter. (string, optional)
70
70
71
71
-**ui_get** - Get UI data
72
72
-**Required OAuth Scopes**: `repo`, `read:org`
@@ -110,10 +110,10 @@ The list below is generated from the Go source. It covers tool **inventory and s
110
110
-`state`: New state (string, optional)
111
111
-`state_reason`: Reason for the state change. Ignored unless state is changed. (string, optional)
112
112
-`title`: Issue title (string, optional)
113
-
-`type`: Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter. (string, optional)
113
+
-`type`: Type of this issue. Only use if issue types are enabled for this repository. Use list_issue_types tool to get valid type values for this repository or its owner organization. If the repository doesn't support issue types, omit this parameter. (string, optional)
-`owner`: The account owner of the repository or organization. The name is not case sensitive. (string, required)
119
119
-`repo`: The name of the repository. When provided, returns fields for this specific repository (inherited from its organization). When omitted, returns org-level fields directly. (string, optional)
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
@@ -86,7 +86,7 @@
86
86
"type": "string"
87
87
},
88
88
"type": {
89
-
"description": "Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter.",
89
+
"description": "Type of this issue. Only use if issue types are enabled for this repository. Use list_issue_types tool to get valid type values for this repository or its owner organization. If the repository doesn't support issue types, omit this parameter.",
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/issue_write_ff_remote_mcp_issue_fields.snap
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@
122
122
"type": "string"
123
123
},
124
124
"type": {
125
-
"description": "Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter.",
125
+
"description": "Type of this issue. Only use if issue types are enabled for this repository. Use list_issue_types tool to get valid type values for this repository or its owner organization. If the repository doesn't support issue types, omit this parameter.",
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/list_issue_types.snap
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,15 @@
3
3
"readOnlyHint": true,
4
4
"title": "List available issue types"
5
5
},
6
-
"description": "List supported issue types for repository owner (organization).",
6
+
"description": "List supported issue types for a repository or its owner organization. When repo is omitted, returns org-level issue types directly.",
7
7
"inputSchema": {
8
8
"properties": {
9
9
"owner": {
10
-
"description": "The organization owner of the repository",
10
+
"description": "The account owner of the repository or organization.",
11
+
"type": "string"
12
+
},
13
+
"repo": {
14
+
"description": "The name of the repository. When provided, returns issue types for this specific repository. When omitted, returns org-level issue types directly.",
// ListIssueTypes creates a tool to list defined issue types for an organization. This can be used to understand supported issue type values for creating or updating issues.
1070
+
// ListIssueTypes creates a tool to list defined issue types for an organization or repository.
1071
+
// This can be used to understand supported issue type values for creating or updating issues.
Description: t("TOOL_LIST_ISSUE_TYPES_FOR_ORG", "List supported issue types for repository owner (organization)."),
1077
+
Description: t("TOOL_LIST_ISSUE_TYPES_FOR_ORG", "List supported issue types for a repository or its owner organization. When repo is omitted, returns org-level issue types directly."),
1077
1078
Annotations: &mcp.ToolAnnotations{
1078
1079
Title: t("TOOL_LIST_ISSUE_TYPES_USER_TITLE", "List available issue types"),
Description: "The organization owner of the repository",
1087
+
Description: "The account owner of the repository or organization.",
1088
+
},
1089
+
"repo": {
1090
+
Type: "string",
1091
+
Description: "The name of the repository. When provided, returns issue types for this specific repository. When omitted, returns org-level issue types directly.",
returnutils.NewToolResultErrorFromErr("failed to list issue types", err), nil, nil
@@ -1890,7 +1931,7 @@ Options are:
1890
1931
},
1891
1932
"type": {
1892
1933
Type: "string",
1893
-
Description: "Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter.",
1934
+
Description: "Type of this issue. Only use if issue types are enabled for this repository. Use list_issue_types tool to get valid type values for this repository or its owner organization. If the repository doesn't support issue types, omit this parameter.",
1894
1935
},
1895
1936
"state": {
1896
1937
Type: "string",
@@ -2182,7 +2223,7 @@ Options are:
2182
2223
},
2183
2224
"type": {
2184
2225
Type: "string",
2185
-
Description: "Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter.",
2226
+
Description: "Type of this issue. Only use if issue types are enabled for this repository. Use list_issue_types tool to get valid type values for this repository or its owner organization. If the repository doesn't support issue types, omit this parameter.",
0 commit comments