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
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -807,12 +807,11 @@ The following sets of tools are available (all are on by default):
807
807
-`query`: Filter projects by a search query (matches title and description) (string, optional)
808
808
809
809
-**update_project_item** - Update project item
810
-
-`field_id`: The unique identifier of the project field to be updated. (number, required)
811
-
-`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: {"field_value": "Done"} (object, required)
812
810
-`item_id`: The unique identifier of the project item. This is not the issue or pull request ID. (number, required)
813
811
-`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)
814
812
-`owner_type`: Owner type (string, required)
815
813
-`project_number`: The project's number. (number, required)
814
+
-`updated_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)
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/update_project_item.snap
+6-11Lines changed: 6 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,6 @@
6
6
"description": "Update a specific Project item for a user or org",
7
7
"inputSchema": {
8
8
"properties": {
9
-
"field_id": {
10
-
"description": "The unique identifier of the project field to be updated.",
11
-
"type": "number"
12
-
},
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: {\"field_value\": \"Done\"}",
15
-
"properties": {},
16
-
"type": "object"
17
-
},
18
9
"item_id": {
19
10
"description": "The unique identifier of the project item. This is not the issue or pull request ID.",
20
11
"type": "number"
@@ -34,15 +25,19 @@
34
25
"project_number": {
35
26
"description": "The project's number.",
36
27
"type": "number"
28
+
},
29
+
"updated_field": {
30
+
"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\"}",
Copy file name to clipboardExpand all lines: pkg/github/projects.go
+31-42Lines changed: 31 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -691,13 +691,9 @@ 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.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",
694
+
mcp.WithObject("updated_field",
699
695
mcp.Required(),
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: {\"field_value\": \"Done\"}"),
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\"}"),
0 commit comments