# WhenLabs MCP server

> Provides a developer toolkit that automates stack detection, environment validation, port conflict checking, and documentation drift detection.

- Repository: https://github.com/WhenLabs-org/when
- Page: https://hostedmcp.org/servers/whenlabs-org/when
- Transport: stdio
- Stars: 4
- License: MIT
- Latest version: 0.12.3

## Install

### Claude Code

```sh
claude mcp add when -- npx -y @whenlabs/when
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "when": {
      "command": "npx",
      "args": [
        "-y",
        "@whenlabs/when"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "when": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@whenlabs/when"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"when","type":"stdio","command":"npx","args":["-y","@whenlabs/when"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "when": {
      "command": "npx",
      "args": [
        "-y",
        "@whenlabs/when"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add when -- npx -y @whenlabs/when
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.when]
command = "npx"
args = ["-y", "@whenlabs/when"]
```

### Gemini CLI

```sh
gemini mcp add -s user when npx -- -y @whenlabs/when
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "when": {
      "command": "npx",
      "args": [
        "-y",
        "@whenlabs/when"
      ]
    }
  }
}
```

## Tools (8)

- `aware_sync`
- `berth_check`
- `envalid_validate`
- `stale_scan`
- `vow_scan`
- `velocity_start_task`
- `velocity_end_task`
- `whenlabs_summary`

## FAQ

### How do I install the WhenLabs toolkit?

You can install it using the command `npx @whenlabs/when install`.

### Can I configure the MCP server manually?

Yes, you can manually add the whenlabs server to your Claude Code MCP config using npx @whenlabs/when when-mcp.

### What does the 'when doctor' command do?

It runs all six tools and provides a unified health report for your project.
