@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.
- package/EXAMPLES.md +501 -0
- package/LICENSE +21 -0
- package/README.md +440 -0
- package/dist/client.d.ts +272 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +335 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +124 -0
- package/dist/index.js.map +1 -0
- package/dist/tools/analytics.d.ts +9 -0
- package/dist/tools/analytics.d.ts.map +1 -0
- package/dist/tools/analytics.js +374 -0
- package/dist/tools/analytics.js.map +1 -0
- package/dist/tools/atlases.d.ts +7 -0
- package/dist/tools/atlases.d.ts.map +1 -0
- package/dist/tools/atlases.js +132 -0
- package/dist/tools/atlases.js.map +1 -0
- package/dist/tools/batch.d.ts +10 -0
- package/dist/tools/batch.d.ts.map +1 -0
- package/dist/tools/batch.js +154 -0
- package/dist/tools/batch.js.map +1 -0
- package/dist/tools/brain-dump.d.ts +7 -0
- package/dist/tools/brain-dump.d.ts.map +1 -0
- package/dist/tools/brain-dump.js +98 -0
- package/dist/tools/brain-dump.js.map +1 -0
- package/dist/tools/index.d.ts +18 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +29 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/mage.d.ts +10 -0
- package/dist/tools/mage.d.ts.map +1 -0
- package/dist/tools/mage.js +531 -0
- package/dist/tools/mage.js.map +1 -0
- package/dist/tools/paths.d.ts +7 -0
- package/dist/tools/paths.d.ts.map +1 -0
- package/dist/tools/paths.js +245 -0
- package/dist/tools/paths.js.map +1 -0
- package/dist/tools/points.d.ts +7 -0
- package/dist/tools/points.d.ts.map +1 -0
- package/dist/tools/points.js +225 -0
- package/dist/tools/points.js.map +1 -0
- package/dist/tools/validation.d.ts +9 -0
- package/dist/tools/validation.d.ts.map +1 -0
- package/dist/tools/validation.js +323 -0
- package/dist/tools/validation.js.map +1 -0
- package/dist/tools/views.d.ts +9 -0
- package/dist/tools/views.d.ts.map +1 -0
- package/dist/tools/views.js +335 -0
- package/dist/tools/views.js.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Path (Edge/Relationship) Management Tools
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
export function createPathTools(client) {
|
|
6
|
+
return [
|
|
7
|
+
// List paths
|
|
8
|
+
{
|
|
9
|
+
name: 'list_paths',
|
|
10
|
+
description: 'List all paths (edges/relationships) in an atlas',
|
|
11
|
+
inputSchema: {
|
|
12
|
+
type: 'object',
|
|
13
|
+
properties: {
|
|
14
|
+
atlas_id: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
description: 'The atlas ID to list paths from',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
required: ['atlas_id'],
|
|
20
|
+
},
|
|
21
|
+
async execute(args) {
|
|
22
|
+
const { atlas_id } = z.object({
|
|
23
|
+
atlas_id: z.string(),
|
|
24
|
+
}).parse(args);
|
|
25
|
+
const paths = await client.listPaths(atlas_id);
|
|
26
|
+
return {
|
|
27
|
+
paths: paths.map((p) => ({
|
|
28
|
+
id: p.id,
|
|
29
|
+
name: p.name,
|
|
30
|
+
type: p.type,
|
|
31
|
+
sourceId: p.sourceId,
|
|
32
|
+
targetId: p.targetId,
|
|
33
|
+
source_name: p.source_name, // Include denormalized source name
|
|
34
|
+
target_name: p.target_name, // Include denormalized target name
|
|
35
|
+
properties: p.properties,
|
|
36
|
+
})),
|
|
37
|
+
count: paths.length,
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
// Get path
|
|
42
|
+
{
|
|
43
|
+
name: 'get_path',
|
|
44
|
+
description: 'Get details of a specific path by ID',
|
|
45
|
+
inputSchema: {
|
|
46
|
+
type: 'object',
|
|
47
|
+
properties: {
|
|
48
|
+
atlas_id: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
description: 'The atlas ID containing the path',
|
|
51
|
+
},
|
|
52
|
+
path_id: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
description: 'The unique identifier of the path',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
required: ['atlas_id', 'path_id'],
|
|
58
|
+
},
|
|
59
|
+
async execute(args) {
|
|
60
|
+
const { atlas_id, path_id } = z.object({
|
|
61
|
+
atlas_id: z.string(),
|
|
62
|
+
path_id: z.string(),
|
|
63
|
+
}).parse(args);
|
|
64
|
+
return await client.getPath(atlas_id, path_id);
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
// Create path
|
|
68
|
+
{
|
|
69
|
+
name: 'create_path',
|
|
70
|
+
description: 'Create a new path (edge/relationship) between two points in an atlas. Paths represent relationships or connections.',
|
|
71
|
+
inputSchema: {
|
|
72
|
+
type: 'object',
|
|
73
|
+
properties: {
|
|
74
|
+
atlas_id: {
|
|
75
|
+
type: 'string',
|
|
76
|
+
description: 'The atlas ID to create the path in',
|
|
77
|
+
},
|
|
78
|
+
name: {
|
|
79
|
+
type: 'string',
|
|
80
|
+
description: 'The name/label of the relationship',
|
|
81
|
+
},
|
|
82
|
+
type: {
|
|
83
|
+
type: 'string',
|
|
84
|
+
description: 'The type of relationship (e.g., KNOWS, WORKS_AT, PART_OF)',
|
|
85
|
+
},
|
|
86
|
+
source_id: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: 'The ID of the source point',
|
|
89
|
+
},
|
|
90
|
+
target_id: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
description: 'The ID of the target point',
|
|
93
|
+
},
|
|
94
|
+
description: {
|
|
95
|
+
type: 'string',
|
|
96
|
+
description: 'Optional description or summary of the relationship',
|
|
97
|
+
},
|
|
98
|
+
properties: {
|
|
99
|
+
type: 'object',
|
|
100
|
+
description: 'Optional additional properties as key-value pairs',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
required: ['atlas_id', 'name', 'type', 'source_id', 'target_id'],
|
|
104
|
+
},
|
|
105
|
+
async execute(args) {
|
|
106
|
+
const { atlas_id, name, type, source_id, target_id, description, properties } = z.object({
|
|
107
|
+
atlas_id: z.string(),
|
|
108
|
+
name: z.string(),
|
|
109
|
+
type: z.string(),
|
|
110
|
+
source_id: z.string(),
|
|
111
|
+
target_id: z.string(),
|
|
112
|
+
description: z.string().optional(),
|
|
113
|
+
properties: z.record(z.unknown()).optional(),
|
|
114
|
+
}).parse(args);
|
|
115
|
+
return await client.createPath(atlas_id, {
|
|
116
|
+
name,
|
|
117
|
+
type,
|
|
118
|
+
sourceId: source_id,
|
|
119
|
+
targetId: target_id,
|
|
120
|
+
description,
|
|
121
|
+
properties,
|
|
122
|
+
});
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
// Update path
|
|
126
|
+
{
|
|
127
|
+
name: 'update_path',
|
|
128
|
+
description: 'Update an existing path name, type, description, or properties',
|
|
129
|
+
inputSchema: {
|
|
130
|
+
type: 'object',
|
|
131
|
+
properties: {
|
|
132
|
+
atlas_id: {
|
|
133
|
+
type: 'string',
|
|
134
|
+
description: 'The atlas ID containing the path',
|
|
135
|
+
},
|
|
136
|
+
path_id: {
|
|
137
|
+
type: 'string',
|
|
138
|
+
description: 'The unique identifier of the path',
|
|
139
|
+
},
|
|
140
|
+
name: {
|
|
141
|
+
type: 'string',
|
|
142
|
+
description: 'New name for the path',
|
|
143
|
+
},
|
|
144
|
+
type: {
|
|
145
|
+
type: 'string',
|
|
146
|
+
description: 'New type for the path',
|
|
147
|
+
},
|
|
148
|
+
description: {
|
|
149
|
+
type: 'string',
|
|
150
|
+
description: 'New description for the path',
|
|
151
|
+
},
|
|
152
|
+
properties: {
|
|
153
|
+
type: 'object',
|
|
154
|
+
description: 'Updated properties (merges with existing)',
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
required: ['atlas_id', 'path_id'],
|
|
158
|
+
},
|
|
159
|
+
async execute(args) {
|
|
160
|
+
const { atlas_id, path_id, name, type, description, properties } = z.object({
|
|
161
|
+
atlas_id: z.string(),
|
|
162
|
+
path_id: z.string(),
|
|
163
|
+
name: z.string().optional(),
|
|
164
|
+
type: z.string().optional(),
|
|
165
|
+
description: z.string().optional(),
|
|
166
|
+
properties: z.record(z.unknown()).optional(),
|
|
167
|
+
}).parse(args);
|
|
168
|
+
return await client.updatePath(atlas_id, path_id, {
|
|
169
|
+
name,
|
|
170
|
+
type,
|
|
171
|
+
description,
|
|
172
|
+
properties,
|
|
173
|
+
});
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
// Delete path
|
|
177
|
+
{
|
|
178
|
+
name: 'delete_path',
|
|
179
|
+
description: 'Delete a path from an atlas (WARNING: This cannot be undone)',
|
|
180
|
+
inputSchema: {
|
|
181
|
+
type: 'object',
|
|
182
|
+
properties: {
|
|
183
|
+
atlas_id: {
|
|
184
|
+
type: 'string',
|
|
185
|
+
description: 'The atlas ID containing the path',
|
|
186
|
+
},
|
|
187
|
+
path_id: {
|
|
188
|
+
type: 'string',
|
|
189
|
+
description: 'The unique identifier of the path to delete',
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
required: ['atlas_id', 'path_id'],
|
|
193
|
+
},
|
|
194
|
+
async execute(args) {
|
|
195
|
+
const { atlas_id, path_id } = z.object({
|
|
196
|
+
atlas_id: z.string(),
|
|
197
|
+
path_id: z.string(),
|
|
198
|
+
}).parse(args);
|
|
199
|
+
await client.deletePath(atlas_id, path_id);
|
|
200
|
+
return { success: true, message: `Path ${path_id} deleted` };
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
// Search paths
|
|
204
|
+
{
|
|
205
|
+
name: 'search_paths',
|
|
206
|
+
description: 'Search for paths by name or type within an atlas',
|
|
207
|
+
inputSchema: {
|
|
208
|
+
type: 'object',
|
|
209
|
+
properties: {
|
|
210
|
+
atlas_id: {
|
|
211
|
+
type: 'string',
|
|
212
|
+
description: 'The atlas ID to search in',
|
|
213
|
+
},
|
|
214
|
+
query: {
|
|
215
|
+
type: 'string',
|
|
216
|
+
description: 'Search query (matches against name and type)',
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
required: ['atlas_id', 'query'],
|
|
220
|
+
},
|
|
221
|
+
async execute(args) {
|
|
222
|
+
const { atlas_id, query } = z.object({
|
|
223
|
+
atlas_id: z.string(),
|
|
224
|
+
query: z.string(),
|
|
225
|
+
}).parse(args);
|
|
226
|
+
const paths = await client.searchPaths(atlas_id, query);
|
|
227
|
+
return {
|
|
228
|
+
paths: paths.map((p) => ({
|
|
229
|
+
id: p.id,
|
|
230
|
+
name: p.name,
|
|
231
|
+
type: p.type,
|
|
232
|
+
sourceId: p.sourceId,
|
|
233
|
+
targetId: p.targetId,
|
|
234
|
+
source_name: p.source_name, // Include denormalized source name
|
|
235
|
+
target_name: p.target_name, // Include denormalized target name
|
|
236
|
+
properties: p.properties,
|
|
237
|
+
})),
|
|
238
|
+
count: paths.length,
|
|
239
|
+
query,
|
|
240
|
+
};
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
];
|
|
244
|
+
}
|
|
245
|
+
//# sourceMappingURL=paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/tools/paths.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,UAAU,eAAe,CAAC,MAA2B;IACzD,OAAO;QACL,aAAa;QACb;YACE,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,kDAAkD;YAC/D,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iCAAiC;qBAC/C;iBACF;gBACD,QAAQ,EAAE,CAAC,UAAU,CAAC;aACvB;YACD,KAAK,CAAC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AAmC;wBAChE,WAAW,EAAE,CAAC,CAAC,WAAW,EAAG,mCAAmC;wBAChE,UAAU,EAAE,CAAC,CAAC,UAAU;qBACzB,CAAC,CAAC;oBACH,KAAK,EAAE,KAAK,CAAC,MAAM;oBACnB,KAAK;iBACN,CAAC;YACJ,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"points.d.ts","sourceRoot":"","sources":["../../src/tools/points.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,EAAE,CAsOvE"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Point (Node) Management Tools
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
export function createPointTools(client) {
|
|
6
|
+
return [
|
|
7
|
+
// List points
|
|
8
|
+
{
|
|
9
|
+
name: 'list_points',
|
|
10
|
+
description: 'List all points (nodes) in an atlas',
|
|
11
|
+
inputSchema: {
|
|
12
|
+
type: 'object',
|
|
13
|
+
properties: {
|
|
14
|
+
atlas_id: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
description: 'The atlas ID to list points from',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
required: ['atlas_id'],
|
|
20
|
+
},
|
|
21
|
+
async execute(args) {
|
|
22
|
+
const { atlas_id } = z.object({
|
|
23
|
+
atlas_id: z.string(),
|
|
24
|
+
}).parse(args);
|
|
25
|
+
const points = await client.listPoints(atlas_id);
|
|
26
|
+
return {
|
|
27
|
+
points: points.map((p) => ({
|
|
28
|
+
id: p.id,
|
|
29
|
+
name: p.name,
|
|
30
|
+
type: p.type,
|
|
31
|
+
properties: p.properties,
|
|
32
|
+
})),
|
|
33
|
+
count: points.length,
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
// Get point
|
|
38
|
+
{
|
|
39
|
+
name: 'get_point',
|
|
40
|
+
description: 'Get details of a specific point by ID',
|
|
41
|
+
inputSchema: {
|
|
42
|
+
type: 'object',
|
|
43
|
+
properties: {
|
|
44
|
+
atlas_id: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
description: 'The atlas ID containing the point',
|
|
47
|
+
},
|
|
48
|
+
point_id: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
description: 'The unique identifier of the point',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
required: ['atlas_id', 'point_id'],
|
|
54
|
+
},
|
|
55
|
+
async execute(args) {
|
|
56
|
+
const { atlas_id, point_id } = z.object({
|
|
57
|
+
atlas_id: z.string(),
|
|
58
|
+
point_id: z.string(),
|
|
59
|
+
}).parse(args);
|
|
60
|
+
return await client.getPoint(atlas_id, point_id);
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
// Create point
|
|
64
|
+
{
|
|
65
|
+
name: 'create_point',
|
|
66
|
+
description: 'Create a new point (node) in an atlas. Points represent entities, concepts, or things in your knowledge graph.',
|
|
67
|
+
inputSchema: {
|
|
68
|
+
type: 'object',
|
|
69
|
+
properties: {
|
|
70
|
+
atlas_id: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
description: 'The atlas ID to create the point in',
|
|
73
|
+
},
|
|
74
|
+
name: {
|
|
75
|
+
type: 'string',
|
|
76
|
+
description: 'The name/label of the point',
|
|
77
|
+
},
|
|
78
|
+
type: {
|
|
79
|
+
type: 'string',
|
|
80
|
+
description: 'The type/category of the point (e.g., Person, Company, Concept)',
|
|
81
|
+
},
|
|
82
|
+
description: {
|
|
83
|
+
type: 'string',
|
|
84
|
+
description: 'Optional description or summary of the point',
|
|
85
|
+
},
|
|
86
|
+
properties: {
|
|
87
|
+
type: 'object',
|
|
88
|
+
description: 'Optional additional properties as key-value pairs',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
required: ['atlas_id', 'name', 'type'],
|
|
92
|
+
},
|
|
93
|
+
async execute(args) {
|
|
94
|
+
const { atlas_id, name, type, description, properties } = z.object({
|
|
95
|
+
atlas_id: z.string(),
|
|
96
|
+
name: z.string(),
|
|
97
|
+
type: z.string(),
|
|
98
|
+
description: z.string().optional(),
|
|
99
|
+
properties: z.record(z.unknown()).optional(),
|
|
100
|
+
}).parse(args);
|
|
101
|
+
return await client.createPoint(atlas_id, {
|
|
102
|
+
name,
|
|
103
|
+
type,
|
|
104
|
+
description,
|
|
105
|
+
properties,
|
|
106
|
+
});
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
// Update point
|
|
110
|
+
{
|
|
111
|
+
name: 'update_point',
|
|
112
|
+
description: 'Update an existing point name, type, description, or properties',
|
|
113
|
+
inputSchema: {
|
|
114
|
+
type: 'object',
|
|
115
|
+
properties: {
|
|
116
|
+
atlas_id: {
|
|
117
|
+
type: 'string',
|
|
118
|
+
description: 'The atlas ID containing the point',
|
|
119
|
+
},
|
|
120
|
+
point_id: {
|
|
121
|
+
type: 'string',
|
|
122
|
+
description: 'The unique identifier of the point',
|
|
123
|
+
},
|
|
124
|
+
name: {
|
|
125
|
+
type: 'string',
|
|
126
|
+
description: 'New name for the point',
|
|
127
|
+
},
|
|
128
|
+
type: {
|
|
129
|
+
type: 'string',
|
|
130
|
+
description: 'New type for the point',
|
|
131
|
+
},
|
|
132
|
+
description: {
|
|
133
|
+
type: 'string',
|
|
134
|
+
description: 'New description for the point',
|
|
135
|
+
},
|
|
136
|
+
properties: {
|
|
137
|
+
type: 'object',
|
|
138
|
+
description: 'Updated properties (merges with existing)',
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
required: ['atlas_id', 'point_id'],
|
|
142
|
+
},
|
|
143
|
+
async execute(args) {
|
|
144
|
+
const { atlas_id, point_id, name, type, description, properties } = z.object({
|
|
145
|
+
atlas_id: z.string(),
|
|
146
|
+
point_id: z.string(),
|
|
147
|
+
name: z.string().optional(),
|
|
148
|
+
type: z.string().optional(),
|
|
149
|
+
description: z.string().optional(),
|
|
150
|
+
properties: z.record(z.unknown()).optional(),
|
|
151
|
+
}).parse(args);
|
|
152
|
+
return await client.updatePoint(atlas_id, point_id, {
|
|
153
|
+
name,
|
|
154
|
+
type,
|
|
155
|
+
description,
|
|
156
|
+
properties,
|
|
157
|
+
});
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
// Delete point
|
|
161
|
+
{
|
|
162
|
+
name: 'delete_point',
|
|
163
|
+
description: 'Delete a point from an atlas (WARNING: This cannot be undone)',
|
|
164
|
+
inputSchema: {
|
|
165
|
+
type: 'object',
|
|
166
|
+
properties: {
|
|
167
|
+
atlas_id: {
|
|
168
|
+
type: 'string',
|
|
169
|
+
description: 'The atlas ID containing the point',
|
|
170
|
+
},
|
|
171
|
+
point_id: {
|
|
172
|
+
type: 'string',
|
|
173
|
+
description: 'The unique identifier of the point to delete',
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
required: ['atlas_id', 'point_id'],
|
|
177
|
+
},
|
|
178
|
+
async execute(args) {
|
|
179
|
+
const { atlas_id, point_id } = z.object({
|
|
180
|
+
atlas_id: z.string(),
|
|
181
|
+
point_id: z.string(),
|
|
182
|
+
}).parse(args);
|
|
183
|
+
await client.deletePoint(atlas_id, point_id);
|
|
184
|
+
return { success: true, message: `Point ${point_id} deleted` };
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
// Search points
|
|
188
|
+
{
|
|
189
|
+
name: 'search_points',
|
|
190
|
+
description: 'Search for points by name or type within an atlas',
|
|
191
|
+
inputSchema: {
|
|
192
|
+
type: 'object',
|
|
193
|
+
properties: {
|
|
194
|
+
atlas_id: {
|
|
195
|
+
type: 'string',
|
|
196
|
+
description: 'The atlas ID to search in',
|
|
197
|
+
},
|
|
198
|
+
query: {
|
|
199
|
+
type: 'string',
|
|
200
|
+
description: 'Search query (matches against name and type)',
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
required: ['atlas_id', 'query'],
|
|
204
|
+
},
|
|
205
|
+
async execute(args) {
|
|
206
|
+
const { atlas_id, query } = z.object({
|
|
207
|
+
atlas_id: z.string(),
|
|
208
|
+
query: z.string(),
|
|
209
|
+
}).parse(args);
|
|
210
|
+
const points = await client.searchPoints(atlas_id, query);
|
|
211
|
+
return {
|
|
212
|
+
points: points.map((p) => ({
|
|
213
|
+
id: p.id,
|
|
214
|
+
name: p.name,
|
|
215
|
+
type: p.type,
|
|
216
|
+
properties: p.properties,
|
|
217
|
+
})),
|
|
218
|
+
count: points.length,
|
|
219
|
+
query,
|
|
220
|
+
};
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
];
|
|
224
|
+
}
|
|
225
|
+
//# sourceMappingURL=points.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"points.js","sourceRoot":"","sources":["../../src/tools/points.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,UAAU,gBAAgB,CAAC,MAA2B;IAC1D,OAAO;QACL,cAAc;QACd;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,qCAAqC;YAClD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,kCAAkC;qBAChD;iBACF;gBACD,QAAQ,EAAE,CAAC,UAAU,CAAC;aACvB;YACD,KAAK,CAAC,OAAO,CAAC,IAAI;gBAChB,MAAM,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC;oBAC5B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;iBACrB,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAEf,MAAM,MAAM,GAAG,MAAM,MAAM,CA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AE;oBACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;iBAClB,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAEf,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;gBAC1D,OAAO;oBACL,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;wBACzB,EAAE,EAAE,CAAC,CAAC,EAAE;wBACR,IAAI,EAAE,CAAC,CAAC,IAAI;wBACZ,IAAI,EAAE,CAAC,CAAC,IAAI;wBACZ,UAAU,EAAE,CAAC,CAAC,UAAU;qBACzB,CAAC,CAAC;oBACH,KAAK,EAAE,MAAM,CAAC,MAAM;oBACpB,KAAK;iBACN,CAAC;YACJ,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ontology Validation & Entity Resolution Tools
|
|
3
|
+
*
|
|
4
|
+
* Prevents duplicate entities and validates against ontology schema.
|
|
5
|
+
*/
|
|
6
|
+
import { GraphiteAtlasClient } from '../client.js';
|
|
7
|
+
import { MCPTool } from './index.js';
|
|
8
|
+
export declare function createValidationTools(client: GraphiteAtlasClient): MCPTool[];
|
|
9
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/tools/validation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,EAAE,CAoV5E"}
|