Skip to content

fix: CLI entry point starts MCP server by default, init becomes subcommand - #128

Open
TerminalGravity wants to merge 4 commits into
mainfrom
fix/cli-entry-point
Open

fix: CLI entry point starts MCP server by default, init becomes subcommand#128
TerminalGravity wants to merge 4 commits into
mainfrom
fix/cli-entry-point

Conversation

@TerminalGravity

Copy link
Copy Markdown
Collaborator

Problem

preflight-dev (the npm bin entry) ran the interactive init wizard, which meant claude mcp add preflight -- preflight-dev was broken — it launched the setup wizard instead of the MCP server.

The init script also generated a broken .mcp.json, overwriting the correct config with a wrong path (node_modules/preflight/src/index.ts).

Fix

  • preflight-dev (no args) → starts MCP server ✅
  • preflight-dev init → interactive setup wizard
  • preflight-dev help → usage info
  • Fixed init to generate correct .mcp.json using npx -y preflight-dev@latest
  • Added preflight-dev init docs to README Option C

Covers LanceDB native binary failures, CLAUDE_PROJECT_DIR config,
vector search not returning results, MCP handshake debugging,
and performance tips. Links from README nav bar.
- examples/.preflight/config.yml: profile, related projects, thresholds, embeddings
- examples/.preflight/triage.yml: strictness, always_check/skip/cross-service keywords
- examples/.preflight/README.md: setup instructions and env var fallback reference
- README.md: link to examples from Configuration Reference section
…ommand

Previously, `preflight-dev` (the bin entry) ran the init wizard,
making `claude mcp add preflight -- preflight-dev` broken — it would
launch the interactive setup instead of the MCP server.

Now:
- `preflight-dev` → starts MCP server (correct for claude mcp add)
- `preflight-dev init` → runs interactive setup wizard
- `preflight-dev help` → shows usage info

Also fixes init generating a broken .mcp.json (was overwriting the
config with a wrong path to node_modules/preflight/src/index.ts).

@TerminalGravity TerminalGravity left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Critical fix — the CLI entry point breaking claude mcp add was a real onboarding blocker. Good call making MCP server the default and moving init to a subcommand. The corrected .mcp.json generation using npx -y preflight-dev@latest is the right approach. Ready to merge.

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