Ragex. MCP. SingleRequest
(Ragex v0.32.2)
View Source
Handles a single MCP request from stdin and exits.
This is for clients that start a new process per request (like LunarVim) instead of maintaining a persistent connection.
Usage:
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call",...}' | mix run -e 'Ragex.MCP.SingleRequest.handle()'
Summary
Functions
@spec handle() :: no_return()
Read one request from stdin, process it, write response to stdout, and exit.