diff --git a/pkg/github/pullrequests.go b/pkg/github/pullrequests.go index e59182577..fc77caded 100644 --- a/pkg/github/pullrequests.go +++ b/pkg/github/pullrequests.go @@ -591,7 +591,9 @@ func createPullRequestReview(client *github.Client, t translations.TranslationHe mcp.WithArray("comments", mcp.Items( map[string]interface{}{ - "type": "object", + "type": "object", + "additionalProperties": false, + "required": []string{"path", "position", "body"}, "properties": map[string]interface{}{ "path": map[string]interface{}{ "type": "string", diff --git a/pkg/github/repositories.go b/pkg/github/repositories.go index 5a4bef0f1..e4302b889 100644 --- a/pkg/github/repositories.go +++ b/pkg/github/repositories.go @@ -488,7 +488,9 @@ func pushFiles(client *github.Client, t translations.TranslationHelperFunc) (too mcp.Required(), mcp.Items( map[string]interface{}{ - "type": "object", + "type": "object", + "additionalProperties": false, + "required": []string{"path", "content"}, "properties": map[string]interface{}{ "path": map[string]interface{}{ "type": "string",