# Set up with an agent

You'll have a connected MCP server and a read-only skill report from your agent.

Use a supported Mac, Node.js 18 or later, working `npx` and an MCP client that can launch a stdio process. The first start downloads the package from npm.

## Desktop

Open **Settings → Connect your agents**. Connect the agent you want to use. Cursor opens its own confirmation dialog. Restart the agent after adding the server.

## Setup prompt

Copy this prompt into your agent to have it configure and check Skill Studio.

```text
Set up Skill Studio for me. Skill Studio finds broken, duplicate and unused agent skills on this Mac and fixes or parks them, with undo. It runs as an MCP server and a CLI.

1. Add the Skill Studio MCP server to yourself at user scope. The server name is "skill-studio" and the stdio command is `npx -y skill-studio@latest mcp`. Run the line for the agent you are.
   - Claude Code: claude mcp add --scope user --transport stdio skill-studio -- npx -y skill-studio@latest mcp (if it says the server exists, run claude mcp remove --scope user skill-studio first)
   - Codex: codex mcp add skill-studio -- npx -y skill-studio@latest mcp
   - OpenCode: opencode mcp add --global skill-studio -- npx -y skill-studio@latest mcp
   - pi: pi mcp add skill-studio -- npx -y skill-studio@latest mcp
   - Grok Build: grok mcp add skill-studio -- npx -y skill-studio@latest mcp (if it says the server exists, run grok mcp remove skill-studio first)
   - VS Code: code --add-mcp '{"name":"skill-studio","type":"stdio","command":"npx","args":["-y","skill-studio@latest","mcp"]}'
   - Gemini CLI: gemini mcp add --scope user skill-studio npx -- -y skill-studio@latest mcp
   For any other agent, follow https://useskillstudio.com/docs/mcp.md.
2. Check my skills now, without changing anything: run `npx -y skill-studio@latest diagnose` and give me a short list of the problems it found. It exits with code 1 when it finds problems; that is not a failure.
3. Tell me to restart you so the skill-studio tools load. Then suggest one next step, for example: “Park the skills I haven’t used in 30 days.”
```

## Set up by hand

Add a server named `skill-studio` at user scope. Choose the instructions for your client.

### Claude Code

Run:

```sh
claude mcp add --scope user --transport stdio skill-studio -- npx -y skill-studio@latest mcp
```

If Claude Code already has a `skill-studio` entry, remove it first with `claude mcp remove --scope user skill-studio`.

Or add it to `.mcp.json (project)`:

```json
{
  "mcpServers": {
    "skill-studio": {
      "command": "npx",
      "args": [
        "-y",
        "skill-studio@latest",
        "mcp"
      ]
    }
  }
}
```

To check, run `claude mcp list` and look for `skill-studio`.

### Codex

Run:

```sh
codex mcp add skill-studio -- npx -y skill-studio@latest mcp
```

Or add it to `~/.codex/config.toml`:

```toml
[mcp_servers.skill-studio]
command = "npx"
args = ["-y", "skill-studio@latest", "mcp"]
startup_timeout_sec = 30
```

To check, run `codex mcp list` and look for `skill-studio`.

### Cursor

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=skill-studio&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInNraWxsLXN0dWRpb0BsYXRlc3QiLCJtY3AiXX0%3D) opens Cursor, which asks you to confirm.

Or add it to `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "skill-studio": {
      "command": "npx",
      "args": [
        "-y",
        "skill-studio@latest",
        "mcp"
      ]
    }
  }
}
```

To check, run `cursor-agent mcp list` and look for `skill-studio`.

### OpenCode

Run:

```sh
opencode mcp add --global skill-studio -- npx -y skill-studio@latest mcp
```

### pi

Run:

```sh
pi mcp add skill-studio -- npx -y skill-studio@latest mcp
```

Or add it to `~/.pi/agent/mcp.json`:

```json
{
  "mcpServers": {
    "skill-studio": {
      "command": "npx",
      "args": [
        "-y",
        "skill-studio@latest",
        "mcp"
      ]
    }
  }
}
```

To check, run `pi mcp list` and look for `skill-studio`.

### Grok Build

Run:

```sh
grok mcp add skill-studio -- npx -y skill-studio@latest mcp
```

If Grok Build already has a `skill-studio` entry, remove it first with `grok mcp remove skill-studio`.

To check, run `grok mcp list` and look for `skill-studio`.

### VS Code

[Add to VS Code](vscode:mcp/install?%7B%22name%22%3A%22skill-studio%22%2C%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22skill-studio%40latest%22%2C%22mcp%22%5D%7D) opens VS Code, which asks you to confirm.

Or run:

```sh
code --add-mcp '{"name":"skill-studio","type":"stdio","command":"npx","args":["-y","skill-studio@latest","mcp"]}'
```

### Gemini CLI

Run:

```sh
gemini mcp add --scope user skill-studio npx -- -y skill-studio@latest mcp
```

To check, run `gemini mcp list` and look for `skill-studio`.

### Claude Desktop

Add it to `~/Library/Application Support/Claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "skill-studio": {
      "command": "npx",
      "args": [
        "-y",
        "skill-studio@latest",
        "mcp"
      ]
    }
  }
}
```

For any other MCP client, add a stdio server named `skill-studio` with command `npx` and arguments `-y skill-studio@latest mcp`.

## Verify the connection

Restart the client and look for Skill Studio in its MCP server list. Ask it to call `diagnose` and show the issues it found. In the fixture run the MCP server identified itself as `skill-studio` version `0.4.1`. The tool response had `operation: "diagnose"` and `status: "ok"`. Read `data.issues` even when the tool call succeeds.

If the client shows the entry but the call fails, see [Troubleshooting](/docs/troubleshooting/). To undo setup, remove the `skill-studio` entry from the same client or config file and restart. Your skills stay in place.
