You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
faircode-mcp fails with a raw ModuleNotFoundError traceback when the mcp extra is not installed #995
Where:faircode/mcp_server.pybuild_server() (the from mcp.server.mcpserver import MCPServer import, line 524) and main(), pyproject.toml ([project.scripts]), tests/test_mcp_server.py.
Current gap: the module docstring says the server needs pip install faircode[mcp], but running the console script without the extra ends in a Python traceback ending ModuleNotFoundError: No module named 'mcp'. Every other optional extra (excel, proxy, benchmark) turns its missing import into a one-line message that names the extra. #987 now starts the server over stdio, but only with the extra present.
Suggested approach: catch the ImportError in main(), print faircode-mcp needs the optional 'mcp' extra: pip install faircode[mcp] to stderr and exit 2, and test it by running the entry point in a subprocess with mcp blocked (python -c "import sys; sys.modules['mcp'] = None; ...").
Activity
fix: faircode-mcp names the missing mcp extra instead of printing a t…
yakew7 commentedon Oct 16, 2026
Fixed in c368419 (on main). Full suite green (941 passed).