Skip to content

fix(mcp): handle version and help before starting stdio - #124

Merged
ElbertePlinio merged 1 commit into
mainfrom
fix/120-mcp-version
Sep 7, 2026
Merged

ElbertePlinio merged 1 commit into
mainfrom
fix/120-mcp-version

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Print the package version and exit 0 for pickforge-mcp --version and -V, without starting the stdio server. Print usage for --help. Other invocations retain the existing server behavior.

Add built-bin tests with stdin held open to detect accidental server startup. Update INSTALL.md and candidate smoke to check the MCP binary version, retaining the MCP handshake check.

Validation:

  • bun install --frozen-lockfile: exit 0, 498 packages installed.
  • bun run typecheck: exit 0.
  • bun run lint: exit 0.
  • bun run test: exit 0; 115 test files passed, 1476 tests passed, 4 skipped (desktop integration).
  • bun run build: exit 0.
  • complexity-gate check --changed: exit 0; scripts/candidate-smoke.sh unverified because no shell grammar is available.
  • bash -n scripts/candidate-smoke.sh: exit 0.
  • git diff --cached --check: exit 0.

Independent final review: no blocking findings. Full candidate smoke was not run because it requires release artifacts and its target environments.

Closes #120

@ElbertePlinio
ElbertePlinio merged commit 8490bb0 into main Sep 7, 2026
10 checks passed
@ElbertePlinio
ElbertePlinio deleted the fix/120-mcp-version branch September 7, 2026 21:21
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.

fix(mcp): pickforge-mcp --version starts the stdio server instead of printing the version

1 participant