Troubleshooting
Troubleshooting
Section titled “Troubleshooting”Installation Issues
Section titled “Installation Issues”popkit-mcp command not found
Section titled “popkit-mcp command not found”After pip install popkit-mcp, the command may not be on your PATH.
Fix: Check where pip installed the script:
python -m site --user-base# Add the Scripts/ (Windows) or bin/ (macOS/Linux) subdirectory to your PATHOn Windows, pip install popkit-mcp may install popkit-mcp.exe in your user Scripts directory instead of on PATH:
%APPDATA%\Python\Python3xx\Scripts\Use %APPDATA% instead of copying another user’s absolute path. Replace Python3xx with your installed Python folder. Run python --version to check the version.
The PyPI package installs both popkit-mcp.exe and popkit-mcp-server.exe. Use popkit-mcp as the primary command in docs and MCP client configs; popkit-mcp-server exists as a longer compatibility alias.
Or run directly via Python:
python -m popkit_mcp.server --transport stdioFor VS Code users who cannot edit PATH, set the MCP server command to the absolute executable path:
{ "servers": { "popkit": { "command": "C:\\Users\\YOUR-USERNAME\\AppData\\Roaming\\Python\\Python313\\Scripts\\popkit-mcp.exe", "args": ["--transport", "stdio"] } }}Replace YOUR-USERNAME with your Windows username and Python313 with your installed Python version. Run python --version to check the version.
Python version error
Section titled “Python version error”PopKit requires Python 3.11+. Check your version:
python --versionIf you have multiple Python versions, use python3.11 or python3.12 explicitly.
pip install fails with dependency conflicts
Section titled “pip install fails with dependency conflicts”Try installing in a clean virtual environment:
python -m venv popkit-envsource popkit-env/bin/activate # Linux/macOS# or: popkit-env\Scripts\activate # Windowspip install popkit[full]MCP Server Issues
Section titled “MCP Server Issues”Server crashes with UnicodeDecodeError
Section titled “Server crashes with UnicodeDecodeError”UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0Cause: A .env file in your home directory or project is saved as UTF-16 instead of UTF-8. The MCP SDK’s pydantic-settings auto-reads .env files and can’t handle UTF-16.
Fix: Convert the file to UTF-8:
# Find the problematic .env filefile ~/.env# If it says "UTF-16", convert it:iconv -f UTF-16LE -t UTF-8 ~/.env > ~/.env.tmp && mv ~/.env.tmp ~/.envServer starts but Cursor doesn’t show tools
Section titled “Server starts but Cursor doesn’t show tools”- Check Cursor Settings > Tools & MCP — look for a green dot next to “popkit”
- If red/missing, check the MCP log in Cursor’s Output panel
- Verify the server starts manually:
popkit-mcp --help - On Windows, you may need the
cmd /cwrapper:
{ "mcpServers": { "popkit": { "command": "cmd", "args": ["/c", "popkit-mcp", "--transport", "stdio"] } }}Cursor tool limit (~40 tools)
Section titled “Cursor tool limit (~40 tools)”Cursor has a limit of approximately 40 tools across all MCP servers. If you have many MCP servers installed, tools may be silently dropped.
Fix: Disable unused MCP servers in Cursor Settings > Tools & MCP.
Claude Code Plugin Issues
Section titled “Claude Code Plugin Issues”Skills/commands not appearing after install
Section titled “Skills/commands not appearing after install”- Restart Claude Code completely (exit and relaunch)
- Verify the marketplace is registered:
/plugin marketplace list- If popkit-ai isn’t listed, re-add it:
/plugin marketplace add jrc1883/popkit-aiPlugin version mismatch
Section titled “Plugin version mismatch”If you see unexpected behavior, check your installed version:
/plugin listUpdate to the latest:
/plugin update popkit-core@popkit-aiHook Failures
Section titled “Hook Failures”Hook script fails with ImportError
Section titled “Hook script fails with ImportError”PopKit hooks run as standalone Python subprocesses. They use sys.path.insert to find local utilities, which means they can’t be imported as regular Python modules.
If you’re writing custom hooks: Use the same sys.path.insert pattern found in existing hooks, and import from popkit_shared.utils for shared functionality.
Hook times out
Section titled “Hook times out”Hooks have a default timeout. If a hook performs network operations or heavy computation, it may be killed before completing.
Fix: Keep hooks fast and focused. Move expensive operations to skills or agents instead.
Power Mode Issues
Section titled “Power Mode Issues””No background agent support” error
Section titled “”No background agent support” error”Power Mode’s Native Async mode requires Claude Code 2.1.33+. Check your version:
claude --versionPower Mode agents fail silently
Section titled “Power Mode agents fail silently”Check the Power Mode status:
/popkit-core:power statusIf agents are failing, run with debug logging:
/popkit-core:power start --verboseGetting Help
Section titled “Getting Help”- GitHub Issues: github.com/jrc1883/popkit-ai/issues
- Documentation: popkit.unjoe.me