Repository navigation
Add prompt argument validation canary for SDK upgrades - #17661
Conversation
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the prompt argument forwarding regression coverage and SDK upgrade guidance.
No open issues 🎉
What changed in this PR
Adds regression coverage for prompt argument forwarding through the MCP Gateway, helping detect client-visible behavior changes before upgrading the Go SDK.
Changes:
- Adds a round-trip canary covering omitted, empty, missing-required, and valid prompt arguments.
- Verifies that prompt metadata and forwarded arguments remain intact.
- Updates SDK upgrade guidance to acknowledge v1.9.0 while retaining v1.8.0 pending compatibility review.
| File | Description |
|---|---|
| internal/server/register_prompts_test.go | Adds the prompt argument validation canary. |
| AGENTS.md | Documents the validation change and adds the canary to the upgrade checklist. |
Review effort: Balanced (adaptive)
🔒 mcpg Read-Only Stress — defaultSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE No write leaked through mcpg in this run. Part B is INCONCLUSIVE because all targeted write tools (star_repository, issue_write, add_issue_comment, create_branch, create_or_update_file, create_pull_request) were absent from the 23-tool read-only catalog exposed by the gh-aw
|
SDK v1.9.0 rejects
prompts/getrequests missing required arguments before invoking the gateway handler; pinned v1.8.0 forwards them to the backend.