Overview
what is urfave-cli-mcp?
urfave-cli-mcp is a Go library that allows developers to reuse a urfave/cli application as a Model Context Protocol (MCP) server, enabling the exposure of subcommands as MCP tools.
how to use urfave-cli-mcp?
To use urfave-cli-mcp, integrate it into your Go application by importing the library and adding the MCP command to your existing CLI commands. You can then invoke tools by forking the current process and returning the output as the result.
key features of urfave-cli-mcp?
- Reuses existing urfave/cli applications as MCP servers.
- Supports command descriptions, flags, default values, and required flags.
- Allows for easy iteration of tools as a CLI before exposing them to an MCP client.
use cases of urfave-cli-mcp?
- Creating an MCP server from a query-only CLI application.
- Exposing subcommands of a CLI as tools for other applications.
- Rapidly developing and testing new MCP servers using existing CLI commands.
FAQ from urfave-cli-mcp?
- Can I use urfave-cli-mcp with any CLI application?
Yes! As long as the application is built using the urfave/cli library, you can use urfave-cli-mcp to expose its commands as MCP tools.
- Is urfave-cli-mcp free to use?
Yes! urfave-cli-mcp is open-source and available under the MIT license.
- What programming language is urfave-cli-mcp written in?
urfave-cli-mcp is written in Go.