Skip to content

Make egress-tracking middleware apply to MCP route - #5775

Merged
clockwork-tien merged 1 commit into
masterfrom
tien/feat/egress-mcp-route
Aug 24, 2026
Merged

Make egress-tracking middleware apply to MCP route#5775
clockwork-tien merged 1 commit into
masterfrom
tien/feat/egress-mcp-route

Conversation

@clockwork-tien

@clockwork-tien clockwork-tien commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Description of Changes

  • Add egress tracking middleware to MCP route
    • Count MCP egress by moving /v1/database/:name_or_identity/mcp out of the bypass list into counted_db_router
    • Additional updates to MCP route to support this with refactoring of the handler and tool signatures

API and ABI breaking changes

None.

Expected complexity level and risk

2

Testing

  • I tested the implementation, tests, lint and format checks passed

@clockwork-tien
clockwork-tien marked this pull request as ready for review August 21, 2026 14:13
Comment thread crates/client-api/src/routes/mcp.rs
@clockwork-tien
clockwork-tien force-pushed the tien/feat/egress-mcp-route branch from 98f8bde to 0d24b96 Compare August 24, 2026 15:51
@clockwork-tien
clockwork-tien added this pull request to the merge queue Aug 24, 2026
Merged via the queue into master with commit cfa9636 Aug 24, 2026
50 of 51 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.

3 participants