@graphite-atlas/mcp-server 1.0.0

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.
Files changed (52) hide show
  1. package/EXAMPLES.md +501 -0
  2. package/LICENSE +21 -0
  3. package/README.md +440 -0
  4. package/dist/client.d.ts +272 -0
  5. package/dist/client.d.ts.map +1 -0
  6. package/dist/client.js +335 -0
  7. package/dist/client.js.map +1 -0
  8. package/dist/index.d.ts +16 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +124 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/tools/analytics.d.ts +9 -0
  13. package/dist/tools/analytics.d.ts.map +1 -0
  14. package/dist/tools/analytics.js +374 -0
  15. package/dist/tools/analytics.js.map +1 -0
  16. package/dist/tools/atlases.d.ts +7 -0
  17. package/dist/tools/atlases.d.ts.map +1 -0
  18. package/dist/tools/atlases.js +132 -0
  19. package/dist/tools/atlases.js.map +1 -0
  20. package/dist/tools/batch.d.ts +10 -0
  21. package/dist/tools/batch.d.ts.map +1 -0
  22. package/dist/tools/batch.js +154 -0
  23. package/dist/tools/batch.js.map +1 -0
  24. package/dist/tools/brain-dump.d.ts +7 -0
  25. package/dist/tools/brain-dump.d.ts.map +1 -0
  26. package/dist/tools/brain-dump.js +98 -0
  27. package/dist/tools/brain-dump.js.map +1 -0
  28. package/dist/tools/index.d.ts +18 -0
  29. package/dist/tools/index.d.ts.map +1 -0
  30. package/dist/tools/index.js +29 -0
  31. package/dist/tools/index.js.map +1 -0
  32. package/dist/tools/mage.d.ts +10 -0
  33. package/dist/tools/mage.d.ts.map +1 -0
  34. package/dist/tools/mage.js +531 -0
  35. package/dist/tools/mage.js.map +1 -0
  36. package/dist/tools/paths.d.ts +7 -0
  37. package/dist/tools/paths.d.ts.map +1 -0
  38. package/dist/tools/paths.js +245 -0
  39. package/dist/tools/paths.js.map +1 -0
  40. package/dist/tools/points.d.ts +7 -0
  41. package/dist/tools/points.d.ts.map +1 -0
  42. package/dist/tools/points.js +225 -0
  43. package/dist/tools/points.js.map +1 -0
  44. package/dist/tools/validation.d.ts +9 -0
  45. package/dist/tools/validation.d.ts.map +1 -0
  46. package/dist/tools/validation.js +323 -0
  47. package/dist/tools/validation.js.map +1 -0
  48. package/dist/tools/views.d.ts +9 -0
  49. package/dist/tools/views.d.ts.map +1 -0
  50. package/dist/tools/views.js +335 -0
  51. package/dist/tools/views.js.map +1 -0
  52. package/package.json +62 -0
@@ -0,0 +1,154 @@
1
+ /**
2
+ * Batch Graph Operations Tools
3
+ *
4
+ * Enables creating multiple points and paths in a single API call,
5
+ * dramatically reducing latency for complex graph construction.
6
+ */
7
+ import { z } from 'zod';
8
+ export function createBatchTools(client) {
9
+ return [
10
+ {
11
+ name: 'batch_create',
12
+ description: `Create multiple points and paths in a single atomic operation. This is MUCH faster than creating them one at a time.
13
+
14
+ Points are created first, then paths can reference them by name. This eliminates the need to track UUIDs between calls.
15
+
16
+ Example: Creating a team with roles requires 42 sequential calls using create_point/create_path, but only 1 call with batch_create.
17
+
18
+ Use this whenever you're creating more than 2-3 entities at once.`,
19
+ inputSchema: {
20
+ type: 'object',
21
+ properties: {
22
+ atlas_id: {
23
+ type: 'string',
24
+ description: 'The atlas to add entities to',
25
+ },
26
+ points: {
27
+ type: 'array',
28
+ description: 'Points (nodes) to create. Optional if only creating paths.',
29
+ items: {
30
+ type: 'object',
31
+ properties: {
32
+ name: {
33
+ type: 'string',
34
+ description: 'The name/label of the point',
35
+ },
36
+ type: {
37
+ type: 'string',
38
+ description: 'The type/category (e.g., Person, Position, Process)',
39
+ },
40
+ category: {
41
+ type: 'string',
42
+ description: 'Optional category for organization',
43
+ },
44
+ description: {
45
+ type: 'string',
46
+ description: 'Optional description',
47
+ },
48
+ tags: {
49
+ type: 'array',
50
+ items: { type: 'string' },
51
+ description: 'Optional tags for categorization',
52
+ },
53
+ properties: {
54
+ type: 'object',
55
+ description: 'Optional additional properties as key-value pairs',
56
+ },
57
+ },
58
+ required: ['name', 'type'],
59
+ },
60
+ },
61
+ paths: {
62
+ type: 'array',
63
+ description: 'Paths (relationships) to create. Reference points by name, not ID. Optional if only creating points.',
64
+ items: {
65
+ type: 'object',
66
+ properties: {
67
+ type: {
68
+ type: 'string',
69
+ description: 'The relationship type (e.g., has_role, reports_to, has_step)',
70
+ },
71
+ source: {
72
+ type: 'string',
73
+ description: 'Source point name (must exist or be in points array)',
74
+ },
75
+ target: {
76
+ type: 'string',
77
+ description: 'Target point name (must exist or be in points array)',
78
+ },
79
+ description: {
80
+ type: 'string',
81
+ description: 'Optional description of this relationship',
82
+ },
83
+ properties: {
84
+ type: 'object',
85
+ description: 'Optional additional properties',
86
+ },
87
+ },
88
+ required: ['type', 'source', 'target'],
89
+ },
90
+ },
91
+ },
92
+ required: ['atlas_id'],
93
+ },
94
+ async execute(args) {
95
+ const schema = z.object({
96
+ atlas_id: z.string(),
97
+ points: z.array(z.object({
98
+ name: z.string(),
99
+ type: z.string(),
100
+ category: z.string().optional(),
101
+ description: z.string().optional(),
102
+ tags: z.array(z.string()).optional(),
103
+ properties: z.record(z.unknown()).optional(),
104
+ })).optional(),
105
+ paths: z.array(z.object({
106
+ type: z.string(),
107
+ source: z.string(),
108
+ target: z.string(),
109
+ description: z.string().optional(),
110
+ properties: z.record(z.unknown()).optional(),
111
+ })).optional(),
112
+ });
113
+ const { atlas_id, points = [], paths = [] } = schema.parse(args);
114
+ // Call batch create API
115
+ const result = await client.batchCreateGraph(atlas_id, {
116
+ points,
117
+ paths: paths.map(p => ({
118
+ type: p.type,
119
+ source_name: p.source, // Map to API format
120
+ target_name: p.target, // Map to API format
121
+ description: p.description,
122
+ properties: p.properties,
123
+ })),
124
+ });
125
+ return {
126
+ success: true,
127
+ created: {
128
+ points: result.points.map(p => ({
129
+ id: p.id,
130
+ name: p.name,
131
+ type: p.type,
132
+ properties: p.properties,
133
+ })),
134
+ paths: result.paths.map(p => ({
135
+ id: p.id,
136
+ name: p.name,
137
+ type: p.type,
138
+ sourceId: p.sourceId,
139
+ targetId: p.targetId,
140
+ source_name: p.source_name,
141
+ target_name: p.target_name,
142
+ properties: p.properties,
143
+ })),
144
+ },
145
+ summary: {
146
+ points_created: result.pointCount,
147
+ paths_created: result.pathCount,
148
+ },
149
+ };
150
+ },
151
+ },
152
+ ];
153
+ }
154
+ //# sourceMappingURL=batch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch.js","sourceRoot":"","sources":["../../src/tools/batch.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,UAAU,gBAAgB,CAAC,MAA2B;IAC1D,OAAO;QACL;YACE,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE;;;;;;kEAM+C;YAC5D,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,8BAA8B;qBAC5C;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,4DAA4D;wBACzE,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;4BACd,UAAU,EAAE;gCACV,IAAI,EAAE;oCACJ,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,6BAA6B;iCAC3C;gCACD,IAAI,EAAE;oCACJ,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,qDAAqD;iCACnE;gCACD,QAAQ,EAAE;oCACR,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,oCAAoC;iCAClD;gCACD,WAAW,EAAE;oCACX,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,sBAAsB;iCACpC;gCACD,IAAI,EAAE;oCACJ,IAAI,EAAE,OAAO;oCACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oCACzB,WAAW,EAAE,kCAAkC;iCAChD;gCACD,UAAU,EAAE;oCACV,IAA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AC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;4BAC9B,EAAE,EAAE,CAAC,CAAC,EAAE;4BACR,IAAI,EAAE,CAAC,CAAC,IAAI;4BACZ,IAAI,EAAE,CAAC,CAAC,IAAI;4BACZ,UAAU,EAAE,CAAC,CAAC,UAAU;yBACzB,CAAC,CAAC;wBACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;4BAC5B,EAAE,EAAE,CAAC,CAAC,EAAE;4BACR,IAAI,EAAE,CAAC,CAAC,IAAI;4BACZ,IAAI,EAAE,CAAC,CAAC,IAAI;4BACZ,QAAQ,EAAE,CAAC,CAAC,QAAQ;4BACpB,QAAQ,EAAE,CAAC,CAAC,QAAQ;4BACpB,WAAW,EAAE,CAAC,CAAC,WAAW;4BAC1B,WAAW,EAAE,CAAC,CAAC,WAAW;4BAC1B,UAAU,EAAE,CAAC,CAAC,UAAU;yBACzB,CAAC,CAAC;qBACJ;oBACD,OAAO,EAAE;wBACP,cAAc,EAAE,MAAM,CAAC,UAAU;wBACjC,aAAa,EAAE,MAAM,CAAC,SAAS;qBAChC;iBACF,CAAC;YACJ,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Brain Dump (LLM-powered graph generation) Tools
3
+ */
4
+ import { GraphiteAtlasClient } from '../client.js';
5
+ import { MCPTool } from './index.js';
6
+ export declare function createBrainDumpTools(client: GraphiteAtlasClient): MCPTool[];
7
+ //# sourceMappingURL=brain-dump.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brain-dump.d.ts","sourceRoot":"","sources":["../../src/tools/brain-dump.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,EAAE,CAgG3E"}
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Brain Dump (LLM-powered graph generation) Tools
3
+ */
4
+ import { z } from 'zod';
5
+ export function createBrainDumpTools(client) {
6
+ return [
7
+ // Brain dump - generate graph from text
8
+ {
9
+ name: 'brain_dump',
10
+ description: 'Use AI to automatically generate a knowledge graph from text. The AI will extract entities (points) and relationships (paths) from your text and add them to the atlas.',
11
+ inputSchema: {
12
+ type: 'object',
13
+ properties: {
14
+ atlas_id: {
15
+ type: 'string',
16
+ description: 'The atlas ID to add the generated graph to',
17
+ },
18
+ text: {
19
+ type: 'string',
20
+ description: 'The text to analyze and convert into a knowledge graph. Can be notes, articles, transcripts, etc.',
21
+ },
22
+ process_name: {
23
+ type: 'string',
24
+ description: 'Optional name for this brain dump process (helps organize multiple dumps)',
25
+ },
26
+ },
27
+ required: ['atlas_id', 'text'],
28
+ },
29
+ async execute(args) {
30
+ const { atlas_id, text, process_name } = z.object({
31
+ atlas_id: z.string(),
32
+ text: z.string(),
33
+ process_name: z.string().optional(),
34
+ }).parse(args);
35
+ const result = await client.brainDump(atlas_id, {
36
+ text,
37
+ processName: process_name,
38
+ });
39
+ return {
40
+ operationId: result.operationId,
41
+ status: result.status,
42
+ message: 'Brain dump initiated. Use get_brain_dump_status to check progress.',
43
+ };
44
+ },
45
+ },
46
+ // Get brain dump status
47
+ {
48
+ name: 'get_brain_dump_status',
49
+ description: 'Check the status of a brain dump operation and retrieve the generated graph when complete',
50
+ inputSchema: {
51
+ type: 'object',
52
+ properties: {
53
+ operation_id: {
54
+ type: 'string',
55
+ description: 'The operation ID returned from brain_dump',
56
+ },
57
+ },
58
+ required: ['operation_id'],
59
+ },
60
+ async execute(args) {
61
+ const { operation_id } = z.object({
62
+ operation_id: z.string(),
63
+ }).parse(args);
64
+ const result = await client.getBrainDumpStatus(operation_id);
65
+ if (result.status === 'completed') {
66
+ return {
67
+ operationId: result.operationId,
68
+ status: result.status,
69
+ points: result.points?.map((p) => ({
70
+ id: p.id,
71
+ name: p.name,
72
+ type: p.type,
73
+ })),
74
+ paths: result.paths?.map((p) => ({
75
+ id: p.id,
76
+ name: p.name,
77
+ type: p.type,
78
+ sourceId: p.sourceId,
79
+ targetId: p.targetId,
80
+ })),
81
+ pointsCount: result.points?.length || 0,
82
+ pathsCount: result.paths?.length || 0,
83
+ };
84
+ }
85
+ else {
86
+ return {
87
+ operationId: result.operationId,
88
+ status: result.status,
89
+ message: result.status === 'failed'
90
+ ? 'Brain dump failed. Check the operation details for errors.'
91
+ : `Brain dump is ${result.status}. Please wait...`,
92
+ };
93
+ }
94
+ },
95
+ },
96
+ ];
97
+ }
98
+ //# sourceMappingURL=brain-dump.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brain-dump.js","sourceRoot":"","sources":["../../src/tools/brain-dump.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,UAAU,oBAAoB,CAAC,MAA2B;IAC9D,OAAO;QACL,wCAAwC;QACxC;YACE,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,yKAAyK;YACtL,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,4CAA4C;qBAC1D;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,mGAAmG;qBACjH;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,2EAA2E;qBACzF;iBACF;gBACD,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;aAC/B;YACD,KAAK,CAAC,OAAO,CAAC,IAAI;gBAChB,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC;oBAChD,QAAQ,EAAE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EAAE,CAAC,CAAC,EAAE;4BACR,IAAI,EAAE,CAAC,CAAC,IAAI;4BACZ,IAAI,EAAE,CAAC,CAAC,IAAI;yBACb,CAAC,CAAC;wBACH,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;4BAC/B,EAAE,EAAE,CAAC,CAAC,EAAE;4BACR,IAAI,EAAE,CAAC,CAAC,IAAI;4BACZ,IAAI,EAAE,CAAC,CAAC,IAAI;4BACZ,QAAQ,EAAE,CAAC,CAAC,QAAQ;4BACpB,QAAQ,EAAE,CAAC,CAAC,QAAQ;yBACrB,CAAC,CAAC;wBACH,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;wBACvC,UAAU,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC;qBACtC,CAAC;gBACJ,CAAC;qBAAM,CAAC;oBACN,OAAO;wBACL,WAAW,EAAE,MAAM,CAAC,WAAW;wBAC/B,MAAM,EAAE,MAAM,CAAC,MAAM;wBACrB,OAAO,EAAE,MAAM,CAAC,MAAM,KAAK,QAAQ;4BACjC,CAAC,CAAC,4DAA4D;4BAC9D,CAAC,CAAC,iBAAiB,MAAM,CAAC,MAAM,kBAAkB;qBACrD,CAAC;gBACJ,CAAC;YACH,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * MCP Tools for Graphite Atlas
3
+ *
4
+ * Exposes Graphite Atlas functionality as MCP tools.
5
+ */
6
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
+ import { GraphiteAtlasClient } from '../client.js';
8
+ export interface MCPTool {
9
+ name: string;
10
+ description: string;
11
+ inputSchema: Tool['inputSchema'];
12
+ execute: (args: Record<string, unknown>) => Promise<unknown>;
13
+ }
14
+ /**
15
+ * Set up all tools for the MCP server
16
+ */
17
+ export declare function setupTools(client: GraphiteAtlasClient): MCPTool[];
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAUnD,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACjC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9D;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,EAAE,CAWjE"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * MCP Tools for Graphite Atlas
3
+ *
4
+ * Exposes Graphite Atlas functionality as MCP tools.
5
+ */
6
+ import { createAtlasTools } from './atlases.js';
7
+ import { createPointTools } from './points.js';
8
+ import { createPathTools } from './paths.js';
9
+ import { createBatchTools } from './batch.js';
10
+ import { createValidationTools } from './validation.js';
11
+ import { createAnalyticsTools } from './analytics.js';
12
+ import { createMAGETools } from './mage.js';
13
+ import { createViewTools } from './views.js';
14
+ /**
15
+ * Set up all tools for the MCP server
16
+ */
17
+ export function setupTools(client) {
18
+ return [
19
+ ...createAtlasTools(client),
20
+ ...createPointTools(client),
21
+ ...createPathTools(client),
22
+ ...createViewTools(client),
23
+ ...createBatchTools(client),
24
+ ...createValidationTools(client),
25
+ ...createAnalyticsTools(client),
26
+ ...createMAGETools(client),
27
+ ];
28
+ }
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAS7C;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,MAA2B;IACpD,OAAO;QACL,GAAG,gBAAgB,CAAC,MAAM,CAAC;QAC3B,GAAG,gBAAgB,CAAC,MAAM,CAAC;QAC3B,GAAG,eAAe,CAAC,MAAM,CAAC;QAC1B,GAAG,eAAe,CAAC,MAAM,CAAC;QAC1B,GAAG,gBAAgB,CAAC,MAAM,CAAC;QAC3B,GAAG,qBAAqB,CAAC,MAAM,CAAC;QAChC,GAAG,oBAAoB,CAAC,MAAM,CAAC;QAC/B,GAAG,eAAe,CAAC,MAAM,CAAC;KAC3B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * MAGE (Memgraph Advanced Graph Extensions) Algorithm Tools
3
+ *
4
+ * Provides production-grade graph algorithms using Memgraph's MAGE library.
5
+ * https://memgraph.com/docs/advanced-algorithms
6
+ */
7
+ import { GraphiteAtlasClient } from '../client.js';
8
+ import { MCPTool } from './index.js';
9
+ export declare function createMAGETools(client: GraphiteAtlasClient): MCPTool[];
10
+ //# sourceMappingURL=mage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mage.d.ts","sourceRoot":"","sources":["../../src/tools/mage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,wBAAgB,eAAe,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,EAAE,CA+iBtE"}