Skip to main content
Common issues and solutions when using QWED-MCP.

Installation issues

”qwed-mcp: command not found”

Cause: Package not in PATH Solutions:
  1. Install globally:
  2. Check installation:
  3. Use full path in config:

Claude Desktop issues

Server not appearing in Claude

Check:
  1. Config file location:
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  2. Valid JSON:
  3. Restart Claude Desktop (completely quit and reopen)

“Failed to start MCP server”

Debug steps:
  1. Test manually:
  2. Check logs:
  3. Enable debug logging:

Tool errors

”Code execution is disabled”

Cause: The QWED_MCP_TRUSTED_CODE_EXECUTION environment variable is not set. Solution: Set the variable in your MCP config:
Or when running from the command line:

“BLOCKED: Unknown MCP tool” (or verify_* tools)

Cause: You are running QWED-MCP v0.2.0 or later, which replaced all individual verify_* tools with a single execute_python_code tool. The RiskBasedExecutionGateway blocks any tool name not in its policy table with error code QWED-MCP-RISK-001. The full error message looks like:
Solution: Tell Claude: “The verify_* tools have been removed. Use execute_python_code to write and run a Python verification script.” See the migration guide and governance error codes for the complete list of QWED-MCP-RISK-* codes.

”Execution timed out after 30 seconds”

Cause: The Python script exceeded the execution time limit. Solutions:
  1. Increase timeout:
  2. Optimize the script:
    • Break complex computations into smaller steps
    • Avoid infinite loops or very large data processing

”BLOCKED: QWED blocked python execution: Module ’…’ is not admitted”

Cause: From v0.3.0, execute_python_code admits code only when every module, builtin and attribute it uses is on the allowlist. Third-party packages are refused, including SymPy and QWED SDK packages such as qwed_new, qwed_legal, qwed_finance and qwed_ucp. Installing the package doesn’t change this. The message lists every reason, with the line number where one applies, for example:
Solutions:
  1. Rewrite the script with admitted modules, such as decimal, fractions, math, statistics or itertools.
  2. To run a QWED guard or engine, call its package from your own Python code instead of through execute_python_code.

Migration issues (v0.1.x to v0.2.0)

Claude keeps trying to call verify_math

Cause: Claude’s context may still reference old tool names from previous conversations. Solutions:
  1. Start a new conversation
  2. Explicitly tell Claude: “Use execute_python_code instead of verify_math. Write a Python script with the decimal or fractions module to check the calculation.”

Upgrade issues (v0.2.x to v0.3.0)

Scripts that ran on v0.2.x are refused

Cause: v0.3.0 replaced the list of refused names with an allowlist. Code that imports a module outside it (os, pathlib, requests, QWED SDK packages and other third-party packages), calls open, eval, getattr or another refused builtin, or reads a private or special attribute is now refused. A coding declaration other than UTF-8 is refused too. Solution: Read the reasons in the BLOCKED message and rewrite the script with admitted modules and builtins.

Your code can’t import qwed-finance or qwed-ucp

Cause: From v0.3.0, installing qwed-mcp no longer installs qwed-finance or qwed-ucp. Solution: If your own code imports them, install them in your project:

The server refuses to start with a skill manifest

Cause: From v0.3.0, when QWED_SKILL_MANIFEST is set, the startup check refuses a registry that is not one of the built-in trusted domains (github.com, gitlab.com, bitbucket.org, pypi.org, npmjs.com). Solution: Use a manifest from a trusted registry, or vet the skill in your own code with SkillProvenanceGuard and that registry in trusted_registries.

Getting help

  1. GitHub Issues: github.com/QWED-AI/qwed-mcp/issues
  2. Documentation: docs.qwedai.tech/mcp
  3. MCP Protocol Docs: modelcontextprotocol.io