Request for a "Hello, World!" RPC request #21
-
As a proof of concept I'd be looking to send bytes to stdin of an existing MCP server just to get something started but it's been a bit difficult to find a "this is an example of a raw message that you can send and you will get a response back". For example with LSP a message could be If
I've looked around at the spec, the python-sdk, and also Zed. The code in all of those places is really well abstracted which is great for getting stuff done but for learning "okay at the end of all this abstraction, X message gets generated" - it hasn't been good reference for that so far. My context is I'm interested in writing a Lua client for Neovim and want to get an idea of what the on-ramping process would look like. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Try checking the spec docs. All messages are JSON RPC and they depend of the transport being used. https://spec.modelcontextprotocol.io/specification/basic/utilities/ping Most of the official servers all run on stdio right now meaning you can only send messages via stdin/stdout through a terminal session. |
Beta Was this translation helpful? Give feedback.
-
This works for me. |
Beta Was this translation helpful? Give feedback.
My go to way is
Can just be provided line by line when running
npx @modelcontextprotocol/server-everything