Use Bake mode to save API configurations
mainBake mode allows you to save connection settings (like OpenAPI specs or MCP commands) as named tools to avoid repeating long flag sets. Saved configurations are stored in ~/.config/mcp2cli/baked.json (can be overridden via MCP2CLI_CONFIG_DIR).
Commands
bake create NAME [opts]: Save a new configuration. Use--include(glob whitelist) or--exclude(glob blacklist) to filter tools, and--methods(for OpenAPI) to limit HTTP methods.bake list: List all saved tools.bake show NAME: Show configuration (secrets are masked).bake update NAME [opts]: Update an existing tool.bake remove NAME: Delete a tool.bake install NAME: Create a~/.local/bin/NAMEwrapper script.@NAME [args]: Run a saved tool directly.
Example
# Create a baked tool for a petstore API
mcp2cli bake create petstore --spec https://api.example.com/spec.json \
--exclude "delete-*,update-*" --methods GET,POST --cache-ttl 7200
# Run the tool using the @ prefix
mcp2cli @petstore --list
mcp2cli @petstore list-pets --limit 10