{"repo":"gakonst/clap-mcp","free":true,"listed":false,"github":"https://github.com/gakonst/clap-mcp","clone":"git clone https://github.com/gakonst/clap-mcp.git","description":"A Rust framework that bridges clap command-line applications with the Model Context Protocol (MCP)","language":"Rust","stars":31,"topics":[],"license":"MIT","category":"mcp-servers","readme_excerpt":"clap-mcp Turn any Clap CLI into an MCP server with a simple derive macro. Installation Quick Start Here's a complete calculator example that works as both a CLI and MCP server: Now your CLI works both ways: Real Example: Cast Here's how you'd make Cast (Foundry's CLI) work as an MCP server: How It Works The #[derive(McpMode)] macro: - Adds a run mcp server() method to your CLI - Converts each subcommand into an MCP tool - Maps CLI arguments to tool parameters with proper types - Preserves all existing CLI functionality License MIT OR Apache-2.0","default_branch":null,"files":null,"tree":[],"storefront":"/r/gakonst","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gakonst/clap-mcp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}