Skip to content

Retire MCP packages and keep Skills support#2694

Draft
quanru wants to merge 1 commit into
mainfrom
codex/retire-mcp-keep-skills
Draft

Retire MCP packages and keep Skills support#2694
quanru wants to merge 1 commit into
mainfrom
codex/retire-mcp-keep-skills

Conversation

@quanru

@quanru quanru commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR retires Midscene's MCP server surface and keeps the Skills / platform CLI workflow as the supported agent integration path.

Changes

  • Remove MCP packages and platform MCP server entry points for web bridge, Android, iOS, HarmonyOS, desktop computer, and the shared MCP package.
  • Rename shared MCP tool infrastructure to agent-tools so Skills and platform CLIs can keep using the reusable tool definitions without exposing MCP servers.
  • Update package exports, package dependencies, lockfile entries, commit scopes, and source imports to remove MCP package wiring.
  • Update English and Chinese docs to position Skills as the recommended agent integration path and turn the MCP page into a retirement / migration note.
  • Keep MIDSCENE_MCP_CHROME_PATH as a deprecated alias for MIDSCENE_CHROME_PATH so existing Puppeteer-mode Skills setups do not break during migration.
  • Deduplicate report template injection logic through a shared helper to prevent stale nested report templates from being embedded repeatedly.

Why

Midscene no longer needs to ship MCP servers now that Skills cover the agent-driven workflow. Keeping both surfaces increases package, build, docs, and test maintenance cost. This change removes the MCP runtime surface while preserving the lower-level tool definitions required by Skills and platform CLIs.

Validation

  • pnpm --dir packages/shared exec vitest --run tests/unit-test/chrome-path.test.ts tests/unit-test/env/global-config-manager.test.ts
  • pnpm --dir apps/report exec vitest --run tests/report-template-utils.test.ts
  • pnpm exec nx build @midscene/shared --skip-nx-cache --verbose
  • pnpm --dir apps/report run build
  • pnpm exec nx build @midscene/core --skip-nx-cache --verbose
  • pnpm run type-check:tests
  • pnpm run lint
  • git diff --check

Notes for Reviewers

  • The intentional public surface after this PR is Skills / platform CLIs, not MCP servers.
  • The old MIDSCENE_MCP_CHROME_PATH variable is intentionally kept only as a migration alias.
  • Generated output under dist/ is not committed.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: bc5a4be
Status: ✅  Deploy successful!
Preview URL: https://efc6ff14.midscene.pages.dev
Branch Preview URL: https://codex-retire-mcp-keep-skills.midscene.pages.dev

View logs

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