Unable to connect to MCP sever #555
Replies: 1 comment
-
|
When using stdio for MCP communication, both the client and server must exchange newline-delimited JSON-RPC 2.0 messages over standard input/output (not HTTP). Checklist: for example ensure flushing, proper newline separation, and correct working directory when spawning the subprocess. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Question Category
Your Question
Hello everyone,
I’m working on a Python application that primarily handles backend functionality. Recently, I tried to implement an MCP server. The communication between my backend service layer and the MCP server is set up through a client using stdio.
However, when I try to call the API, the client is unable to reach the MCP server. I’ve tried several approaches, but since I’m new to MCP servers, I’m struggling to get this communication working.
Could anyone guide me on how to properly establish communication between the client and the MCP server with stdio?
Beta Was this translation helpful? Give feedback.
All reactions