Oh My Posh Configurator
v1.1.1MCP server for creating, validating, and exporting Oh My Posh terminal prompt configurations.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_configuration
Create a new Oh My Posh configuration from a natural language description. Generates a complete configuration with blocks, segments, and smart defaults.
| Parameter | Type | Description |
|---|---|---|
description * | string | Natural language description of the desired prompt (e.g., "developer prompt with git and python") |
segments | array | Optional list of segment types to include (e.g., ["path", "git", "python"]) |
style | string | Style for all segments (default: powerline) |
add_segment
Add a segment to an existing Oh My Posh configuration with smart defaults. Automatically applies appropriate colors, templates, and options based on segment type.
| Parameter | Type | Description |
|---|---|---|
config * | string | The existing Oh My Posh configuration as JSON string |
segmentType * | string | The type of segment to add (e.g., "git", "python", "aws") |
blockIndex | number | The index of the block to add the segment to (default: 0) |
style | string | Style for the segment (default: powerline) |
template | string | Optional custom template for the segment |
modify_configuration
Modify an existing Oh My Posh configuration. Can update global settings, add/remove blocks, modify segments, or change colors and templates.
| Parameter | Type | Description |
|---|---|---|
config * | string | The existing Oh My Posh configuration as JSON string |
modifications * | object | Object describing the modifications to make (e.g., {"final_space": false, "palette": {...}}) |
validate_configuration
Validate an Oh My Posh configuration for correctness. Checks required fields, structure, and palette references.
| Parameter | Type | Description |
|---|---|---|
config * | string | The Oh My Posh configuration to validate as JSON string |
export_configuration
Export an Oh My Posh configuration in different formats (JSON, YAML, TOML). Automatically cleans internal IDs and ensures proper formatting.
| Parameter | Type | Description |
|---|---|---|
config * | string | The Oh My Posh configuration as JSON string |
format | string | Output format (default: json) |
list_segments
List all available Oh My Posh segments with their descriptions, categories, and default settings. Can filter by category or search by keyword.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter segments by category |
search | string | Search segments by name, type, or description |
get_segment_info
Get detailed information about a specific segment type including properties, options, and template variables.
| Parameter | Type | Description |
|---|---|---|
segmentType * | string | The segment type to get information about (e.g., "git", "python") |
list_sample_configs
List all available sample configurations with descriptions and tags.
load_sample_config
Load a specific sample configuration by ID.
| Parameter | Type | Description |
|---|---|---|
configId * | string | The ID of the sample configuration to load |
search_ohmyposh_docs
Get links to the official Oh My Posh documentation at https://ohmyposh.dev/docs/ for a given topic. Returns documentation URLs and guidance for segments, configuration options, templates, and features.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query (e.g., "git segment options", "powerline symbols", "color templates") |
topic | string | Optional: Narrow search to a specific documentation topic |
get_ohmyposh_segment_docs
Get the official Oh My Posh documentation for a specific segment type. Returns detailed information from https://ohmyposh.dev/docs/segments/
| Parameter | Type | Description |
|---|---|---|
segmentType * | string | The segment type to get documentation for (e.g., "git", "python", "aws") |
get_ohmyposh_cli_status
Check whether Oh My Posh is installed locally for this MCP server and return its version when available.
render_live_preview
Explicitly render an Oh My Posh configuration with the locally installed Oh My Posh CLI. This evaluates the configuration against the local environment and returns terminal ANSI output for the MCP preview app.
| Parameter | Type | Description |
|---|---|---|
acknowledgeRisk * | boolean | Must be true to confirm that rendering executes the local Oh My Posh CLI against this configuration. |
config * | string | The Oh My Posh configuration to render as a JSON string |