Skip to content

fix(mcp): actionable error when the mcp extra is missing + document it - #35

Merged
AusafMo merged 1 commit into
mainfrom
fix/mcp-missing-extra-message
Aug 2, 2026
Merged

fix(mcp): actionable error when the mcp extra is missing + document it#35
AusafMo merged 1 commit into
mainfrom
fix/mcp-missing-extra-message

Conversation

@AusafMo

@AusafMo AusafMo commented Aug 2, 2026

Copy link
Copy Markdown
Owner

cfg-mcp is commonly launched by an MCP client (e.g. a one-click install deeplink like cursor://...mcp/install?name=cfgit&config=...) against a cfgit installed without the [mcp] extra — a plain pipx install cfgit or pip install cfgit. It then dies with ModuleNotFoundError: install cfgit[mcp], which the client surfaces as a failed connection.

Two problems:

  1. The old message says install cfgit[mcp] — but for a pipx install that's the wrong fix (pip install cfgit[mcp] doesn't touch the pipx venv). The user actually needs pipx inject cfgit 'mcp>=1.0,<2'.
  2. Nothing documented the footgun.

Fix

  • Detect a pipx venv (/pipx/venvs/ in sys.prefix/sys.executable) and lead with pipx inject cfgit 'mcp>=1.0,<2'; otherwise pip install 'cfgit[mcp]'. Both note the extra pins mcp<2.
  • README: add a note to the MCP server section covering the extra + the deeplink footgun.

Verified both message branches render the right command; full suite 158 passed.

cfg-mcp is commonly launched by an MCP client (e.g. a one-click install deeplink)
against a cfgit installed without the [mcp] extra — a plain 'pipx install cfgit'
or 'pip install cfgit'. It then dies with 'install cfgit[mcp]', which is the WRONG
fix for a pipx install (pip won't touch the pipx venv), so the client just shows a
failed connection.

Detect a pipx venv and lead with 'pipx inject cfgit mcp>=1.0,<2'; otherwise show
'pip install cfgit[mcp]'. Both note that the extra pins mcp<2. Add a README note to
the MCP server section covering the extra and the deeplink footgun.
@AusafMo
AusafMo merged commit 0a24540 into main Aug 2, 2026
2 checks passed
@AusafMo
AusafMo deleted the fix/mcp-missing-extra-message branch August 2, 2026 10:23
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