| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Fixes omitted tool arguments by normalizing absent payloads to {} while preserving validation failures.
Changes:
| File | Description |
|---|---|
| pkg/inventory/server_tool.go | Normalizes omitted arguments and centralizes errors. |
| pkg/inventory/server_tool_test.go | Adds table-driven argument handling tests. |
| pkg/github/context_tools_test.go | Verifies get_me accepts omitted arguments. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
Normalize missing or zero-length tool arguments to an empty object while preserving invalid JSON and required-parameter validation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Summary
Rationale
The MCP 2026-07-28 schema makes CallToolRequestParams.arguments optional, but constrains it to an object when present. The shared wrapper now supplies {} only when the raw argument bytes are absent. It deliberately does not handle a missing params object, leaving the go-sdk protocol boundary to reject that required field.
Validation
Fixes #2587
This independently authored change supersedes duplicate attempts #2632, #2680, and #2689. No commits were copied or cherry-picked from those branches; this branch starts at origin/main commit 8395beae410e4fe50c4610e2b354a40d21997f45.