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-time

Now you can use it directly:

mcp-time tools
mcp-time get-current-time 'America/New_York'

Custom names

mcp expose time --as t
t tools
t get-current-time 'America/New_York'

Remove an exposed command

mcp expose --remove time

How 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.