Repository avatar
Other Tools
v1.27.0
active

gasp-standard-mcp

io.github.GASP-Standard/gasp-standard-mcp

SaaS metric definitions, formulas, benchmarks and relationships from the GASP Standard

Documentation

GASP Standard

Generally Accepted SaaS Principles. An open standard for SaaS metrics: 320 metrics across 13 departments, 123 glossary definitions, a canonical formula for every computable metric in a small tested grammar, one vocabulary of 295 fields across 56 datasets, a relationship graph of 105 nodes and 213 edges plus an MCP server that gives AI agents all of it as structured tools.

The standard is published at https://gaspwiki.com. This repository holds its source and the tooling that compiles it. It works with Apache Ossie (incubating): npm run derive writes the standard out as Ossie files, which pass the upstream validator.

What is here

PathWhat it isLicence
standard/The canon. Metric definitions per department (metrics/*.md), the glossary (definitions.md), the Commercial Event Ledger (cel.md) and Attribution Taxonomy Layer (atl.md), the ontology (ontology.json: fields, datasets, 28 entities and 7 concepts), the formulas (formulas.json: 308 entries, 298 computable and 10 with the reason they are not), the signal taxonomy, the adapter schema and the relationship graph (relationships.json)CC BY 4.0 (standard/LICENSE)
standard/exports/Generated from the canon by npm run derive: the Neo4j Cypher export, the adapter template and the Apache Ossie ontology, reference semantic model and mappingCC BY 4.0
gasp-wiki-mcp/The MCP server, published on npm as gasp-standard-mcp. The parser, formula grammar, SQL compiler, graph traversal, Ossie exporters and the test suite, which runs every compiled formula against a seeded dataset in an in-process PostgresApache 2.0 (LICENSE)
docs/Decision documents, the Ossie spike findings, the Ossie interop spec (docs/ossie-interop-spec.md) and the benchmark method and results (docs/benchmark/)CC BY 4.0
DECISIONS.mdArchitecture decision records, newest firstCC BY 4.0
GOVERNANCE.mdWho maintains the standard, how changes are decided, what counts as a breaking change and what happens if the maintainer stops
CONTRIBUTING.mdHow to propose a change and what the tests require
CHANGELOG.mdWhat changed in each release of the MCP package and the standard it bundles

Use it

Read the standard at https://gaspwiki.com/v1/overview, or in the per-department files under standard/metrics/.

Give it to an agent. The MCP server has twenty-four tools: metric and glossary lookup, canonical formulas, data requirements, SQL generation from your adapter for Postgres, Snowflake, BigQuery or Databricks, mapping validation, a compiler that writes the covered metrics into your Apache Ossie semantic model, a target writer that hands them back as a Snowflake Cortex Analyst model, a Cube data model or a dbt MetricFlow project in your warehouse's SQL, a drift scorer that runs your metrics against the canonical ones on the synthetic dataset, a schema profiler that turns your warehouse schema into a minimal Ossie model, a mapping proposer and a Decide step that records the answers people give, the SQL that derives CEL revenue and credit events from your subscription, invoice or usage ledger, the readiness checks, the ranked fix plan and a readiness report that says which level you have reached, three graph traversal tools and a classifier that runs one contract through the year-or-renewal test.

{ "mcpServers": { "gasp-standard": { "command": "npx", "args": ["-y", "gasp-standard-mcp"] } } }

GASP Standard MCP server

Map your warehouse. standard/gasp-adapter-schema.json describes the adapter file, standard/gasp-ossie-extension-v1.json the GASP payloads in the Ossie documents GASP writes, and standard/exports/gasp-adapter-template.json lists every field to fill in. validate_mapping (also validate_adapter) checks a mapping and generate_query compiles a metric against it.

Load it into a semantic layer. standard/exports/ossie/ holds the Apache Ossie ontology, semantic model and mapping. docs/ossie-spike.md explains what the files contain and how the formulas were compiled into them.

Load the graph. standard/exports/gasp-knowledge-graph.cypher imports into Neo4j.

Work on it

cd gasp-wiki-mcp
npm ci
npm run build
npm test            # parser, compiler, every formula executed on PGlite, Ossie export
npm run derive      # regenerate standard/exports and the derived parts of ontology.json after editing the canon

The formula grammar is documented at the top of gasp-wiki-mcp/src/formula.ts. Every formula in standard/formulas.json has to parse, resolve against the ontology and compile; the tests check each one. CONTRIBUTING.md lists the rest of the rules.

About this repository

GASP is written and maintained by Gareth O'Shea. Contributions are welcome: issues for proposals and questions, pull requests for wording, examples and tooling.

This repository is a mirror of the public parts of the GASP working repository, updated on every change there, so nothing merges here directly. The website's source stays private. Pull requests opened here are reviewed here and applied upstream by the maintainer. The change appears here with the next mirror push. MIRROR names the source commit.

NPM
gasp-standard-mcp
Install Command
npm install gasp-standard-mcp
Runtime: npx

Remote