[DO NOT MERGE] Experiment: MCP-first plugin with a CLI fallback
Draft
HK
6h ago+2023+2023+0123456789012345678901234567890123456789-85-85-01234567890123456789
Do not merge ā just experiments. This branch exists only to evaluate how the plugin should give Claude Code direct access to altimate-code tools.
What this experiment contains
- Brings in the MCP registration (
.mcp.jsonāaltimate-code mcp serve), the analyst agent, and the experimental listing from #6 and #9. - MCP first: the
altimate-codeskill and theanalystagent use themcp__plugin_altimate-code_altimate-code__*tools when they are available. - CLI fallback for organisations that do not allow MCP servers:
altimate-code tool contextonce, thenaltimate-code tool run <tool> --args '<json>'(needs the companion altimate-code experiment AltimateAI/altimate-code#1609). - SessionStart hook (
hooks-handlers/data-mode.sh) picks the mode without starting the CLI: CLI whenaltimate-codeis not on PATH, when managed/user/project settings deny the server (deniedMcpServers,allowedMcpServerswithout it,disabledMcpjsonServers), orALTIMATE_DATA_MODE=cli. Only CLI mode adds routing guidance; MCP mode adds none and uses noCLAUDE.md. - Opt-in PreToolUse guard for direct warehouse clients (
ALTIMATE_ROUTE_GUARD=1).
Validation
tests/data-mode.sh(10 cases),tests/resolve-cli.sh,tests/warehouse-guard.shpass;claude plugin validatepasses for both plugin directories; experimental plugin tests 32/32.- Benchmark results (plain Claude, #1543 MCP, new MCP, CLI fallback on 100 dbt/warehouse tasks) are shared internally.
š¤ Generated with Claude Code