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: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -762,8 +762,9 @@ The following sets of tools are available (all are on by default):
762
762
-`query`: Filter projects by a search query (matches title and description) (string, optional)
763
763
764
764
-**update_project_item** - Update project item
765
+
-`field_id`: The unique identifier of the project field to be updated. (number, required)
766
+
-`field_value`: The new value for the field: For text, number, and date fields, provide the new value directly. For single select and iteration fields, provide the ID of the option or iteration. To clear the field, set this to null. Example: {"id": 123456, "value": "Done"} (object, required)
765
767
-`item_id`: The unique identifier of the project item. This is not the issue or pull request ID. (number, required)
766
-
-`new_field`: Object consisting of the ID of the project field to update and the new value for the field. To clear the field, set "value" to null. Example: {"id": 123456, "value": "New Value"} (object, required)
767
768
-`owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
768
769
-`owner_type`: Owner type (string, required)
769
770
-`project_number`: The project's number. (number, required)
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/update_project_item.snap
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,19 @@
6
6
"description": "Update a specific Project item for a user or org",
7
7
"inputSchema": {
8
8
"properties": {
9
-
"item_id": {
10
-
"description": "The unique identifier of the project item. This is not the issue or pull request ID.",
9
+
"field_id": {
10
+
"description": "The unique identifier of the project field to be updated.",
11
11
"type": "number"
12
12
},
13
-
"new_field": {
14
-
"description": "Object consisting of the ID of the project field to update and the new value for the field. To clear the field, set \"value\" to null. Example: {\"id\": 123456, \"value\": \"New Value\"}",
13
+
"field_value": {
14
+
"description": "The new value for the field: For text, number, and date fields, provide the new value directly. For single select and iteration fields, provide the ID of the option or iteration. To clear the field, set this to null. Example: {\"id\": 123456, \"value\": \"Done\"}",
15
15
"properties": {},
16
16
"type": "object"
17
17
},
18
+
"item_id": {
19
+
"description": "The unique identifier of the project item. This is not the issue or pull request ID.",
20
+
"type": "number"
21
+
},
18
22
"owner": {
19
23
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive.",
Copy file name to clipboardExpand all lines: pkg/github/projects.go
+44-33Lines changed: 44 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -691,9 +691,13 @@ func UpdateProjectItem(getClient GetClientFn, t translations.TranslationHelperFu
691
691
mcp.Required(),
692
692
mcp.Description("The unique identifier of the project item. This is not the issue or pull request ID."),
693
693
),
694
-
mcp.WithObject("new_field",
694
+
mcp.WithNumber("field_id",
695
+
mcp.Required(),
696
+
mcp.Description("The unique identifier of the project field to be updated."),
697
+
),
698
+
mcp.WithObject("field_value",
695
699
mcp.Required(),
696
-
mcp.Description("Object consisting of the ID of the project field to update and the new value for the field. To clear the field, set \"value\" to null. Example: {\"id\": 123456, \"value\": \"New Value\"}"),
700
+
mcp.Description("The new value for the field: For text, number, and date fields, provide the new value directly. For single select and iteration fields, provide the ID of the option or iteration. To clear the field, set this to null. Example: {\"id\": 123456, \"value\": \"Done\"}"),
0 commit comments