feat: multi-CLI installer with registry pattern (7 platforms)#3
Merged
Conversation
Replace hardcoded Claude Code + Codex CLI installer with a CLIENTS registry array. Each platform is a config object declaring detection, MCP format, agent/skills paths, and post-install hooks. Supported platforms: - Claude Code (agent + MCP + plugin recommendation) - Codex CLI (agent + skills + TOML MCP) - Cursor (MCP only) - VS Code (MCP with servers key + Accept header) - OpenCode (agent + skills + MCP with type: remote) - Crush (skills + MCP with type: http) - Gemini CLI (extension-based, no MCP config file) Adding a new client = adding one object to the CLIENTS array. Generic functions handle install/uninstall/status for all platforms.
This was referenced Feb 25, 2026
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
bin/stitch-kit.mjsfrom hardcoded 2-platform logic to a registry-driven architecture supporting 7 CLI toolsCLIENTSarrayinstallClient,uninstallClient,statusClient) iterate the registry instead of per-platform if/elseSupported Platforms
mcpServersmcp_serversmcpServersservers+type: httpAcceptheadermcp+type: remoteenabled: trueflagmcp+type: httpKey Design Decisions
installMcp()— only Codex uses it, no parser dependency neededisExtensionBased: true+mcp: nullto cleanly skip MCP logicTest plan
npx @booplex/stitch-kit status— shows all 7 platforms (detected/not-detected)npx @booplex/stitch-kit --help— lists all platforms with feature summarynpx @booplex/stitch-kit -v— version output works