Skip to content

Commit 2631441

Browse files
committed
pr feedback
1 parent 53c03b2 commit 2631441

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

pkg/github/projects.go

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ func ListProjectItems(getClient GetClientFn, t translations.TranslationHelperFun
404404
mcp.Description("Number of results per page (max 100, default: 30)"),
405405
),
406406
mcp.WithArray("fields",
407-
mcp.Description("Specific list of field IDs to include in the response (e.g. [102589, 985201, 169875]). If not provided, only the title field is included."),
407+
mcp.Description("Specific list of field IDs to include in the response (e.g. [\"102589\", \"985201\", \"169875\"]). If not provided, only the title field is included."),
408408
mcp.WithStringItems(),
409409
),
410410
), func(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResult, error) {
@@ -514,7 +514,7 @@ func GetProjectItem(getClient GetClientFn, t translations.TranslationHelperFunc)
514514
mcp.Description("The item's ID."),
515515
),
516516
mcp.WithArray("fields",
517-
mcp.Description("Specific list of field IDs to include in the response (e.g. [102589, 985201, 169875]). If not provided, only the title field is included."),
517+
mcp.Description("Specific list of field IDs to include in the response (e.g. [\"102589\", \"985201\", \"169875\"]). If not provided, only the title field is included."),
518518
mcp.WithStringItems(),
519519
),
520520
), func(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResult, error) {
@@ -722,7 +722,7 @@ func UpdateProjectItem(getClient GetClientFn, t translations.TranslationHelperFu
722722
),
723723
mcp.WithObject("updated_field",
724724
mcp.Required(),
725-
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}"),
725+
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\"}"),
726726
),
727727
), func(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResult, error) {
728728
owner, err := RequiredParam[string](req, "owner")
@@ -1117,21 +1117,26 @@ func ManageProjectItemsPrompt(t translations.TranslationHelperFunc) (tool mcp.Pr
11171117
Content: mcp.NewTextContent("**✏️ Step 3: Updating Field Values**\n\n" +
11181118
"Use **update_project_item** with the updated_field parameter. The format varies by field type:\n\n" +
11191119
"**Text fields:**\n" +
1120-
"json\n" +
1121-
"{\"id\": 123456, \"value\": \"Updated text content\"}\n\n\n" +
1120+
"```json\n" +
1121+
"{\"id\": 123456, \"value\": \"Updated text content\"}\n" +
1122+
"```\n\n" +
11221123
"**Single-select fields:**\n" +
1123-
"json\n" +
1124-
"{\"id\": 198354254, \"value\": 18498754}\n\n" +
1124+
"```json\n" +
1125+
"{\"id\": 198354254, \"value\": 18498754}\n" +
1126+
"```\n" +
11251127
"*(Use option ID, not option name)*\n\n" +
11261128
"**Date fields:**\n" +
1127-
"json\n" +
1128-
"{\"id\": 789012, \"value\": \"2024-03-15\"}\n\n\n" +
1129+
"```json\n" +
1130+
"{\"id\": 789012, \"value\": \"2024-03-15\"}\n" +
1131+
"```\n\n" +
11291132
"**Number fields:**\n" +
1130-
"json\n" +
1131-
"{\"id\": 345678, \"value\": 5}\n\n\n" +
1133+
"```json\n" +
1134+
"{\"id\": 345678, \"value\": 5}\n" +
1135+
"```\n\n" +
11321136
"**Clear a field:**\n" +
1133-
"json\n" +
1134-
"{\"id\": 123456, \"value\": null}\n\n\n" +
1137+
"```json\n" +
1138+
"{\"id\": 123456, \"value\": null}\n" +
1139+
"```\n\n" +
11351140
"**⚠️ Important:** Use the internal project item_id (not issue/PR number) for updates!"),
11361141
},
11371142
{

0 commit comments

Comments
 (0)