Start a tool’s MCP server. By defaultDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/superradcompany/tool-cli/llms.txt
Use this file to discover all available pages before exploring further.
tool run launches the server using its native transport (stdio or HTTP). Use --expose to bridge between transports — for example, expose a stdio-based server over HTTP so a web client can connect, or expose an HTTP server over stdio for a local agent.
Synopsis
Options
Tool reference (
namespace/name) or local path to run. Defaults to . (current directory).Transport type to expose the server on:
stdio or http. When omitted, the server runs using its native transport with no bridging.--expose http— wraps a stdio-based server in an HTTP/SSE layer--expose stdio— wraps an HTTP-based server in a stdio layer
Port to bind when using
--expose http. Default: 3000.Bind address when using
--expose http. Default: 127.0.0.1. Use 0.0.0.0 (or 0 as shorthand) to listen on all interfaces.Pass a configuration value as
KEY=VALUE. Repeatable. Values are used by the server at runtime (e.g., API keys, tokens).Path to a JSON file containing configuration values. Merged with any
-k flags.Do not persist config values for future runs. By default, provided values are saved so you don’t need to repeat them.
Skip all interactive prompts. If required config is missing and cannot be inferred, the command will exit with an error.
Show verbose output including startup details and transport negotiation.
Examples
Transport bridging
tool run can act as a proxy between transport types. This is useful when your MCP client only supports one transport but the server uses another.
| Server transport | --expose value | Result |
|---|---|---|
stdio | http | stdio server is wrapped in an HTTP/SSE endpoint |
http | stdio | HTTP server is wrapped in a stdio pipe |
When no
--expose flag is given, the server runs with its native transport and no proxying occurs.Connecting your MCP client
Aftertool run starts, connect your MCP client to the running server:
- Stdio transport — the client spawns
tool runas a subprocess and communicates over stdin/stdout. - HTTP transport — the client connects to
http://<host>:<port>(defaulthttp://127.0.0.1:3000).