finops-focus-mcp

v0.2.0
io.github.aaronmsoto/finops-focus-mcp Checked 1 day ago Published 1 month ago

Unofficial MCP server for the FOCUS spec: columns, attributes, requirements, cross-version diffs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_versions List FOCUS spec versions

Every FOCUS spec version this server serves, with its source git tag and column/attribute counts. Start here to discover valid `version` values for the other tools. No parameters.

get_column Get one FOCUS column

Full record for one FOCUS column: description, content constraints (type, feature level, nulls, data type, value format), allowed values, normative requirements, and the version it was introduced in. Look up by the `column` parameter — a Column ID or its lowercase slug, e.g. 'BilledCost'.

ParameterTypeDescription
column *stringColumn ID or slug, e.g. 'BilledCost'
versionstringFOCUS spec version (1.0|1.2); default "1.2"

list_columns List FOCUS columns

All columns for one spec version, optionally filtered by feature_level (Mandatory|Conditional|Recommended) or column_type (Metric|Dimension); the extra enum value 'unknown' is a crawler parse fallback that matches no column in the shipped data. Default limit returns the full list in one call (43 in 1.0, 57 in 1.2).

ParameterTypeDescription
column_typestring
cursorstring
feature_levelstring
limitinteger
versionstringFOCUS spec version (1.0|1.2); default "1.2"

search_focus Search FOCUS columns and attributes

Ranked keyword search over one spec version's columns and attributes. Returns slug + uri per hit — feed into get_column/get_attribute. Use when you don't already know a Column ID.

ParameterTypeDescription
query *stringKeywords, e.g. 'commitment discount'
cursorstring
entity_typesarray
limitinteger
versionstringFOCUS spec version (1.0|1.2); default "1.2"

get_attribute Get one FOCUS attribute

Full record for one cross-cutting FOCUS attribute (naming/formatting conventions like currency codes, datetime format, key-value format): description, normative requirements, exceptions. Look up by the `attribute` parameter — an attribute ID or its lowercase slug, e.g. 'datetime_format'. Attribute names can change between versions; discover current slugs via search_focus with entity_types=['attribute'].

ParameterTypeDescription
attribute *stringAttribute ID or slug, e.g. 'datetime_format'
versionstringFOCUS spec version (1.0|1.2); default "1.2"

get_requirements Get a column's normative requirements

The normative MUST/SHOULD bullets for one column, verbatim from the spec text (plus source_url/license attribution). Use get_column for the full record.

ParameterTypeDescription
column *stringColumn ID or slug, e.g. 'BilledCost'
versionstringFOCUS spec version (1.0|1.2); default "1.2"

compare_versions Compare FOCUS 1.0 to 1.2

The 1.0→1.2 column diff — an UNOFFICIAL derivation computed by this server from the two tagged spec releases, source-cited per entry. Without `column`: the full diff (14 added, 0 removed, 43 changed). With `column`: that one column's status and detail.

ParameterTypeDescription
columnstringColumn ID to narrow to, e.g. 'BilledCost'

get_kpi_mapping Get the KPI-to-FOCUS-column mapping

UNOFFICIAL, derived-by-this-server mapping from framework KPIs (effective savings rate, commitment discounts, forecast accuracy, unit economics, allocation, variance) to the FOCUS columns needed to compute each, with a FOCUS-terms formula translation. Not published or endorsed by the FinOps Foundation or the FOCUS project. Filter by `kpi` slug or `capability` slug (if both are passed, `kpi` wins and `capability` is ignored), or pass neither to list everything for a `version`.

ParameterTypeDescription
capabilitystringFramework capability slug to filter by, e.g. 'rate-optimization'
kpistringFramework KPI slug, e.g. 'effective-savings-rate-percentage'
versionstringFOCUS spec version (1.0|1.2); default "1.2"

calculate_kpi Calculate a mapped KPI over bundled sample data

UNOFFICIAL: computes one of the KPIs from get_kpi_mapping using this server's own derived FOCUS-terms formula, over a bundled sample dataset — never user-supplied data. The default version (1.2) bundles only this project's seeded synthetic sample; pass version:'1.0' to compute over the official FOCUS-Sample-Data sample. Not every mapped KPI has a registered formula: some need an external input (a forecast or budget figure) FOCUS doesn't carry, or ambiguous free-text unit matching this server won't guess at; those error with guidance instead.

ParameterTypeDescription
kpi *stringFramework KPI slug, e.g. 'effective-savings-rate-percentage'
samplestringWhich bundled sample to compute over; defaults to 'official' where the version has one (currently only 1.0), else 'synthetic'. Requesting 'official' for a version without one errors.
versionstringFOCUS spec version (1.0|1.2); default "1.2"