Skip to main content
Version: 1.1.0

Running MCP Servers

Stdioโ€‹

For stdio servers, the client launches the server binary:

{
"mcpServers": {
"my-server": {
"command": "/path/to/my-server",
"args": [],
"env": {
"RUST_LOG": "info"
}
}
}
}

HTTP (Streamable HTTP / SSE)โ€‹

For HTTP servers, run the binary directly and connect via URL:

./my-mcp-server
# Listening on http://127.0.0.1:8080

Environment Variablesโ€‹

Configure logging and behavior:

RUST_LOG=info ./my-mcp-server # Standard logging
RUST_LOG=debug ./my-mcp-server # Debug logging
RUST_LOG=trace ./my-mcp-server # Trace logging (verbose)