Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions pkg/github/pullrequests.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,25 @@ func createPullRequestReview(client *github.Client, t translations.TranslationHe
mcp.Description("SHA of commit to review"),
),
mcp.WithArray("comments",
mcp.Items(
map[string]interface{}{
"type": "object",
"properties": map[string]interface{}{
"path": map[string]interface{}{
"type": "string",
"description": "path to the file",
},
"position": map[string]interface{}{
"type": "number",
"description": "line number in the file",
},
"body": map[string]interface{}{
"type": "string",
"description": "comment body",
},
},
},
),
mcp.Description("Line-specific comments array of objects, each object with path (string), position (number), and body (string)"),
),
),
Expand Down
14 changes: 14 additions & 0 deletions pkg/github/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,20 @@ func pushFiles(client *github.Client, t translations.TranslationHelperFunc) (too
),
mcp.WithArray("files",
mcp.Required(),
mcp.Items(
map[string]interface{}{
"type": "object",
"properties": map[string]interface{}{
"path": map[string]interface{}{
"type": "string",
"description": "path to the file",
},
"content": map[string]interface{}{
"type": "string",
"description": "file content",
},
},
}),
mcp.Description("Array of file objects to push, each object with path (string) and content (string)"),
),
mcp.WithString("message",
Expand Down