Skip to content

feat!: remove mcp package - #990

Merged
ryoppippi merged 1 commit into
mainfrom
mcp-remove
May 12, 2026
Merged

feat!: remove mcp package#990
ryoppippi merged 1 commit into
mainfrom
mcp-remove

Conversation

@ryoppippi

@ryoppippi ryoppippi commented May 12, 2026

Copy link
Copy Markdown
Member

Removes the dedicated @ccusage/mcp workspace package and its server implementation from the monorepo.

Also removes MCP documentation pages, navigation entries, README references, schema expectations, unused MCP runtime catalog dependencies, the MCP screenshot asset, and Claude Code skill guidance that is useful for development but not ccusage functionality.

BREAKING CHANGE: @ccusage/mcp is no longer shipped from this monorepo.

Testing:

  • pnpm run format
  • pnpm typecheck
  • pnpm run test

Summary by CodeRabbit

  • Removed Features

    • Removed MCP Server package (@ccusage/mcp) and all related tooling, including CLI commands, server modes, and integration documentation.
    • Removed MCP integration references from guides and documentation.
  • New Features

    • Added Offline Mode feature for using pre-cached pricing data without network connectivity.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 12, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
ccusage-guide b87e812 May 12 2026, 03:11 PM

@pkg-pr-new

pkg-pr-new Bot commented May 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

@ccusage/amp

npm i https://pkg.pr.new/ryoppippi/ccusage/@ccusage/amp@990

ccusage

npm i https://pkg.pr.new/ryoppippi/ccusage@990

@ccusage/codex

npm i https://pkg.pr.new/ryoppippi/ccusage/@ccusage/codex@990

@ccusage/opencode

npm i https://pkg.pr.new/ryoppippi/ccusage/@ccusage/opencode@990

@ccusage/pi

npm i https://pkg.pr.new/ryoppippi/ccusage/@ccusage/pi@990

commit: b87e812

@coderabbitai

coderabbitai Bot commented May 12, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 36791810-962c-43d4-85cf-45c140a2e42a

📥 Commits

Reviewing files that changed from the base of the PR and between 2cd8921 and b87e812.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (30)
  • CLAUDE.md
  • apps/ccusage/README.md
  • apps/ccusage/scripts/generate-json-schema.ts
  • apps/ccusage/src/_consts.ts
  • apps/mcp/AGENTS.md
  • apps/mcp/CLAUDE.md
  • apps/mcp/README.md
  • apps/mcp/eslint.config.js
  • apps/mcp/package.json
  • apps/mcp/src/ccusage.ts
  • apps/mcp/src/cli-utils.ts
  • apps/mcp/src/codex.ts
  • apps/mcp/src/command.ts
  • apps/mcp/src/consts.ts
  • apps/mcp/src/index.ts
  • apps/mcp/src/mcp-utils.ts
  • apps/mcp/src/mcp.ts
  • apps/mcp/tsconfig.json
  • apps/mcp/tsdown.config.ts
  • apps/mcp/vitest.config.ts
  • docs/.vitepress/config.ts
  • docs/CLAUDE.md
  • docs/guide/cli-options.md
  • docs/guide/custom-paths.md
  • docs/guide/library-usage.md
  • docs/guide/mcp-server.md
  • docs/index.md
  • docs/public/mcp-claude-desktop.avif
  • packages/internal/CLAUDE.md
  • pnpm-workspace.yaml
💤 Files with no reviewable changes (28)
  • docs/CLAUDE.md
  • apps/mcp/README.md
  • apps/mcp/src/command.ts
  • docs/guide/library-usage.md
  • apps/mcp/eslint.config.js
  • docs/index.md
  • apps/mcp/src/mcp-utils.ts
  • apps/mcp/src/ccusage.ts
  • apps/ccusage/scripts/generate-json-schema.ts
  • docs/guide/cli-options.md
  • apps/mcp/src/mcp.ts
  • docs/guide/mcp-server.md
  • apps/mcp/tsdown.config.ts
  • apps/mcp/AGENTS.md
  • apps/mcp/CLAUDE.md
  • apps/mcp/tsconfig.json
  • apps/mcp/src/index.ts
  • apps/mcp/package.json
  • apps/mcp/src/cli-utils.ts
  • apps/ccusage/src/_consts.ts
  • docs/.vitepress/config.ts
  • apps/mcp/src/consts.ts
  • apps/mcp/vitest.config.ts
  • apps/mcp/src/codex.ts
  • apps/ccusage/README.md
  • docs/guide/custom-paths.md
  • pnpm-workspace.yaml
  • CLAUDE.md
✅ Files skipped from review due to trivial changes (1)
  • packages/internal/CLAUDE.md

📝 Walkthrough

Walkthrough

Removes the entire MCP server package (apps/mcp) and its tooling/config/docs; deletes MCP-related constants and references in apps/ccusage; updates docs, site navigation, and the workspace runtime catalog to remove MCP entries. No runtime replacement introduced.

Changes

MCP package and cross-references removal

Layer / File(s) Summary
MCP package source and CLI
apps/mcp/src/*, apps/mcp/src/index.ts
Deleted the MCP server implementation and CLI entrypoint, including MCP server creation, transports (stdio/http), tool integrations (ccusage/codex), CLI wiring, and related exported functions/types.
MCP build, test, and config files
apps/mcp/package.json, apps/mcp/tsdown.config.ts, apps/mcp/tsconfig.json, apps/mcp/vitest.config.ts, apps/mcp/eslint.config.js
Removed package manifest, bundler and TypeScript configs, test and lint configs, scripts, and package metadata.
MCP docs and README
apps/mcp/README.md, apps/mcp/CLAUDE.md, apps/mcp/AGENTS.md, docs/guide/mcp-server.md
Deleted MCP package README and detailed MCP server guide/content across repository docs.
ccusage: constants, docs, and test updates
apps/ccusage/src/_consts.ts, apps/ccusage/README.md, apps/ccusage/scripts/generate-json-schema.ts
Removed MCP_DEFAULT_PORT export; dropped MCP companion references from README; updated schema-generation test to remove mcp command assertion and add statusline.
Repository docs and site nav
CLAUDE.md, docs/CLAUDE.md, docs/.vitepress/config.ts, docs/index.md, docs/guide/*
Removed MCP-related guidance, screenshots, and cross-references; removed “MCP Server” sidebar entry; replaced feature listing for MCP with “Offline Mode”.
Workspace runtime catalog
pnpm-workspace.yaml
Removed runtime catalog entries for MCP-related dependencies (@hono/mcp, @hono/node-server, @modelcontextprotocol/sdk, hono).

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

Poem

🐰 I nibbled through the MCP,
tidy docs and code set free,
no more servers in this burrow,
ccusage hops on, cheeks all furrow,
carrots, changes — clean and cheery! 🥕

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'feat!: remove mcp package' directly and accurately summarizes the primary change—removing the entire @ccusage/mcp workspace package from the monorepo.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch mcp-remove

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ryoppippi ryoppippi changed the title chore: remove mcp package feat!: remove mcp package May 12, 2026
Remove the dedicated MCP workspace package and its server implementation from the monorepo.

Drop MCP documentation pages, navigation entries, README references, schema expectations, unused runtime catalog dependencies, and the MCP screenshot asset so the workspace no longer advertises or builds MCP support.

Remove Claude Code skill guidance from repository instructions because those skills are development aids, not ccusage functionality.

BREAKING CHANGE: @ccusage/mcp is no longer shipped from this monorepo.
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​gunshi/​docs@​0.27.5 ⏵ 0.27.6711008292100

View full report

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