Skip to content

ci(mcp): Drop the token cost PR comment and view size budget columns - #2462

Draft
sentry-junior[bot] wants to merge 1 commit into
mainfrom
chore/token-cost-no-pr-comment
Draft

sentry-junior[bot] wants to merge 1 commit into
mainfrom
chore/token-cost-no-pr-comment

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

The Token Cost workflow posted or updated a "📊 MCP Server Token Cost Report" comment on every same-repo PR run. The Token Cost check run already shows the totals and the change from main, and the job summary keeps the per-tool and MCP Apps view breakdown, so the comment was noise. This removes the comment step and the pull-requests: write permission that only it used.

The MCP Apps view size is a hard limit, not a budget to track: generate-chart-app already fails when a view goes over budgetBytes, and ci:policy runs it in CI. So measure-ui drops the Budget and % of budget columns and the budget_bytes/budget_percentage JSON fields, and keeps raw, gzip, and brotli sizes. Nothing read those fields.

budgetBytes in src/ui-resources.ts keeps its name, so the chart resource definition is unchanged. Docs and design/mcp-apps.md now call it a hard byte limit.

via @dcramer.

--

View Session [Sentry]

The Token Cost workflow posted or updated a PR comment on every same-repo
run. The Token Cost check run already carries the totals and the change
from main, and the job summary keeps the full breakdown, so the comment
was only noise. Drop it and the pull-requests: write permission it needed.

The MCP Apps view size is a hard limit that generate-chart-app enforces
through ci:policy, so measure-ui no longer reports it as a budget. It
keeps the raw, gzip, and brotli sizes and drops the budget and
percentage fields.

Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Nov 21, 2026 11:03pm UTC
sentry-local Ready Ready Preview Nov 21, 2026 11:03pm UTC

Request Review

This branch was successfully deployed

2 active deployments
Preview – cli — dd12c581 Deployed Nov 21, 2026 by vercel[bot]
Preview – sentry-local — dd12c581 Deployed Nov 21, 2026 by vercel[bot]
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