> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kombai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect other products to Kombai

> MCP lets Kombai connect with external systems and data sources. Instead of describing the project structure each time, integrate the tools you already use.

You can connect MCP servers in any language capable of writing to `stdout` or hosting an HTTP endpoint — Python, JavaScript, Go, and more.

## How it works

MCP servers expose capabilities through the protocol to connect Kombai with external tools or data sources.

Kombai supports three transport methods: stdio, SSE, and streamable HTTP.

## Installing MCP servers

**1. Open the MCP server settings**

Under [Settings](https://docs.kombai.com/account/settings.md), select **MCPs** under **Connections**.

In the desktop app, select a project first. With no project selected, the page lists no servers and **+ Add MCP** doesn't open the file.

**2. Open the MCP configuration file**

Click **+ Add MCP** to open your global `~/.kombai/mcp.json`. Kombai creates the file if it doesn't exist. In the desktop app, the file opens as an **mcp.json** tab in the right panel.

**3. Configure your MCP server**

Add your MCP server configuration inside the `mcpServers` object and save the file. The `mcpServers` wrapper is optional: if the file has no `mcpServers` object, Kombai reads servers listed at the top level instead. If it has one, Kombai reads only the servers inside it. The file can contain comments.

See the [examples below](#examples) for common server configurations.

**4. Verify your MCP server**

After you save, the **MCPs** page lists your server with its connection status.

### Examples

Set up custom MCP servers using a JSON configuration file:

#### CLI Server - Node.js

```json theme={null}
{
  "mcpServers": {
    "server-name": {
      "command": "npx",
      "args": ["-y", "mcp-server"],
      "env": {
        "API_KEY": "value"
      }
    }
  }
}
```

#### CLI Server - Python

```python theme={null}
{
  "mcpServers": {
    "server-name": {
      "command": "python",
      "args": ["mcp-server.py"],
      "env": {
        "API_KEY": "value"
      }
    }
  }
}
```

#### Remote Server

```json theme={null}
// MCP server using HTTP or SSE - hosted on a server
{
  "mcpServers": {
    "server-name": {
      "url": "http://localhost:3000/mcp",
      "headers": {
        "API_KEY": "value"
      }
    }
  }
}
```

### Static OAuth for remote servers

For MCP servers that rely on OAuth, you can supply **static OAuth client credentials** in `mcp.json` rather than using dynamic client registration. This is useful when:

* The MCP provider supplies you with a fixed **Client ID** (and optionally a **Client Secret**)
* The provider requires **whitelisting a redirect URL** (e.g. Figma, Linear). Use `http://127.0.0.1:19876/mcp/oauth/callback`.
* The provider does not support OAuth 2.0 Dynamic Client Registration

#### Remote Server with Static OAuth

Include an auth object in remote server entries that specify a url:

```json theme={null}
{
  "mcpServers": {
    "oauth-server": {
      "url": "https://api.example.com/mcp",
      "auth": {
        "CLIENT_ID": "your-oauth-client-id",
        "CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}
```

| Field | Required | Description |
| - | - | - |
| CLIENT\_ID | No | OAuth 2.0 Client ID provided by the MCP provider |
| CLIENT\_SECRET | No | OAuth 2.0 Client Secret, for providers that use confidential clients. Used only when `CLIENT_ID` is also set. |

If you leave out `CLIENT_ID`, Kombai registers itself with the provider through OAuth 2.0 Dynamic Client Registration.

### Values are used literally

Kombai uses the values in `mcp.json` exactly as written. It doesn't expand variable references such as `${env:MCP_CLIENT_ID}`, so write the actual value. In a chat with the Kombai Agent, a stdio server process also inherits Kombai's environment variables, so a key it reads from the environment doesn't need to be in `mcp.json`. Codex starts servers with a minimal environment, so for chats that use [Codex](https://docs.kombai.com/features/local-agents.md), put every variable the server needs in `env`.

## STDIO server configuration

For STDIO servers (local command-line servers), set the following fields in your `mcp.json`:

| Field | Required | Description | Examples |
| - | - | - | - |
| type | No | Accepted for compatibility and ignored. Kombai treats any entry with a `command` as a stdio server. | `"stdio"` |
| command | Yes | Command to launch the server executable. Must be accessible on your system path or specified as a full path. Can also be an array of the command and its arguments. | `"npx"`, `"node"`, `"python"`, `"docker"` |
| args | No | Array of arguments passed to the command | `["server.py", "--port", "3000"]` |
| env | No | Environment variables for the server process, added to the ones it inherits from Kombai. `environment` is accepted as an alias. | `{"API_KEY": "<YOUR_API_KEY>"}` |
| timeout | No | Timeout in milliseconds. See [Timeouts](#timeouts). | `120000` |

## Remote server configuration

For remote servers, set the following fields:

| Field | Required | Description |
| - | - | - |
| url | Yes | URL of the server's endpoint |
| type | No | `"streamable-http"` or `"sse"` to force a transport. If left out, the Kombai Agent tries streamable HTTP first, then SSE, and Claude Code chats use streamable HTTP. Codex chats skip servers set to `"sse"`. |
| headers | No | HTTP headers sent with every request |
| auth | No | Static OAuth client credentials. See [Static OAuth for remote servers](#static-oauth-for-remote-servers). |
| timeout | No | Timeout in milliseconds. See [Timeouts](#timeouts). |

## Timeouts

What `timeout` controls depends on the agent running the chat:

* **Kombai Agent:** How long Kombai waits to connect to the server and load its tools. Defaults to `60000`. It doesn't apply to tool calls, which time out after 60 seconds by default.
* **Claude Code and Codex** ([Local agents](https://docs.kombai.com/features/local-agents.md)): How long each tool call can take. Defaults to `120000`.

## Configuration locations

> [card] Project Configuration
>
> Place `.kombai/mcp.json` in your project root for project-specific tools.

> [card] Global Configuration
>
> Place `~/.kombai/mcp.json` in your home directory for tools accessible across all projects.

If both files define a server with the same name, the project entry is used. The **+ Add MCP** button opens the global file.

## Manage servers

Each server on the **MCPs** page shows its status and a badge for where it's configured: **Project** for the project file, or **User** for the global file. Hover over a server for these actions, or use its **⋯** menu when the settings panel is narrow:

* **Reconnect server**: reconnect to the server.
* **Edit mcp.json**: open the configuration file that defines the server.
* **Remove server**: delete the server's entry from that file and sign out of the server. Kombai removes it right away, without asking you to confirm.

Use the toggle next to a server to disable or enable it. Disabling a server keeps its entry in `mcp.json`.

To turn off individual tools, click a connected server to expand it, then click a tool to disable it. Click it again to enable it.

If the server's status reads **Needs authentication**, click **Sign in**, shown in place of the toggle, to sign in to the provider in your browser. The other statuses are **Connected**, **Connecting…**, **Disabled**, **Failed**, and **Needs client ID**.

If `mcp.json` can't be parsed, the **MCPs** page shows an **Invalid mcp.json** banner with the error. If the file parses but a server entry is invalid, such as one with neither `command` nor `url`, Kombai skips that server without an error, and it doesn't appear on the page.

Claude Code and Codex chats leave out a server named `kombai` or `kombai-hosted`. Rename it to use it there.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.