# kindgi mcp

> Manage MCP servers: entries in .mcp.json (add / list / remove / presets), and connection presets registered at the runtime (add)

## `kindgi mcp`

**Synopsis**

```sh signature
kindgi mcp <command>
```

Manage MCP servers: entries in .mcp.json (add / list / remove / presets), and connection presets registered at the runtime (add).

**Commands**

| Command                                                                                        | Description                                                                                                             |
| ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| [`kindgi mcp add`](https://docs.kindgi.com/v0.8.0/reference/cli/mcp.md#kindgi-mcp-add)         | Add an MCP server from a preset.                                                                                        |
| [`kindgi mcp list`](https://docs.kindgi.com/v0.8.0/reference/cli/mcp.md#kindgi-mcp-list)       | List MCP servers configured in .mcp.json.                                                                               |
| [`kindgi mcp remove`](https://docs.kindgi.com/v0.8.0/reference/cli/mcp.md#kindgi-mcp-remove)   | Remove a server entry from .mcp.json.                                                                                   |
| [`kindgi mcp presets`](https://docs.kindgi.com/v0.8.0/reference/cli/mcp.md#kindgi-mcp-presets) | List the MCP presets shipped with the CLI: the ones the launcher runs, and the connection presets (`auth: connection`). |

**See also**

- [Asana](https://docs.kindgi.com/v0.8.0/guides/connections/asana.md)
- [HubSpot](https://docs.kindgi.com/v0.8.0/guides/connections/hubspot.md)
- [Use an MCP server's tools](https://docs.kindgi.com/v0.8.0/guides/tools/mcp-servers.md)
- [Your coding agent](https://docs.kindgi.com/v0.8.0/start/coding-agents.md)

### `kindgi mcp add`

**Synopsis**

```sh signature
kindgi mcp add <KIND> [--secret=<name>] [--as=<person|company>] [--env=<name>] [--scope=<kind>[:id]] [--server-name=<label>] [--path=<pack-dir>] [--force]
```

Add an MCP server from a preset. A preset the launcher runs goes into .mcp.json, with its secret read at start. A connection preset (`hubspot`, `asana`) is the vendor's own server: it's registered at the runtime, and signs in as each person's own connection to the app, or the company's (`--as company`).

**Options**

| Option                  | Default                                                                                                                                                   | Description                                                                                                                                                                                                   |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--as <value>`          | `person` (a connection preset only; refused for a preset the launcher runs)                                                                               | A connection preset's sign-in: `person`, each person's own connection to the app, or `company`, the company's. Its tools are listed with your own connection, or the company's. Only for a connection preset. |
| `--env <value>`         | `local`; for a connection preset, the env of the one connection its tools are listed with (required when there are such connections in more than one env) | The environment whose env files hold the secret. Default: `local`. For a connection preset: the env of the connection its tools are listed with, needed only when there's one in more than one env.           |
| `--force`               | off                                                                                                                                                       | Replace an entry with the same name, or, for a connection preset, an endpoint with the same id. By default `add` refuses.                                                                                     |
| `--path <value>`        | the current directory (refused for a connection preset)                                                                                                   | The pack root, where `.mcp.json` is. Default: the current directory. Not for a connection preset.                                                                                                             |
| `--scope <value>`       | `tenant`                                                                                                                                                  | The secret's scope, recorded in the entry, or a connection preset's endpoint's scope at the runtime: `tenant` (default), `org:<id>` or `project:<id>`.                                                        |
| `--secret <value>`      | required (refused for a connection preset)                                                                                                                | The secret's name in the pack's env files for `--env`; the server gets its value at start, never `.mcp.json`. Required for a preset the launcher runs; a connection preset has none.                          |
| `--server-name <value>` | derived from `--secret` (lowercased, trailing `_url`/`_key`/`_token` etc. stripped); for a connection preset, the preset kind (`hubspot`)                 | The entry's name in `.mcp.json`. Default: derived from `--secret` (`MY_DB_URL` becomes `my_db`). For a connection preset: the endpoint's id at the runtime, by default the preset's kind.                     |

Every command also takes the [global flags](https://docs.kindgi.com/v0.8.0/reference/cli.md#global-flags).

**Examples**

Register HubSpot's own MCP server at the runtime. Each person's calls sign in as their own HubSpot connection, and its tools are listed with yours: connect first with `kindgi connections connect hubspot`.

```sh
kindgi mcp add hubspot
```

Register Asana's own MCP server for one project, signing in as the company's Asana connection, which a tenant admin connects with `kindgi connections connect asana --for-company`.

```sh
kindgi mcp add asana --as=company --scope=project:<project-id>
```

From [Asana](https://docs.kindgi.com/v0.8.0/guides/connections/asana.md):

```sh
pnpm exec kindgi mcp add asana
pnpm exec kindgi mcp add asana --as=company --scope=project:<project-id>
```

**See also**

- [Asana](https://docs.kindgi.com/v0.8.0/guides/connections/asana.md)
- [HubSpot](https://docs.kindgi.com/v0.8.0/guides/connections/hubspot.md)
- [Use an MCP server's tools](https://docs.kindgi.com/v0.8.0/guides/tools/mcp-servers.md)
- [Your coding agent](https://docs.kindgi.com/v0.8.0/start/coding-agents.md)
- [`kindgi mcp`](https://docs.kindgi.com/v0.8.0/reference/cli/mcp.md#kindgi-mcp)

### `kindgi mcp list`

**Synopsis**

```sh signature
kindgi mcp list [--path=<pack-dir>]
```

List MCP servers configured in .mcp.json.

**Options**

| Option           | Default               | Description                                                          |
| ---------------- | --------------------- | -------------------------------------------------------------------- |
| `--path <value>` | the current directory | The pack root, where `.mcp.json` is. Default: the current directory. |

Every command also takes the [global flags](https://docs.kindgi.com/v0.8.0/reference/cli.md#global-flags).

**Examples**

List the servers in the current pack's .mcp.json.

```sh
kindgi mcp list
```

List the servers of a pack in another directory.

```sh
kindgi mcp list --path=./acme-pack
```

**See also**

- [Asana](https://docs.kindgi.com/v0.8.0/guides/connections/asana.md)
- [HubSpot](https://docs.kindgi.com/v0.8.0/guides/connections/hubspot.md)
- [Use an MCP server's tools](https://docs.kindgi.com/v0.8.0/guides/tools/mcp-servers.md)
- [Your coding agent](https://docs.kindgi.com/v0.8.0/start/coding-agents.md)
- [`kindgi mcp`](https://docs.kindgi.com/v0.8.0/reference/cli/mcp.md#kindgi-mcp)

### `kindgi mcp remove`

**Synopsis**

```sh signature
kindgi mcp remove <SERVER_NAME> [--path=<pack-dir>]
```

Remove a server entry from .mcp.json. Idempotent.

**Options**

| Option           | Default               | Description                                                          |
| ---------------- | --------------------- | -------------------------------------------------------------------- |
| `--path <value>` | the current directory | The pack root, where `.mcp.json` is. Default: the current directory. |

Every command also takes the [global flags](https://docs.kindgi.com/v0.8.0/reference/cli.md#global-flags).

**Examples**

Remove a server entry from .mcp.json.

```sh
kindgi mcp remove my_db
```

Remove an entry from a pack in another directory.

```sh
kindgi mcp remove my_db --path=./acme-pack
```

**See also**

- [Asana](https://docs.kindgi.com/v0.8.0/guides/connections/asana.md)
- [HubSpot](https://docs.kindgi.com/v0.8.0/guides/connections/hubspot.md)
- [Use an MCP server's tools](https://docs.kindgi.com/v0.8.0/guides/tools/mcp-servers.md)
- [Your coding agent](https://docs.kindgi.com/v0.8.0/start/coding-agents.md)
- [`kindgi mcp`](https://docs.kindgi.com/v0.8.0/reference/cli/mcp.md#kindgi-mcp)

### `kindgi mcp presets`

**Synopsis**

```sh signature
kindgi mcp presets
```

List the MCP presets shipped with the CLI: the ones the launcher runs, and the connection presets (`auth: connection`).

**Options**

Every command also takes the [global flags](https://docs.kindgi.com/v0.8.0/reference/cli.md#global-flags).

**Examples**

From [Your coding agent](https://docs.kindgi.com/v0.8.0/start/coding-agents.md):

```sh
pnpm exec kindgi mcp presets
```

**See also**

- [Your coding agent](https://docs.kindgi.com/v0.8.0/start/coding-agents.md)
- [`kindgi mcp`](https://docs.kindgi.com/v0.8.0/reference/cli/mcp.md#kindgi-mcp)
