BACK_TO_FEEDAICRIER_2
mcp wraps any CLI as MCP server
OPEN_SOURCE ↗
REDDIT · REDDIT// 11d agoOPENSOURCE RELEASE

mcp wraps any CLI as MCP server

Avelino’s Rust `mcp` binary auto-discovers CLI subcommands and flags from `--help`, then exposes them as MCP tools with no wrapper code. It also offers a proxy mode that consolidates multiple MCP backends behind one endpoint for local clients.

// ANALYSIS

This is a practical bridge for the MCP era: most useful software is still shipped as CLIs, and this makes them reachable by agents without rewriting integrations.

  • The zero-code config is the real win; one `cli: true` entry can surface tools for `kubectl`, `docker`, `terraform`, `git`, and `gh`.
  • The `cli_only` whitelist is essential, because a generic wrapper around powerful CLIs can become dangerous fast.
  • Proxy mode is a smart second act: one MCP connection, lazy backend startup, and less idle-process churn for local setups.
  • The hard part will be schema fidelity; parsing `--help` is clever, but inconsistent help text and nested command patterns will determine how reliable this feels across tools.
// TAGS
mcpcliautomationdevtoolopen-sourceself-hosted

DISCOVERED

11d ago

2026-03-31

PUBLISHED

12d ago

2026-03-31

RELEVANCE

8/ 10

AUTHOR

SmartLow8757