Skip to content

Komodo Core credentials

komodo-mcp acts as exactly one Komodo Core identity: the user that owns the API key and secret you configure. Every call uses that identity’s Core permissions. There is no credential fallback. Provision this initial identity and its API key in Komodo: komodo-mcp does not create human accounts or passwords and never issues API keys. Its opt-in administration tools can create a service user, but that user has no keys until you create them in Komodo.

  1. Use an enabled, non-admin identity. A dedicated user or service user makes the MCP client’s access easy to audit and revoke. A disabled user fails the startup probe.

  2. Grant Read where you want visibility. Inventory and diagnosis need Read on the Servers, Stacks, and Deployments being inspected, through a resource grant, a user group, a global or base permission, or transparent mode. Log tools may also need Logs where the requested Core API requires it. Admin, Write, Execute, and Create are unnecessary for read-only use.

  3. Create an API key and secret for that identity in Komodo. Store both in a password manager or your client’s secret store. Treat the pair like a password: anyone holding it can act as that user.

  4. Find the Core address. Use the absolute URL your browser uses for Komodo Core, including any base path, for example https://komodo.example.test/komodo/. Point it at the final URL: komodo-mcp does not follow redirects, so credentials never leave the configured Core.

See the Komodo documentation for creating users, service users, and API keys in your Core version.

The transport and credential table shows which values go in the stdio launcher, the HTTP server and each HTTP client. Run separate instances with separately scoped Core accounts when HTTP callers need different resource access.

All three variables are required. Put them in the environment of the MCP server process, usually through your client’s server configuration.

VariablePlaceholderMeaning
KOMODO_ADDRESShttps://komodo.example.testAbsolute HTTP or HTTPS address of Komodo Core, optionally with a base path. User information, query strings, and fragments are rejected; redirects are not followed.
KOMODO_API_KEYreplace-with-your-api-keyAPI key of the enabled Core identity whose permissions every call uses.
KOMODO_API_SECRETreplace-with-your-api-secretAPI secret paired with that key. Never shown in output, logs, or Debug formatting.
Synthetic placeholders (.env.example)
export KOMODO_ADDRESS=https://komodo.example.test
export KOMODO_API_KEY=replace-with-your-api-key
export KOMODO_API_SECRET=replace-with-your-api-secret

Before it answers MCP initialization, komodo-mcp validates the configuration and sends one authenticated GetVersion read. Invalid configuration fails before contacting Core. A rejected key, a disabled user, or an unreachable address exits with a safe stderr diagnostic such as authentication (GetVersion) or unreachable (GetVersion). No credential value is ever printed.

Separate local grants from Core permissions

Section titled “Separate local grants from Core permissions”

Core permissions decide what the identity may do. The four optional KOMODO_ALLOW_* grants decide which tools are eligible. The process can further narrow the list through its tool selection. Both must allow a change: enabling KOMODO_ALLOW_OPERATE=true without Core Execute on a Stack does not let you deploy it, and Core Execute without the local grant does not expose the operation tools. See Configuration.

Create the replacement key in Komodo, update the client’s environment, restart the MCP server, verify with list_stacks, then delete the old key in Komodo. After you delete the key or disable the identity in Komodo, subsequent komodo-mcp requests fail with an authentication error.