gasp-standard-mcp 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,21 +1,183 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 GASP Standard
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and the Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of discussing and
55
+ improving the Work, but excluding communication that is conspicuously
56
+ marked or designated in writing by the copyright owner as "Not a
57
+ Contribution."
58
+
59
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
+ whom a Contribution has been received by the Licensor and subsequently
61
+ incorporated within the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent claims licensable
76
+ by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by combination of their Contribution(s)
78
+ with the Work to which such Contribution(s) was submitted. If You
79
+ institute patent litigation against any entity (including a cross-claim
80
+ or counterclaim in a lawsuit) alleging that the Work or a Contribution
81
+ incorporated within the Work constitutes patent or contributory patent
82
+ infringement, then any patent licenses granted to You under this License
83
+ for that Work shall terminate as of the date such litigation is filed.
84
+
85
+ 4. Redistribution. You may reproduce and distribute copies of the
86
+ Work or Derivative Works thereof in any medium, with or without
87
+ modifications, and in Source or Object form, provided that You
88
+ meet the following conditions:
89
+
90
+ (a) You must give any other recipients of the Work or
91
+ Derivative Works a copy of this License; and
92
+
93
+ (b) You must cause any modified files to carry prominent notices
94
+ stating that You changed the files; and
95
+
96
+ (c) You must retain, in the Source form of any Derivative Works
97
+ that You distribute, all copyright, patent, trademark, and
98
+ attribution notices from the Source form of the Work,
99
+ excluding those notices that do not pertain to any part of
100
+ the Derivative Works; and
101
+
102
+ (d) If the Work includes a "NOTICE" text file, You must include a
103
+ readable copy of the attribution notices contained within such
104
+ NOTICE file, in at least one of the following places: within a
105
+ Derivative Works that You distribute, in the Source form or
106
+ documentation, if provided along with the Derivative Works, or,
107
+ within a display generated by the Derivative Works, if and
108
+ wherever such third-party notices normally appear. The contents
109
+ of the NOTICE file are for informational purposes only and
110
+ do not modify the License. You may add Your own attribution
111
+ notices within Derivative Works that You distribute, alongside
112
+ or as an addendum to the NOTICE text from the Work, provided
113
+ that such additional attribution notices cannot be construed
114
+ as modifying the License.
115
+
116
+ You may add Your own license statement for Your modifications and
117
+ may provide additional grant of rights to use, copy, modify, and
118
+ distribute those modifications or such Derivative Works as a whole,
119
+ under terms You choose, provided Your use, reproduction, and
120
+ distribution of the Work otherwise complies with the conditions
121
+ stated in this License.
122
+
123
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
124
+ any Contribution intentionally submitted for inclusion in the Work
125
+ by You to the Licensor shall be under the terms and conditions of
126
+ this License, without any additional terms or conditions.
127
+ Notwithstanding the above, nothing herein shall supersede or modify
128
+ the terms of any separate license agreement you may have executed
129
+ with Licensor regarding such Contributions.
130
+
131
+ 6. Trademarks. This License does not grant permission to use the trade
132
+ names, trademarks, service marks, or product names of the Licensor,
133
+ except as required for reasonable and customary use in describing the
134
+ origin of the Work and reproducing the content of the NOTICE file.
135
+
136
+ 7. Disclaimer of Warranty. Unless required by applicable law or
137
+ agreed to in writing, Licensor provides the Work (and each
138
+ Contributor provides its Contributions) on an "AS IS" BASIS,
139
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
140
+ implied, including, without limitation, any warranties or conditions
141
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
142
+ PARTICULAR PURPOSE. You are solely responsible for determining the
143
+ appropriateness of using or reproducing the Work and assume any
144
+ risks associated with Your exercise of permissions under this License.
145
+
146
+ 8. Limitation of Liability. In no event and under no legal theory,
147
+ whether in tort (including negligence), contract, or otherwise,
148
+ unless required by applicable law (such as deliberate and grossly
149
+ negligent acts) or agreed to in writing, shall any Contributor be
150
+ liable to You for damages, including any direct, indirect, special,
151
+ incidental, or exemplary damages of any character arising as a
152
+ result of this License or out of the use or inability to use the
153
+ Work (including but not limited to damages for loss of goodwill,
154
+ work stoppage, computer failure or malfunction, or all other
155
+ commercial damages or losses), even if such Contributor has been
156
+ advised of the possibility of such damages.
157
+
158
+ 9. Accepting Warranty or Additional Liability. While redistributing
159
+ the Work or Derivative Works thereof, You may choose to offer,
160
+ and charge a fee for, acceptance of support, warranty, indemnity,
161
+ or other liability obligations and/or rights consistent with this
162
+ License. However, in accepting such obligations, You may act only
163
+ on Your own behalf and on Your sole responsibility, not on behalf
164
+ of any other Contributor, and only if You agree to indemnify,
165
+ defend, and hold each Contributor harmless for any liability
166
+ incurred by, or claims asserted against, such Contributor by reason
167
+ of your accepting any such warranty or additional liability.
168
+
169
+ END OF TERMS AND CONDITIONS
170
+
171
+ Copyright 2025-present 403page labs (https://403.ie)
172
+
173
+ Licensed under the Apache License, Version 2.0 (the "License");
174
+ you may not use this file except in compliance with the License.
175
+ You may obtain a copy of the License at
176
+
177
+ http://www.apache.org/licenses/LICENSE-2.0
178
+
179
+ Unless required by applicable law or agreed to in writing, software
180
+ distributed under the License is distributed on an "AS IS" BASIS,
181
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
182
+ See the License for the specific language governing permissions and
183
+ limitations under the License.
package/README.md CHANGED
@@ -36,7 +36,7 @@ Restart your MCP client after adding the config.
36
36
  | `lookup_metric` | Full metric details: definition, formula, benchmarks, entity, common mistakes, sources |
37
37
  | `list_metrics` | List all metrics, optionally filtered by department and/or signal type |
38
38
  | `get_formula` | Get formula(s) for a metric |
39
- | `get_relationships` | Upstream/downstream relationships for metrics, entities, or concepts — includes business model edges (OWNS, GRANTS, CONVERTS_TO, etc.) |
39
+ | `get_relationships` | Upstream/downstream relationships for metrics, entities, or concepts — 21 relationship types across signal, lifecycle, ownership, interaction, and financial flow categories |
40
40
  | `get_data_requirements` | Data requirements for implementing a metric: fields, types, grain, source, and example SQL |
41
41
  | `search` | Full-text search across metrics, definitions, and data requirements |
42
42
  | `generate_query` | Generate warehouse-specific SQL from a metric name + adapter mapping |
@@ -47,7 +47,7 @@ Restart your MCP client after adding the config.
47
47
  - 300 metrics across 13 departments
48
48
  - 92 glossary definitions (80 SaaS domain + 12 GASP framework)
49
49
  - 82 relationship nodes (60 metrics + 15 entities + 7 concepts), 164 edges
50
- - 22 entity-to-entity business model edges (OWNS, GRANTS, CONVERTS_TO, GENERATES, PARENT_OF, PRICED_BY, REPRESENTED_BY, etc.)
50
+ - 21 relationship types: metric signal (drives, reduces, predicts, component, measures), entity lifecycle (converts_to, parent_of, belongs_to), entity ownership (owns, grants, priced_by), entity interactions (manages, serves, engages_via, submits, represented_by, sources), entity financial flows (generates, produces, contributes_to, incurs)
51
51
  - 78 data requirements with field types, grain, and example SQL
52
52
  - 15 business entities (Customer, Subscription, License, Lead, Opportunity, User, Ticket, Employee, Invoice, Partner, Project, Plan, Product, Campaign, Contact)
53
53
  - 7 business concepts (Revenue, Bookings, COGS, Cohort, Pipeline, Segment, TCV)
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
3
  * Export all parsed GASP Standard data as a single JSON file.
4
- * Output: website/public/api/standard.json
4
+ * Output: gasp-wiki-frontend/public/api/standard.json
5
5
  *
6
6
  * Usage: npm run build && npm run export-data
7
7
  */
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
3
  * Export all parsed GASP Standard data as a single JSON file.
4
- * Output: website/public/api/standard.json
4
+ * Output: gasp-wiki-frontend/public/api/standard.json
5
5
  *
6
6
  * Usage: npm run build && npm run export-data
7
7
  */
@@ -19,20 +19,20 @@ const version = {
19
19
  buildDate: new Date().toISOString().slice(0, 10),
20
20
  };
21
21
  const versionJson = JSON.stringify(version);
22
- // 1. Write to website/public/api/ → serves as https://gaspwiki.com/api/standard.json
23
- const webOutDir = join(new URL(".", import.meta.url).pathname, "..", "..", "website", "public", "api");
22
+ // 1. Write to gasp-wiki-frontend/public/api/ → serves as https://gaspwiki.com/api/standard.json
23
+ const webOutDir = join(new URL(".", import.meta.url).pathname, "..", "..", "gasp-wiki-frontend", "public", "api");
24
24
  mkdirSync(webOutDir, { recursive: true });
25
25
  writeFileSync(join(webOutDir, "standard.json"), json);
26
26
  writeFileSync(join(webOutDir, "standard-version.json"), versionJson);
27
- // 2. Write to mcp-server/build/ → bundled with npm package as offline fallback
27
+ // 2. Write to gasp-wiki-mcp/build/ → bundled with npm package as offline fallback
28
28
  const buildDir = new URL(".", import.meta.url).pathname;
29
29
  writeFileSync(join(buildDir, "standard-data.json"), json);
30
30
  writeFileSync(join(buildDir, "standard-version.json"), versionJson);
31
- // 3. Write to website/src/data/ → importable by React components
32
- const srcDataDir = join(new URL(".", import.meta.url).pathname, "..", "..", "website", "src", "data");
31
+ // 3. Write to gasp-wiki-frontend/src/data/ → importable by React components
32
+ const srcDataDir = join(new URL(".", import.meta.url).pathname, "..", "..", "gasp-wiki-frontend", "src", "data");
33
33
  mkdirSync(srcDataDir, { recursive: true });
34
34
  writeFileSync(join(srcDataDir, "standard.json"), json);
35
35
  console.log(`Exported ${data.metrics.length} metrics, ${data.definitions.length} definitions, ${data.nodes.length} nodes, ${data.edges.length} edges, ${data.dataRequirements.length} data requirements (${version.buildDate})`);
36
- console.log(` → website/public/api/standard.json + standard-version.json`);
37
- console.log(` → mcp-server/build/standard-data.json + standard-version.json`);
38
- console.log(` → website/src/data/standard.json`);
36
+ console.log(` → gasp-wiki-frontend/public/api/standard.json + standard-version.json`);
37
+ console.log(` → gasp-wiki-mcp/build/standard-data.json + standard-version.json`);
38
+ console.log(` → gasp-wiki-frontend/src/data/standard.json`);
package/build/index.js CHANGED
@@ -296,7 +296,7 @@ server.tool("get_formula", "Get the formula(s) for a GASP Standard metric. Retur
296
296
  return { content: [{ type: "text", text }] };
297
297
  });
298
298
  // --- Tool 4: get_relationships ---
299
- server.tool("get_relationships", "Get the upstream (what drives it) and downstream (what it drives) relationships for a metric, entity, or concept from the GASP relationship graph. Entity nodes show business model connections (OWNS, GRANTS, CONVERTS_TO, etc.).", { metric: z.string().describe("Metric name or ID (e.g. 'arr', 'NRR'), entity (e.g. 'customer', 'subscription'), or concept (e.g. 'revenue', 'bookings')") }, async ({ metric: name }) => {
299
+ server.tool("get_relationships", "Get the upstream (what drives it) and downstream (what it drives) relationships for a metric, entity, or concept from the GASP relationship graph. Relationship types: metric signal (DRIVES, REDUCES, PREDICTS, COMPONENT_OF, MEASURES), entity lifecycle (CONVERTS_TO, PARENT_OF, BELONGS_TO), entity ownership (OWNS, GRANTS, PRICED_BY), entity interactions (MANAGES, SERVES, ENGAGES_VIA, SUBMITS, REPRESENTED_BY, SOURCES), entity financial flows (GENERATES, PRODUCES, CONTRIBUTES_TO, INCURS).", { metric: z.string().describe("Metric name or ID (e.g. 'arr', 'NRR'), entity (e.g. 'customer', 'subscription'), or concept (e.g. 'revenue', 'bookings')") }, async ({ metric: name }) => {
300
300
  const { node, upstream, downstream } = getRelationships(data, name);
301
301
  if (!node) {
302
302
  const available = data.nodes.map((n) => `${n.label} (${n.id})`).join(", ");
package/build/loader.js CHANGED
@@ -3,7 +3,7 @@ import { join } from "node:path";
3
3
  import { parseMetricsFile, parseDefinitions } from "./parser.js";
4
4
  /** Resolve the repo root (two levels up from build/index.js) */
5
5
  function repoRoot() {
6
- // mcp-server/build/index.js -> mcp-server -> repo root
6
+ // gasp-wiki-mcp/build/index.js -> gasp-wiki-mcp -> repo root
7
7
  const thisDir = new URL(".", import.meta.url).pathname;
8
8
  return join(thisDir, "..", "..");
9
9
  }
@@ -38,12 +38,12 @@ export function loadStandard() {
38
38
  const defsContent = readFileSync(join(standardDir, "definitions.md"), "utf-8");
39
39
  const definitions = parseDefinitions(defsContent);
40
40
  // Load relationships
41
- const relPath = join(root, "website", "src", "data", "relationships.json");
41
+ const relPath = join(root, "gasp-wiki-frontend", "src", "data", "relationships.json");
42
42
  const relData = JSON.parse(readFileSync(relPath, "utf-8"));
43
43
  const nodes = relData.nodes;
44
44
  const edges = relData.edges;
45
45
  // Load data requirements from dashboard
46
- const dashPath = join(root, "website", "src", "data", "dashboard-mock.json");
46
+ const dashPath = join(root, "gasp-wiki-frontend", "src", "data", "dashboard-mock.json");
47
47
  const dashData = JSON.parse(readFileSync(dashPath, "utf-8"));
48
48
  const dataRequirements = [];
49
49
  for (const dr of dashData.dataRequirements || []) {
@@ -1 +1 @@
1
- {"metricCount":300,"definitionCount":92,"nodeCount":82,"edgeCount":164,"dataRequirementCount":78,"buildDate":"2026-04-21"}
1
+ {"metricCount":300,"definitionCount":92,"nodeCount":82,"edgeCount":164,"dataRequirementCount":78,"buildDate":"2026-05-08"}
package/build/types.d.ts CHANGED
@@ -142,6 +142,15 @@ export interface OntologyData {
142
142
  export interface RelationshipEdge {
143
143
  source: string;
144
144
  target: string;
145
+ /**
146
+ * Canonical relationship type (lowercase).
147
+ *
148
+ * Metric signal: drives · reduces · predicts · component · measures
149
+ * Entity lifecycle: converts_to · parent_of · belongs_to
150
+ * Entity ownership & access: owns · grants · priced_by
151
+ * Entity interactions: manages · serves · engages_via · submits · represented_by · sources
152
+ * Entity financial flows: generates · produces · contributes_to · incurs
153
+ */
145
154
  type: string;
146
155
  }
147
156
  /** A data requirement entry from the dashboard */
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "gasp-standard-mcp",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "MCP server for the GASP Standard — SaaS metrics definitions, formulas, benchmarks, entity relationships, business model graph, access governance, and query generation",
5
5
  "type": "module",
6
- "license": "MIT",
7
- "author": "GASP Standard",
6
+ "license": "Apache-2.0",
7
+ "author": "403page labs (https://403.ie)",
8
8
  "homepage": "https://gaspwiki.com/v1/tools",
9
9
  "keywords": [
10
10
  "mcp",