Oh My Posh Configurator

v1.1.1
io.github.jamesmontemagno/ohmyposh-configurator Checked 1 day ago Published 4 months ago

MCP 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.

ParameterTypeDescription
description *stringNatural language description of the desired prompt (e.g., "developer prompt with git and python")
segmentsarrayOptional list of segment types to include (e.g., ["path", "git", "python"])
stylestringStyle 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.

ParameterTypeDescription
config *stringThe existing Oh My Posh configuration as JSON string
segmentType *stringThe type of segment to add (e.g., "git", "python", "aws")
blockIndexnumberThe index of the block to add the segment to (default: 0)
stylestringStyle for the segment (default: powerline)
templatestringOptional 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.

ParameterTypeDescription
config *stringThe existing Oh My Posh configuration as JSON string
modifications *objectObject 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.

ParameterTypeDescription
config *stringThe 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.

ParameterTypeDescription
config *stringThe Oh My Posh configuration as JSON string
formatstringOutput 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.

ParameterTypeDescription
categorystringFilter segments by category
searchstringSearch segments by name, type, or description

get_segment_info

Get detailed information about a specific segment type including properties, options, and template variables.

ParameterTypeDescription
segmentType *stringThe 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.

ParameterTypeDescription
configId *stringThe 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.

ParameterTypeDescription
query *stringSearch query (e.g., "git segment options", "powerline symbols", "color templates")
topicstringOptional: 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/

ParameterTypeDescription
segmentType *stringThe 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.

ParameterTypeDescription
acknowledgeRisk *booleanMust be true to confirm that rendering executes the local Oh My Posh CLI against this configuration.
config *stringThe Oh My Posh configuration to render as a JSON string