Troubleshooting
Solutions for common issues with the mpak CLI, bundle execution, and integration setup.
CLI Issues
Section titled “CLI Issues”mpak: command not found
Section titled “mpak: command not found”The CLI isn’t installed globally or isn’t in your PATH.
# Install globallynpm install -g @nimblebrain/mpak
# Or use without installingnpx @nimblebrain/mpak bundle search echoIf installed but still not found, check that your npm global bin directory is in your PATH:
npm config get prefix# Add <prefix>/bin to your PATHnpm ERR! EACCES permission denied
Section titled “npm ERR! EACCES permission denied”Don’t use sudo npm install -g. Instead, fix npm permissions or use a version manager:
# Option 1: Use nvm (recommended)nvm install --ltsnpm install -g @nimblebrain/mpak
# Option 2: Change npm prefixnpm config set prefix ~/.npm-globalexport PATH=~/.npm-global/bin:$PATHnpm install -g @nimblebrain/mpakBundle Download Issues
Section titled “Bundle Download Issues”No bundle found for platform
Section titled “No bundle found for platform”The bundle doesn’t have a build for your platform. Check available platforms:
mpak bundle show @org/serverPure Python and Node.js bundles are platform-independent and should work everywhere. Platform-specific bundles (with native dependencies) may only be available for certain platforms.
Network errors / timeouts
Section titled “Network errors / timeouts”Bundles are downloaded from GitHub Releases. Check:
- Internet connectivity:
curl -I https://github.com - GitHub status: githubstatus.com
- Proxy settings: If behind a corporate proxy, configure
HTTPS_PROXY:Terminal window export HTTPS_PROXY=http://proxy.company.com:8080mpak bundle run @org/server
SHA256 / integrity mismatch
Section titled “SHA256 / integrity mismatch”The downloaded bundle doesn’t match the expected checksum. This usually means a corrupted download.
# Clear the cached bundle and re-downloadrm -rf ~/.mpak/cache/@org/servermpak bundle run @org/serverBundle Execution Issues
Section titled “Bundle Execution Issues”python3: not found or python: not found
Section titled “python3: not found or python: not found”Python bundles require Python 3.10+ installed on your system:
brew install python@3.12sudo apt install python3winget install Python.Python.3.12node: not found
Section titled “node: not found”Node.js bundles require Node.js 18+:
# Using nvm (recommended)nvm install 18ModuleNotFoundError or import errors
Section titled “ModuleNotFoundError or import errors”This usually means the bundle’s vendored dependencies aren’t being found. Try:
# Force re-downloadrm -rf ~/.mpak/cache/@org/servermpak bundle run @org/serverIf the error persists, it’s likely a bug in the bundle itself. Check if the publisher’s manifest.json sets PYTHONPATH correctly:
{ "server": { "mcp_config": { "env": { "PYTHONPATH": "${__dirname}/deps" } } }}Server exits immediately
Section titled “Server exits immediately”If the server starts and immediately exits with no output:
-
Run directly to see stderr output:
Terminal window mpak bundle run @org/server 2>/tmp/mcp-stderr.logcat /tmp/mcp-stderr.log -
Missing configuration: The server may require API keys or other config. Check:
Terminal window mpak bundle show @org/serverLook for
user_configfields. See User Configuration. -
Stdout pollution: MCP requires clean JSON-RPC on stdout. If the server prints banners, logs, or debug output to stdout, the MCP connection breaks. This is a publisher bug.
Publishing Issues
Section titled “Publishing Issues”Failed to get OIDC token
Section titled “Failed to get OIDC token”Your GitHub Actions workflow is missing the id-token: write permission:
permissions: contents: write # Upload to releases id-token: write # Request OIDC token for mpakSee Provenance for the full setup.
Scope mismatch
Section titled “Scope mismatch”Your manifest’s package name doesn’t match your GitHub organization or username:
// GitHub org: NimbleBrainInc// ✓ Correct{ "name": "@nimblebraininc/my-server" }
// ✗ Wrong{ "name": "@someoneelse/my-server" }See Naming Conventions for scope rules.
Announce failed
Section titled “Announce failed”The registry rejected the announcement. Common causes:
- Version already exists: You can’t overwrite a published version. Bump the version in
manifest.json. - Invalid manifest: Check your
manifest.jsonagainst the Manifest Reference. - GitHub Actions environment: Ensure the action is running on
ubuntu-latestwith the correct checkout step.
Integration Issues
Section titled “Integration Issues”Server not appearing in Claude Desktop / Cursor / VS Code
Section titled “Server not appearing in Claude Desktop / Cursor / VS Code”-
Validate the JSON config: A missing comma or bracket breaks the entire config file. Use a JSON validator.
-
Use the full path to mpak: If the MCP client can’t find
mpak, use the absolute path:Terminal window which mpak# e.g., /usr/local/bin/mpakThen in your config:
{"mcpServers": {"echo": {"command": "/usr/local/bin/mpak","args": ["bundle", "run", "@nimblebraininc/echo"]}}} -
Restart the application: Claude Desktop, Cursor, and VS Code all require a restart to pick up MCP config changes.
API key / configuration issues
Section titled “API key / configuration issues”If a bundle requires user configuration (API keys, database URLs), see User Configuration and CLI config.
Cache Issues
Section titled “Cache Issues”Stale bundles
Section titled “Stale bundles”If you’re running an outdated version:
# Force re-download of a specific packagerm -rf ~/.mpak/cache/@org/servermpak bundle run @org/serverDisk space
Section titled “Disk space”Check cache size and clear it:
# Check cache sizedu -sh ~/.mpak/cache
# Clear entire cacherm -rf ~/.mpak/cache
# Clear a specific packagerm -rf ~/.mpak/cache/@org/serverSee Cache Management for details.
Getting Help
Section titled “Getting Help”- GitHub Issues: github.com/NimbleBrainInc/mpak/issues
- Discord: nimblebrain.ai/discord