Milo

•
2
•

Develop command-line interfaces that natively serve both human users and AI agents.

Milo is a Python framework designed to streamline the creation of command-line interfaces that are equally effective for human users and AI agents. By defining a single Python function with type annotations and a docstring, Milo automatically generates an argparse subcommand, an MCP tool schema, and an llms.txt entry. This enables CLIs to serve as interactive terminal applications, traditional command-line tools, and fully-fledged MCP servers, allowing AI agents to discover, validate, and call commands via JSON-RPC, complete with streaming progress updates and rich JSON Schema constraints.

主要功能

01Generates rich JSON Schema for input validation from Python type hints.
02Provides streaming progress notifications to MCP clients in real-time.
03Facilitates multi-screen terminal applications and interactive forms with state management.
04Supports dual-mode commands: interactive for humans, structured JSON for AI.
05Every CLI functions as an MCP server for AI agent integration.
060 GitHub stars

使用案例

01Building AI agent toolchains and integrating CLIs with AI hosts.
02Creating interactive CLI tools, wizards, and guided workflows.
03Developing dual-mode commands that adapt to human or AI callers.