Native stdio
With native stdio, the MCP client starts the compiled executable, writes newline-delimited JSON-RPC to its stdin, and reads MCP responses from its stdout. The process opens no network listener.
Fresh-checkout demo (synthetic Core)
Section titled “Fresh-checkout demo (synthetic Core)”This demonstration needs no real Core, credentials, Node, or model service. It is fixture-based: it exercises the compiled executable and the MCP path, not Core’s authorization engine. CI runs the same command on every pull request.
Requires Git and Rust 1.99.1 with Cargo. Run these commands in a terminal; all Cargo commands run from the cloned repository root. With rustup:
git clone https://github.com/enthouan/komodo-mcp.gitcd komodo-mcprustup toolchain install 1.99.1 --profile minimal --component rustfmt,clippycargo build --locked --release --bin komodo-mcpcargo build --locked --examplescargo run --locked --example stacks_on_server -- ./target/release/komodo-mcpThe included rust-toolchain.toml selects 1.99.1. With asdf-rust, use
asdf install instead of the rustup command; .tool-versions selects the same
version. No Node, real Core, real API credentials, or model service is needed.
If you override Cargo’s target directory, pass the actual binary path in place
of ./target/release/komodo-mcp.
The last command starts an ephemeral loopback mock, launches the compiled
production executable, initializes an official rmcp stdio client using MCP
2025-11-25, discovers the read-only tools, resolves fixture-server by exact name,
and follows list_stacks continuation with page_size: 2. It selects only
target.kind == "server" and target.id == get_server(...).id from MCP responses.
Representative output (Cargo progress and the Core read trace omitted):
Initialized MCP 2025-11-25; discovered read-only tools; called get_server and list_stacks over stdio.Stacks on fixture-server (000000000000000000000001): alpha-web (000000000000000000000002) — running gamma-jobs (000000000000000000000005) — stopped zeta-metrics (000000000000000000000008) — pausedScanned 3 pages (6 visible stacks).The client closes MCP stdin, checks a successful child exit, and stops the
mock. Stderr confirms Cleanup: MCP child exited exit status: 0; mock stopped.
(The exit-status wording varies by OS.) Failures exit nonzero and print captured
server stderr. Ctrl-C and SIGTERM also run cleanup. Exchanges, the overall
scenario, and shutdown have deadlines; repeated IDs or invalid continuation
fail explicitly with an incomplete answer instead of looping indefinitely.
Inherited KOMODO_ADDRESS, KOMODO_API_KEY, and KOMODO_API_SECRET are replaced
with explicit synthetic configuration in the child process.
Pass another exact synthetic server name as the final argument:
cargo run --locked --example stacks_on_server -- ./target/release/komodo-mcp empty-serverThis reports No matching stacks in the 6 visible stacks. for empty-server.
other-server has beta-other; the Swarm and unassigned stacks do not match a
Server. This is fixture-based verification of the SDK and MCP path; it does not
run Core’s authorization engine or contact deployed infrastructure.
For a standalone mock and a verified MCP Inspector configuration, see the interactive walkthrough. For real Core, continue below.
Rendered from README.md § Fresh-checkout demo (synthetic Core) in the repository.
Build and launch
Section titled “Build and launch”Install stable Rust 1.99.1 with Cargo, rustfmt, and Clippy (for example, using
rustup). The included rust-toolchain.toml selects this
toolchain for rustup. With asdf-rust, run asdf install; .tool-versions selects
the same version for this checkout.
cargo build --locked --releaseexport KOMODO_ADDRESS=https://komodo.example.testexport KOMODO_API_KEY=replace-with-your-api-keyexport KOMODO_API_SECRET=replace-with-your-api-secret./target/release/komodo-mcpConfigure an MCP client to launch the compiled executable using its absolute
path. The client sends newline-delimited JSON-RPC messages on the process’s
stdin and reads MCP responses from stdout. There is no interactive shell prompt.
After initialization, the client can query tools/list; closing stdin ends the
session and exits successfully.
All three environment variables are required. See .env.example
for synthetic placeholders; the executable reads its environment once and does
not load .env files. Configure these variables in your MCP client’s process
environment. Use an absolute HTTP or HTTPS address, optionally with a base path
such as https://komodo.example.test/komodo/. A trailing slash is normalized;
the path prefix is preserved. User information, query strings, fragments, empty
credentials, and invalid header characters are rejected without printing values.
Startup sends an authenticated GetVersion read before starting MCP and retains
the actual Core version alongside the shared client. Invalid configuration or a
failed version probe exits nonzero with a safe stderr diagnostic and no stdout.
The user must be enabled. Inventory reads need Read access to the relevant
Servers, Stacks, and Deployments being inspected, via a resource grant, group,
global permission, base permission, or transparent mode; admin, write, execute, and create privileges are unnecessary.
A permission-filtered empty inventory is a successful result.
Rendered from README.md § Build and launch in the repository.
Connect a client
Section titled “Connect a client”Use the absolute path of the executable you built, for example:
/absolute/path/to/komodo-mcp/target/release/komodo-mcpDesktop applications often do not inherit your shell’s PATH or working directory, so relative paths and bare command names are unreliable. Put the three Core variables in the client’s server environment, keep the four optional grants unset or false for read-only use, and follow the client-specific recipe in Set up your MCP client.
-
Initialization. The server answers MCP initialization only after its startup
GetVersionprobe to Core succeeds. A failed probe exits nonzero with a safe stderr diagnostic and no stdout. The repository’s tests use MCP2025-11-25. -
Discovery.
tools/listreturns the tools allowed by this process’s local grants and tool selection, with their schemas and effect annotations. -
First read. Call
list_stackswith no arguments, or with{"page_size": 30}, and follownext_pagewith the samepage_size. -
Shutdown. Closing stdin ends the session and the process exits successfully.
Diagnostics and logging
Section titled “Diagnostics and logging”All application and SDK diagnostics go to stderr, so stdout carries only MCP messages. Logging defaults to info and honors RUST_LOG; credential values are redacted from log events, including verbose dependency traces:
RUST_LOG=komodo_mcp=debug,rmcp=warn ./target/release/komodo-mcpYour client decides where child stderr goes. Claude Desktop writes it to mcp-server-komodo.log in its log directory; MCP Inspector shows it in its terminal. See Troubleshooting for each failure category and the interactive stdio walkthrough for a standalone mock Core and a verified MCP Inspector configuration.