Installation issues
”qwed-mcp: command not found”
Cause: Package not in PATH Solutions:- Install globally:
- Check installation:
- Use full path in config:
Claude Desktop issues
Server not appearing in Claude
Check:- Config file location:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
- Valid JSON:
- Restart Claude Desktop (completely quit and reopen)
“Failed to start MCP server”
Debug steps:- Test manually:
- Check logs:
- Enable debug logging:
Tool errors
”Code execution is disabled”
Cause: TheQWED_MCP_TRUSTED_CODE_EXECUTION environment variable is not set.
Solution: Set the variable in your MCP config:
“BLOCKED: Unknown MCP tool” (or verify_* tools)
Cause: You are running QWED-MCP v0.2.0 or later, which replaced all individualverify_* 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:
QWED-MCP-RISK-* codes.
”Execution timed out after 30 seconds”
Cause: The Python script exceeded the execution time limit. Solutions:- Increase timeout:
- 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:
- Rewrite the script with admitted modules, such as
decimal,fractions,math,statisticsoritertools. - 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:- Start a new conversation
- 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 installsqwed-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, whenQWED_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
- GitHub Issues: github.com/QWED-AI/qwed-mcp/issues
- Documentation: docs.qwedai.tech/mcp
- MCP Protocol Docs: modelcontextprotocol.io