<!-- Generated by `pnpm script generate-cli-docs` from `scalar context`. Do not edit by hand. -->

# scalar mcp

Manage Scalar-hosted MCP servers.

| Command | Description |
| --- | --- |
| [`scalar mcp list`](#list) | List MCP servers in the current team |
| [`scalar mcp get`](#get) | Get an MCP server and its environment versions |
| [`scalar mcp create`](#create) | Create an MCP server from an existing Registry API or Docs project |
| [`scalar mcp update`](#update) | Change an MCP server name or slug |
| [`scalar mcp delete`](#delete) | Delete an MCP server and stop its endpoints |

## list

List MCP servers in the current team.

```bash
scalar mcp list [options]
```

**Options**

| Option | Description |
| --- | --- |
| `--json` | Output server metadata as JSON. |
| `--no-input` | Disable prompts and browser launches. |

## get

Get an MCP server and its environment versions.

```bash
scalar mcp get [options] <server-id>
```

**Arguments**

| Argument | Description |
| --- | --- |
| `server-id` | **Required.** Server UUID from scalar mcp list. |

**Options**

| Option | Description |
| --- | --- |
| `--json` | Output server and environment metadata as JSON. |
| `--no-input` | Disable prompts and browser launches. |

## create

Create an MCP server from an existing Registry API or Docs project.

```bash
scalar mcp create [options]
```

**Options**

| Option | Description |
| --- | --- |
| `--name <name>` | **Required.** Server name. |
| `--slug <slug>` | Server slug (generated from the name by default). |
| `--api <reference>` | Registry API as namespace/slug[@version] (current version by default, pinned). |
| `--project <uid>` | Docs project UID (tracks its active publish). |
| `--json` | Output created server metadata as JSON. |
| `--no-input` | Disable prompts and browser launches. |

## update

Change an MCP server name or slug.

```bash
scalar mcp update [options] <server-id>
```

**Arguments**

| Argument | Description |
| --- | --- |
| `server-id` | **Required.** Server UUID from scalar mcp list. |

**Options**

| Option | Description |
| --- | --- |
| `--name <name>` | New server name. |
| `--slug <slug>` | New server slug (changes the endpoint address). |
| `--json` | Output updated server metadata as JSON. |
| `--no-input` | Disable prompts and browser launches. |

## delete

Delete an MCP server and stop its endpoints.

```bash
scalar mcp delete [options] <server-id>
```

**Arguments**

| Argument | Description |
| --- | --- |
| `server-id` | **Required.** Server UUID from scalar mcp list. |

**Options**

| Option | Description |
| --- | --- |
| `--yes` | Confirm deletion of this server without prompting. |
| `--json` | Output the deletion result as JSON (requires --yes). |
| `--no-input` | Disable prompts and browser launches. |
