feat(cli): configure MCP natively across coding agents

MA
3mo ago
+4087-851

Why

setup mcp should register Firecrawl directly and predictably in supported agent harnesses without persisting API keys. When users explicitly choose Firecrawl as their default web provider, setup should change only the documented settings and preserve unrelated configuration.

Summary

  • Replaces delegated MCP installation with built-in detection and user-level configuration for supported harnesses.
  • Preselects detected harnesses during interactive setup and supports explicit per-harness and all-target automation paths.
  • Preserves unrelated JSONC, TOML, and YAML content, refuses malformed configuration, and keeps repeated writes stable.
  • Keeps credentials indirect through environment references. Stored credentials are not copied into agent configuration, while keyless and OAuth setup remain available where supported.
  • Offers the optional default-provider handover only for Claude Code and Codex, where the exact settings are defined.
  • Keeps non-interactive confirmation MCP-only unless defaults are explicitly requested, and leaves user-defined native search settings unchanged.
  • Supports explicitly restoring native web settings.
  • Updates doctor detection and the existing init and launch integrations to recognize the native registrations.

Test Plan

  • pnpm test (538 tests across 25 files)
  • pnpm type-check
  • pnpm build
  • pnpm format:check
  • git diff --check
  • GitHub Actions pass on the latest commit