MCPSERV.CLUB
trutohq

Truto MCP Stdio Proxy

MCP Server

CLI proxy forwarding JSON‑RPC to HTTP MCP servers

Stale(50)
0stars
2views
Updated Apr 24, 2025

About

A command‑line tool that reads newline‑delimited JSON‑RPC from stdin, forwards each request to a specified MCP endpoint via HTTP POST, and streams responses back to stdout. Useful for integrating MCP servers with CLI workflows or AI agents.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Overview

Truto MCP Stdio Proxy is a lightweight command‑line tool that bridges the gap between Model Context Protocol (MCP) servers and standard input/output streams. By acting as a stdio proxy, it translates newline‑delimited JSON‑RPC messages received on into HTTP POST requests sent to a chosen MCP endpoint, then streams the server’s responses back onto . This pattern is especially useful when an AI assistant—such as Claude—needs to interact with a remote MCP service that only exposes HTTP endpoints, without requiring the assistant itself to handle network communication or authentication.

The core problem this server solves is the incompatibility between MCP’s preferred WebSocket‑style or HTTP‑streaming interfaces and the typical IPC mechanisms used by AI assistants. Many assistants are designed to communicate with tools via synchronous stdin/stdout streams, so they cannot natively call an HTTP‑only MCP server. Truto MCP Stdio Proxy eliminates this friction by acting as a thin, stateless relay: it receives a JSON‑RPC request, forwards it to the target MCP endpoint, waits for the HTTP response, and writes that response back in the same JSON‑RPC format. The assistant sees a seamless local tool, while all heavy lifting—authentication, retry logic, and protocol translation—is handled by the proxy.

Key capabilities of the proxy include:

  • Transparent forwarding: Every incoming JSON‑RPC message is sent verbatim to the configured MCP URL, preserving method names, parameters, and IDs.
  • Synchronous operation: The proxy blocks until the HTTP response arrives, ensuring that each request/response pair is matched correctly.
  • Error routing: Network or server errors are emitted to , allowing the AI assistant to detect failures without corrupting the JSON‑RPC stream.
  • Platform agnostic binaries: Pre‑built executables are available for Linux, macOS (Intel and Apple Silicon), and Windows, making deployment trivial across environments.
  • Developer‑friendly usage: The tool can be invoked directly from the shell, piped with or , and integrated into AI configuration files (e.g., Claude’s section) with minimal boilerplate.

Typical use cases include:

  • Integrating third‑party services: A developer can expose a cloud‑hosted MCP service (such as Truto’s own APIs) to an on‑premises AI assistant without rewriting the service or the assistant.
  • Testing and debugging: By piping local JSON‑RPC files into the proxy, engineers can validate MCP server behavior in isolation from the assistant’s runtime.
  • Continuous integration pipelines: The proxy can be run as part of a CI job to simulate assistant interactions with MCP endpoints, ensuring that changes do not break the communication contract.

Because it is stateless and requires no configuration beyond a single URL, Truto MCP Stdio Proxy offers a zero‑touch integration path for developers who want to extend AI assistants with remote MCP services. Its design aligns closely with the standard stdio tool model, making it a natural fit for existing assistant ecosystems and a valuable addition to any AI‑centric development workflow.