Troubleshooting¶
"ExceptionGroup: unhandled errors in a TaskGroup"¶
Usually means the CLI couldn’t establish an MCP session.
Checklist
-
Is the server running?
-
Probe the URL directly:
curl -I http://127.0.0.1:6288/sse(look for200 OK). - Try
matrix mcp probe --url ... --jsonand inspect the error. -
Endpoint mismatch
-
Your server exposes
/sse, older code might use/messages/. - The CLI retries once with the alternate path automatically.
-
Tool name mismatch
-
Server exposes
chat, but you calledwatsonx-chat. - The CLI now prints tool names on failures.
-
Stale lock
-
If
matrix runsays locked, runmatrix stop <alias>or remove~/.matrix/state/<alias>/runner.lock.json. -
TLS / corporate CA
-
Set
SSL_CERT_FILEorREQUESTS_CA_BUNDLEto your CA bundle.
Gateway 401 during install¶
Set MCP_GATEWAY_TOKEN or pass --gw-token in your PoC scripts.
Local wheels¶
Ensure your virtualenv resolves your dev wheels first, e.g. install matrix-python-sdk-*.whl before matrix-cli.