Skip to content

fix: let get_me handle missing arguments#2591

Open
he-yufeng wants to merge 1 commit into
github:mainfrom
he-yufeng:fix/get-me-empty-args
Open

fix: let get_me handle missing arguments#2591
he-yufeng wants to merge 1 commit into
github:mainfrom
he-yufeng:fix/get-me-empty-args

Conversation

@he-yufeng
Copy link
Copy Markdown
Contributor

Fixes #2587.

The get_me tool has no inputs, but it still used the typed tool wrapper. That wrapper tries to unmarshal request arguments before the handler runs, so clients that omit the arguments field can fail even though the tool schema has no required fields.

This switches get_me to the raw handler wrapper and adds a regression test for a missing arguments field. Existing empty-object calls remain covered by the current successful get user case.

To verify:

  • go test ./pkg/github -run Test_GetMe -count=1
  • git diff --check

@he-yufeng he-yufeng requested a review from a team as a code owner June 2, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: get_me tool fails without parameters due to empty JSON object {} not being accepted as valid input

1 participant