refactor(plugin)!: migrate from MCP server to CLI dispatch (v0.3.0)#191
Merged
onlycastle merged 6 commits intomainfrom Mar 27, 2026
Merged
refactor(plugin)!: migrate from MCP server to CLI dispatch (v0.3.0)#191onlycastle merged 6 commits intomainfrom
onlycastle merged 6 commits intomainfrom
Conversation
Drop the entire MCP server layer (server.ts, 14 tool handlers, @modelcontextprotocol/sdk) and 13 deprecated analysis skills that were consolidated into the current domain model. This clears the path for the lighter CLI dispatch layer. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Introduce a lightweight Node CLI (cli/index.ts + 14 command modules) that wraps the same lib/ functions the MCP tools used. Skills now invoke commands via Bash instead of MCP tool calls, eliminating the @modelcontextprotocol/sdk dependency and JSON-RPC overhead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update 19 skill prompts and 2 hook handlers to invoke the CLI (node dist/cli/index.js <command>) via Bash instead of calling MCP tools. No logic changes — purely a transport-layer migration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Bugs: fix hasArtifact null-check (loose equality), remove stale-file fallback in classify-developer-type (data integrity), move markAnalysisComplete after serve path resolves, unref HTTP server so process can exit. No Fallback Policy: surface JSON.parse errors in save-stage-output, remove silent fallback in generate-report HTTP handler. Schema: create dedicated ToolMasteryDataSchema replacing mismatched CommunicationPatternsDataSchema, align SKILL.md data mapping. CLI: add duplicate flag detection, bump package.json to 0.3.0, re-export REQUIRED_STAGE_SEQUENCE, restore distribution in classify-developer-type message. Docs: fix inaccurate comments, remove Cursor mention, standardize --includeProjects casing, add bp-setup retry logic, deprecate Cursor mappings in tool-mapping.ts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mcp/directory (server + 14 tool handlers),@modelcontextprotocol/sdkdependency, and 13 deprecated analysis/domain skills that were consolidated in prior PRscli/index.ts+ 14 command modules) wrapping the samelib/functions — skills invoke vianode dist/cli/index.js <command>through Bash instead of MCP tool callsChanges
refactor(plugin)!: remove MCP server, tools, and deprecated skills— 47 files deleted (~58k lines)feat(plugin): add CLI dispatch layer replacing MCP server (v0.3.0)— CLI source, dist artifacts, config, version bumprefactor(plugin): migrate all skills and hooks from MCP to CLI dispatch— 19 skills, 2 hooks, 1 lib commentchore: update lockfiles after MCP SDK removalTest Plan
node dist/cli/index.js helpshows all 14 commandsnode dist/cli/index.js scan-sessionsreturns valid JSON/bp analyzerun completes using CLI dispatchGenerated with Claude Code using /ship-it