# Oh My Posh MCP server

> Validates oh-my-posh configuration files and segment snippets against the official schema, returning errors and warnings.

- Repository: https://github.com/JanDeDobbeleer/oh-my-posh
- Page: https://hostedmcp.org/servers/jandedobbeleer/validator
- Transport: remote
- Stars: 23757
- License: MIT
- Latest version: 31.8.0

## Install

### Claude Code

```sh
claude mcp add --transport http validator https://ohmyposh.dev/api/mcp
```

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

```json
{
  "mcpServers": {
    "validator": {
      "url": "https://ohmyposh.dev/api/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "validator": {
      "type": "http",
      "url": "https://ohmyposh.dev/api/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"validator","type":"http","url":"https://ohmyposh.dev/api/mcp"}'
```

### Codex

```sh
codex mcp add validator --url https://ohmyposh.dev/api/mcp
```

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

```toml
[mcp_servers.validator]
url = "https://ohmyposh.dev/api/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http validator https://ohmyposh.dev/api/mcp
```

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

```json
{
  "mcpServers": {
    "validator": {
      "url": "https://ohmyposh.dev/api/mcp",
      "type": "http"
    }
  }
}
```

## FAQ

### What tools does the Oh My Posh validator MCP server expose?

It exposes two tools: validate_config for full configurations and validate_segment for individual prompt segments.

### Which configuration formats can be validated?

The server supports JSON, YAML, and TOML formats.

### What does the validation response contain?

It returns a valid flag, arrays of errors and warnings, the detected format, and the parsed configuration.
