Skip to content

fix: validate and separate null request IDs - #209

Merged
kerlenton merged 2 commits into
kerlenton:mainfrom
Guflly:fix/null-request-ids
Aug 7, 2026
Merged

fix: validate and separate null request IDs#209
kerlenton merged 2 commits into
kerlenton:mainfrom
Guflly:fix/null-request-ids

Conversation

@Guflly

@Guflly Guflly commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

What and why

Warn when requests use IDs outside MCP's string and integer types. Null IDs now remain separate pending calls, and exported events keep the right call and tool name. Closes #197.

Checklist

  • make check passes (Windows vet, staticcheck, build, and the changed package tests pass; the full race suite runs in CI)
  • Added or updated tests for the change, where it makes sense
  • README/docs are not needed for this protocol-validation fix

@github-actions github-actions Bot added the fix label Aug 1, 2026
@kerlenton

Copy link
Copy Markdown
Owner

Looks good! Thanks!

@kerlenton
kerlenton merged commit 0331c89 into kerlenton:main Aug 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A request with "id": null is not flagged, and two of them collide into a bogus id-reuse warning

2 participants