Exposed Commands
When you add a server, mcptocli automatically creates a standalone command for it on your PATH.
Automatic exposure
mcp add time 'uvx mcp-server-time'# → creates mcp-timeNow you can use it directly:
mcp-time toolsmcp-time get-current-time 'America/New_York'Custom names
mcp expose time --as tt toolst get-current-time 'America/New_York'Remove an exposed command
mcp expose --remove timeHow it works
Exposed commands are small shims placed in ~/.local/share/mcptocli/bin/. When invoked, they call mcptocli with the correct server binding.
Make sure the bin directory is on your PATH:
export PATH="$HOME/.local/share/mcptocli/bin:$PATH"The add command prints the path when it creates the shim.