---
name: setup
description: 优先用于安装/更新路由，将 setup、doctor 或 MCP 请求发送到正确的 OMC 设置流程
level: 2
---

# 设置

使用 `/oh-my-claudecode:setup` 作为统一的设置/配置入口。

## 用法

```bash
/oh-my-claudecode:setup                # full setup wizard
/oh-my-claudecode:setup doctor         # installation diagnostics
/oh-my-claudecode:setup mcp            # MCP server configuration
/oh-my-claudecode:setup wizard --local # explicit wizard path
```

## 路由

仅根据**第一个参数**处理请求，这样安装/设置问题就能立即进入正确的流程：

- 无参数、`wizard`、`local`、`global` 或 `--force` -> 使用相同的其余参数路由到 `/oh-my-claudecode:omc-setup`
- `doctor` -> 使用 `doctor` 标记之后的所有内容路由到 `/oh-my-claudecode:omc-doctor`
- `mcp` -> 使用 `mcp` 标记之后的所有内容路由到 `/oh-my-claudecode:mcp-setup`

示例：

```bash
/oh-my-claudecode:setup --local          # => /oh-my-claudecode:omc-setup --local
/oh-my-claudecode:setup doctor --json    # => /oh-my-claudecode:omc-doctor --json
/oh-my-claudecode:setup mcp github       # => /oh-my-claudecode:mcp-setup github
```

## 说明

- `/oh-my-claudecode:omc-setup`、`/oh-my-claudecode:omc-doctor` 和 `/oh-my-claudecode:mcp-setup` 仍然是有效的兼容入口。
- 在新的文档和用户指引中，优先使用 `/oh-my-claudecode:setup`。

Task: {{ARGUMENTS}}
