Skip to content

Add egress tracking directly in mcp_root - #5793

Draft
clockwork-tien wants to merge 1 commit into
masterfrom
tien/feat/egress-mcp-root
Draft

Add egress tracking directly in mcp_root#5793
clockwork-tien wants to merge 1 commit into
masterfrom
tien/feat/egress-mcp-root

Conversation

@clockwork-tien

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

Copy link
Copy Markdown
Contributor

Description of Changes

Based on #5775
Closes #5789

  • Add egress tracking directly in mcp_root
    • Implement counting egress bytes for calls that go through mcp_root (host-wide MCP route), since egress middleware resolves database from the URL path, while mcp_root names its database in a tool argument inside the request body which path based middleware can not see.

API and ABI breaking changes

None.

Expected complexity level and risk

2

Testing

  • I tested the implementation, tests, lint and format 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.

Add egress tracking directly in mcp_root

1 participant