Three Discovery Mechanisms
incur provides three ways for agents to discover and use your CLI:- Skills (recommended – lighter on tokens)
- MCP server (Model Context Protocol)
--llmsflag for direct manifest inspection
Skills
Skills provide the most token-efficient discovery mechanism. They load command metadata on-demand rather than injecting everything at session start.Add Skills
- Auto-generates skill files from your commands
- Installs them to the agent’s skills directory
- Splits by command group for on-demand loading
How It Works
Skills use a two-phase loading strategy: Session start — Only frontmatter (name + description) is loaded On demand — Full command details load when the agent needs them This approach uses up to 29.7× fewer tokens during discovery compared to loading a monolithic skill file.Agent Quickprompt
Tell your agent:MCP Server
Register your CLI as an MCP (Model Context Protocol) server so agents can invoke commands as tools.Add MCP
- Claude Code
- Cursor
- Windsurf
- Amp
- Cline
- And more
MCP Quickprompt
Tell your agent:MCP vs Skills
MCP injects all tool schemas into every turn, making it heavier on tokens:Skills are recommended for most use cases due to significantly lower token usage.
LLMs Flag
Output a machine-readable manifest of all commands for direct inspection or custom integrations.Markdown Format
JSON Schema Format
Implementation
All discovery mechanisms are automatically available on every incur CLI:my-cli skills addmy-cli mcp addmy-cli --llmsmy-cli --llms json
Session Savings
Combining on-demand skill loading with TOON output, incur cuts token usage across the entire session—from discovery through invocation and response. In a typical session with a 20-command CLI:- 3.1× lower cost vs MCP + JSON
- 3.1× lower cost vs monolithic skill + JSON
- 8.4× fewer tokens at session start vs MCP
- 29.7× fewer tokens during discovery vs monolithic skill

