Oh My Posh Configurator — Claude Code MCP server
Builds, validates, and exports Oh My Posh prompt configurations via conversational prompts. Saves you from editing raw setup files manually.
claude mcp add ohmyposh-configurator -- npx -y ohmyposh-configuratorWhat Oh My Posh Configurator does
The server exposes Oh My Posh catalog data to the AI agent, covering 103 segments across 8 categories. You can ask the assistant to arrange blocks for Git branches, battery levels, cloud providers, and development environments. It outputs ready-to-use profiles in JSON, YAML, or TOML.
The tool helps modify prompt appearances with powerline or diamond styles and injects cache parameters for slower segments. Node.js with npx must be present on the host system to run the package.
What it helps with
- generate a prompt layout with Git and Python status indicators
- convert existing prompt setups between JSON, YAML, and TOML
- apply caching to slow language runtime segments
- style terminal segments using powerline or diamond glyphs
Example prompts for the agent
- Create an Oh My Posh config showing my Git status and active Python environment.
- Add cache settings to every runtime segment in this prompt configuration.
- Export my current prompt setup as a TOML file.
How to install Oh My Posh Configurator
Platform CLI
claude mcp add ohmyposh-configurator -- npx -y ohmyposh-configuratorPlatform CLI
codex mcp add mcp -- npx -y ohmyposh-configuratorConfig file
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"ohmyposh-configurator"
]
}
}
}Config file
{
"servers": {
"mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ohmyposh-configurator"
]
}
}
}Platform CLI
gemini mcp add mcp npx -y ohmyposh-configuratorStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Oh My Posh Configurator
How do I install Oh My Posh Configurator in Claude Code?
Run claude mcp add ohmyposh-configurator -- npx -y ohmyposh-configurator in your terminal. The tool registers immediately in your Claude Code environment.
What does Oh My Posh Configurator do?
It lets an AI assistant draft, update, and validate custom shell prompts through natural language prompts. The server returns formatted configurations ready for Oh My Posh.
Which configuration formats are supported?
The server handles importing and exporting prompt definitions in JSON, YAML, and TOML formats.