Search documentation of Ragex

# Ragex.MCP.SingleRequest (Ragex v0.4.0)

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

handle()

Read one request from stdin, process it, write response to stdout, and exit.

## Functions

# handle()

Read one request from stdin, process it, write response to stdout, and exit.