validate_config
Validate an oh-my-posh configuration against the schema. Supports JSON, YAML, and TOML formats.
formatcontentrequired
dev.ohmyposhPublished by ohmyposh.devOfficial publisherv31.8.0Updated Oct 24, 2026
Validate oh-my-posh configurations and segment snippets against the official schema.
Oh My Posh Validator's hosted MCP server (ohmyposh.dev), published by ohmyposh.dev; no sign-in required; Streamable HTTP; 2 tools.
No AI overview yet: these facts come from the registry entry and the server itself.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/dev.ohmyposh%2Fvalidator/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Add this to your client's mcpServers config.
{
"mcpServers": {
"oh-my-posh-validator": {
"type": "http",
"url": "https://ohmyposh.dev/api/mcp"
}
}
}This directory contains the Azure Function that implements the Model Context Protocol (MCP) server for validating oh-my-posh configurations.
POST /api/mcp - MCP server endpoint that handles validation requestsGET /api/mcp - Returns server information and available toolsValidate an oh-my-posh configuration.
Validate a segment snippet (individual prompt segment).
Configure your MCP client to connect to this server:
The validation result includes:
valid: Boolean indicating if the configuration is validerrors: Array of validation errors (if any)warnings: Array of warnings (best practices, deprecations)detectedFormat: The detected or specified formatparsedConfig: The parsed configuration object (for debugging)Example response:
To test locally:
Then send requests to http://localhost:7071/api/mcp
This server is published to the MCP Registry using GitHub Actions.
Publishing is triggered automatically when you push a version tag (same as oh-my-posh releases):
The workflow will:
v9.0.0 → 9.0.0)server.json version to matchserver.json fileNote: The MCP server version will stay in sync with oh-my-posh versions automatically.
server.json - MCP Registry server configurationserver.schema.json - JSON schema for validationvalidate-server.js - Validation script.github/workflows/publish-mcp.yml - GitHub Actions workflowSource: website/api/mcp/README.md at commit e6c9eb7
Validate an oh-my-posh configuration against the schema. Supports JSON, YAML, and TOML formats.
formatcontentrequiredValidate a segment snippet against the oh-my-posh schema. Useful for validating individual prompt segments before adding them to a configuration.
formatcontentrequired100% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
{ "mcpServers": { "oh-my-posh-validator": { "type": "http", "url": "https://ohmyposh.dev/api/mcp" } }}curl https://ohmyposh.dev/api/mcpcurl -X POST https://ohmyposh.dev/api/mcp \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "method": "tools/list", "id": 1 }'curl -X POST https://ohmyposh.dev/api/mcp \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "method": "tools/call", "params": { "name": "validate_config", "arguments": { "content": "{\"$schema\":\"https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json\",\"blocks\":[]}", "format": "json" } }, "id": 1 }'curl -X POST https://ohmyposh.dev/api/mcp \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "method": "tools/call", "params": { "name": "validate_segment", "arguments": { "content": "{\"type\":\"path\",\"style\":\"powerline\",\"foreground\":\"#ffffff\",\"background\":\"#61AFEF\",\"template\":\" {{ .Path }} \"}", "format": "json" } }, "id": 2 }'{ "jsonrpc": "2.0", "result": { "content": [ { "type": "text", "text": "{ \"valid\": true, \"errors\": [], \"warnings\": [ { \"path\": \"$schema\", \"message\": \"Consider adding \\\"$schema\\\" property for better editor support.\", \"type\": \"recommendation\" } ], \"detectedFormat\": \"json\", \"parsedConfig\": {...} }" } ] }, "id": 1}cd website/apinpm installnpm startgit tag v9.0.0git push origin v9.0.0cd website/apinpm installcd mcpnode validate-server.js