Skip to main content

Troubleshooting

Common issues and how to resolve them.

Quick Diagnostics

Before diving into specific issues, run these checks:

# Check mcpzip is installed
mcpzip --version

# Check config is valid
cat ~/.config/compressed-mcp-proxy/config.json | python3 -m json.tool

# Check cache exists
ls -la ~/.config/compressed-mcp-proxy/cache/tools.json

# Run with debug logging
RUST_LOG=mcpzip=debug mcpzip serve

Connection Issues

mcpzip starts but no tools are found

Symptoms: search_tools returns empty results.

Likely cause: The tool catalog is empty (no cache and upstream servers failed to connect).

Solution:

  1. Check if the cache file exists:
ls -la ~/.config/compressed-mcp-proxy/cache/tools.json
  1. Run with debug logging:
RUST_LOG=mcpzip=debug mcpzip serve
  1. Look for connection errors. Common causes:
    • command not found -- the server's command is not in PATH
    • connection refused -- HTTP server is down
    • timeout -- server took too long to respond (>30s)
Server fails to connect with "command not found"

Cause: The server command is not installed or not in PATH.

Solution:

  1. Verify the command exists: which npx
  2. If using npx, make sure Node.js is installed
  3. Use the full path in your config:
{
"mcpServers": {
"slack": {
"command": "/usr/local/bin/npx",
"args": ["-y", "@anthropic/slack-mcp"]
}
}
}
HTTP server returns connection refused

Solution:

  1. Test the URL directly: curl -v https://todoist.com/mcp
  2. Verify the URL in your config is the MCP endpoint, not the main website
  3. Check your network/firewall settings
Timeout errors during tool execution

Solution: Increase the call timeout in your config:

{
"call_timeout_seconds": 300,
"mcpServers": { ... }
}

Some tools (complex queries, large exports) can legitimately take several minutes.


Search Issues

Search returns irrelevant results

Solutions:

  1. Add a Gemini API key for semantic search: export GEMINI_API_KEY=your-key
  2. Use more specific queries: "slack send message" instead of "help me communicate"
  3. Increase the result limit:
{
"search": { "default_limit": 10 }
}
Semantic search (Gemini) not working
  1. Check if the key is set: echo $GEMINI_API_KEY
  2. Verify the key works:
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=$GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contents":[{"parts":[{"text":"hello"}]}]}'
  1. Check debug logs: RUST_LOG=mcpzip=debug mcpzip serve 2>&1 | grep -i gemini

OAuth Issues

Browser does not open for OAuth
  1. Check the terminal output for the authorization URL
  2. Copy the URL and open it manually
  3. On headless systems, use API key auth via headers instead
OAuth token expired / 401 after previously working

Clear cached tokens and restart:

rm ~/.config/compressed-mcp-proxy/auth/*.json

Configuration Issues

"at least one MCP server must be defined"

The mcpServers object in your config is empty. Add at least one server.

"stdio server must have a command"

A server without a type field defaults to stdio and requires a command. Either add a command or set "type": "http".

Config file not found

Create it with the setup wizard:

mcpzip init

Or migrate from Claude Code:

mcpzip migrate

Or specify a custom path:

mcpzip serve --config /path/to/config.json

Debug Logging

Control log verbosity with RUST_LOG:

# Debug logging
RUST_LOG=mcpzip=debug mcpzip serve

# Trace logging (very verbose)
RUST_LOG=mcpzip=trace mcpzip serve

# Log specific modules
RUST_LOG=mcpzip::transport=debug,mcpzip::search=debug mcpzip serve
ModuleWhat You See
mcpzip::transportConnection lifecycle, reconnection attempts
mcpzip::searchSearch queries, scores, cache hits/misses
mcpzip::catalogCatalog refresh, tool count changes
mcpzip::authOAuth flow steps, token refresh
mcpzip::proxyMeta-tool invocations, argument parsing
mcpzip::mcpRaw MCP protocol messages (trace level)
tip

When filing a bug report, include the output of RUST_LOG=mcpzip=debug mcpzip serve. Redact any API keys or tokens.


Still Stuck?

Open an issue at github.com/hypercall-public/mcpzip/issues with:

  1. mcpzip version (mcpzip --version)
  2. Your OS and architecture
  3. Your config (redact secrets)
  4. Debug log output
  5. Steps to reproduce
  6. Expected vs actual behavior