Skip to content

fix(mcp): carry x-ratelimit headers onto MCP responses - #233

Merged
ralyodio merged 1 commit into
mainfrom
fix/mcp-ratelimit-headers
Oct 21, 2026
Merged

ralyodio merged 1 commit into
mainfrom
fix/mcp-ratelimit-headers

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Follow-up to #232: the MCP handler builds its own Response, so the meter's headers were dropped; callers were metered but never told their allowance. Copies them onto c.res after next().

🤖 Generated with Claude Code

The MCP handler returns its own Response, which drops c.header() set by the
meter, so MCP callers never saw their remaining allowance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 74989a3 into main Oct 21, 2026
3 checks passed
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.

1 participant