feat(mcp): expose provider account usage limits #36478
Closedbrockklein(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/36478/headopened View on GitHubbrockklein(GitHub profile, opens in a new tab) linked this to fix #28202
tanstack-source added labelsfeature
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
brockklein(GitHub profile, opens in a new tab) closed this
- @@ -7,3 +7,8 @@77 }8899 describe("summarizeT3ToolCalls", () => {10+ it("labels completed and failed provider usage reads", () => {11+ expect(summarizeT3ToolCalls("usage-limits", [completed({})])).toEqual({12+ label: "Read provider usage limits 1 time",13+ failedCount: 0,14+ });@@ -242,3 +250,10 @@242250 return new OrchestratorMcpFailure({ code, message });243251 }244252253+// Keep account fingerprints, provider messages, and redemption handles off the MCP response.254+function publicUsageLimits(255+ limits: ServerProviderUsageLimits,256+): OrchestratorMcpUsageLimitsResult["providers"][number]["limits"] {257+ return {258+ checkedAt: limits.checkedAt,259+ windows: limits.windows.map((window) => ({
Sign in to join this conversation.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
797d907ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.