MCP server is not reliable. Sometimes I can connect, sometimes I can’t
There are several issues occurring with an Activepieces server that’s attempting to use the Model Context Protocol (MCP).
-
Method Not Found Errors
There are repeated JSON-RPC errors with code -32601 and message “Method not found” for the methods:prompts/list
resources/list
This indicates that the server doesn’t support these methods being requested by the client.
-
Authentication Issues
Multiple attempts to authenticate are occurring:- The server tries to use callback ports (49580, 49648, 49795)
- It reports “Another instance is handling authentication on port 3334”
- It repeatedly queries “http://127.0.0.1:3334/wait-for-auth”
- Authentication appears to time out
-
Connection Timeouts
There are multiple timeout errors:- “Error: MCP error -32001: Request timed out”
- Each initialization attempt times out after about 60 seconds
-
Connection Termination Errors
The server connection is being terminated unexpectedly:- “TypeError: terminated: other side closed”
- “Server transport closed unexpectedly”
-
Server Restart Cycles
The log shows several server initialization attempts at:Each attempt fails and the server restarts.
These errors suggest that:
- The client is trying to use methods that aren’t implemented on the server
- There’s an authentication deadlock situation where the server is waiting for authentication from another instance
- The connection is being terminated prematurely, possibly due to timeouts or server errors
ontextprotocol.io/docs/tools/debugging for more guidance on troubleshooting these issues.