@harness-engineering/mcp-server 0.3.2 → 0.5.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/dist/src/resources/graph.d.ts +3 -0
- package/dist/src/resources/graph.js +104 -0
- package/dist/src/server.js +38 -0
- package/dist/src/tools/agent-definitions.d.ts +27 -0
- package/dist/src/tools/agent-definitions.js +30 -0
- package/dist/src/tools/architecture.js +19 -1
- package/dist/src/tools/docs.js +15 -0
- package/dist/src/tools/entropy.js +33 -2
- package/dist/src/tools/feedback.d.ts +5 -0
- package/dist/src/tools/feedback.js +64 -2
- package/dist/src/tools/generate-slash-commands.d.ts +5 -0
- package/dist/src/tools/generate-slash-commands.js +5 -0
- package/dist/src/tools/graph.d.ts +268 -0
- package/dist/src/tools/graph.js +495 -0
- package/dist/src/tools/persona.d.ts +6 -0
- package/dist/src/tools/persona.js +26 -13
- package/dist/src/utils/graph-loader.d.ts +1 -0
- package/dist/src/utils/graph-loader.js +10 -0
- package/package.json +5 -4
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
export declare const queryGraphDefinition: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
path: {
|
|
8
|
+
type: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
rootNodeIds: {
|
|
12
|
+
type: string;
|
|
13
|
+
items: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
maxDepth: {
|
|
19
|
+
type: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
includeTypes: {
|
|
23
|
+
type: string;
|
|
24
|
+
items: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
excludeTypes: {
|
|
30
|
+
type: string;
|
|
31
|
+
items: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
includeEdges: {
|
|
37
|
+
type: string;
|
|
38
|
+
items: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
bidirectional: {
|
|
44
|
+
type: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
pruneObservability: {
|
|
48
|
+
type: string;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
required: string[];
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare function handleQueryGraph(input: {
|
|
56
|
+
path: string;
|
|
57
|
+
rootNodeIds: string[];
|
|
58
|
+
maxDepth?: number;
|
|
59
|
+
includeTypes?: string[];
|
|
60
|
+
excludeTypes?: string[];
|
|
61
|
+
includeEdges?: string[];
|
|
62
|
+
bidirectional?: boolean;
|
|
63
|
+
pruneObservability?: boolean;
|
|
64
|
+
}): Promise<{
|
|
65
|
+
content: {
|
|
66
|
+
type: "text";
|
|
67
|
+
text: string;
|
|
68
|
+
}[];
|
|
69
|
+
isError: boolean;
|
|
70
|
+
} | {
|
|
71
|
+
content: {
|
|
72
|
+
type: "text";
|
|
73
|
+
text: string;
|
|
74
|
+
}[];
|
|
75
|
+
}>;
|
|
76
|
+
export declare const searchSimilarDefinition: {
|
|
77
|
+
name: string;
|
|
78
|
+
description: string;
|
|
79
|
+
inputSchema: {
|
|
80
|
+
type: "object";
|
|
81
|
+
properties: {
|
|
82
|
+
path: {
|
|
83
|
+
type: string;
|
|
84
|
+
description: string;
|
|
85
|
+
};
|
|
86
|
+
query: {
|
|
87
|
+
type: string;
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
topK: {
|
|
91
|
+
type: string;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
required: string[];
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
export declare function handleSearchSimilar(input: {
|
|
99
|
+
path: string;
|
|
100
|
+
query: string;
|
|
101
|
+
topK?: number;
|
|
102
|
+
}): Promise<{
|
|
103
|
+
content: {
|
|
104
|
+
type: "text";
|
|
105
|
+
text: string;
|
|
106
|
+
}[];
|
|
107
|
+
isError: boolean;
|
|
108
|
+
} | {
|
|
109
|
+
content: {
|
|
110
|
+
type: "text";
|
|
111
|
+
text: string;
|
|
112
|
+
}[];
|
|
113
|
+
}>;
|
|
114
|
+
export declare const findContextForDefinition: {
|
|
115
|
+
name: string;
|
|
116
|
+
description: string;
|
|
117
|
+
inputSchema: {
|
|
118
|
+
type: "object";
|
|
119
|
+
properties: {
|
|
120
|
+
path: {
|
|
121
|
+
type: string;
|
|
122
|
+
description: string;
|
|
123
|
+
};
|
|
124
|
+
intent: {
|
|
125
|
+
type: string;
|
|
126
|
+
description: string;
|
|
127
|
+
};
|
|
128
|
+
tokenBudget: {
|
|
129
|
+
type: string;
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
required: string[];
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
export declare function handleFindContextFor(input: {
|
|
137
|
+
path: string;
|
|
138
|
+
intent: string;
|
|
139
|
+
tokenBudget?: number;
|
|
140
|
+
}): Promise<{
|
|
141
|
+
content: {
|
|
142
|
+
type: "text";
|
|
143
|
+
text: string;
|
|
144
|
+
}[];
|
|
145
|
+
isError: boolean;
|
|
146
|
+
} | {
|
|
147
|
+
content: {
|
|
148
|
+
type: "text";
|
|
149
|
+
text: string;
|
|
150
|
+
}[];
|
|
151
|
+
}>;
|
|
152
|
+
export declare const getRelationshipsDefinition: {
|
|
153
|
+
name: string;
|
|
154
|
+
description: string;
|
|
155
|
+
inputSchema: {
|
|
156
|
+
type: "object";
|
|
157
|
+
properties: {
|
|
158
|
+
path: {
|
|
159
|
+
type: string;
|
|
160
|
+
description: string;
|
|
161
|
+
};
|
|
162
|
+
nodeId: {
|
|
163
|
+
type: string;
|
|
164
|
+
description: string;
|
|
165
|
+
};
|
|
166
|
+
direction: {
|
|
167
|
+
type: string;
|
|
168
|
+
enum: string[];
|
|
169
|
+
description: string;
|
|
170
|
+
};
|
|
171
|
+
depth: {
|
|
172
|
+
type: string;
|
|
173
|
+
description: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
required: string[];
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
export declare function handleGetRelationships(input: {
|
|
180
|
+
path: string;
|
|
181
|
+
nodeId: string;
|
|
182
|
+
direction?: 'outbound' | 'inbound' | 'both';
|
|
183
|
+
depth?: number;
|
|
184
|
+
}): Promise<{
|
|
185
|
+
content: {
|
|
186
|
+
type: "text";
|
|
187
|
+
text: string;
|
|
188
|
+
}[];
|
|
189
|
+
isError: boolean;
|
|
190
|
+
} | {
|
|
191
|
+
content: {
|
|
192
|
+
type: "text";
|
|
193
|
+
text: string;
|
|
194
|
+
}[];
|
|
195
|
+
}>;
|
|
196
|
+
export declare const getImpactDefinition: {
|
|
197
|
+
name: string;
|
|
198
|
+
description: string;
|
|
199
|
+
inputSchema: {
|
|
200
|
+
type: "object";
|
|
201
|
+
properties: {
|
|
202
|
+
path: {
|
|
203
|
+
type: string;
|
|
204
|
+
description: string;
|
|
205
|
+
};
|
|
206
|
+
nodeId: {
|
|
207
|
+
type: string;
|
|
208
|
+
description: string;
|
|
209
|
+
};
|
|
210
|
+
filePath: {
|
|
211
|
+
type: string;
|
|
212
|
+
description: string;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
required: string[];
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
export declare function handleGetImpact(input: {
|
|
219
|
+
path: string;
|
|
220
|
+
nodeId?: string;
|
|
221
|
+
filePath?: string;
|
|
222
|
+
}): Promise<{
|
|
223
|
+
content: {
|
|
224
|
+
type: "text";
|
|
225
|
+
text: string;
|
|
226
|
+
}[];
|
|
227
|
+
isError: boolean;
|
|
228
|
+
} | {
|
|
229
|
+
content: {
|
|
230
|
+
type: "text";
|
|
231
|
+
text: string;
|
|
232
|
+
}[];
|
|
233
|
+
}>;
|
|
234
|
+
export declare const ingestSourceDefinition: {
|
|
235
|
+
name: string;
|
|
236
|
+
description: string;
|
|
237
|
+
inputSchema: {
|
|
238
|
+
type: "object";
|
|
239
|
+
properties: {
|
|
240
|
+
path: {
|
|
241
|
+
type: string;
|
|
242
|
+
description: string;
|
|
243
|
+
};
|
|
244
|
+
source: {
|
|
245
|
+
type: string;
|
|
246
|
+
enum: string[];
|
|
247
|
+
description: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
required: string[];
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
export declare function handleIngestSource(input: {
|
|
254
|
+
path: string;
|
|
255
|
+
source: 'code' | 'knowledge' | 'git' | 'all';
|
|
256
|
+
}): Promise<{
|
|
257
|
+
content: {
|
|
258
|
+
type: "text";
|
|
259
|
+
text: string;
|
|
260
|
+
}[];
|
|
261
|
+
isError?: undefined;
|
|
262
|
+
} | {
|
|
263
|
+
content: {
|
|
264
|
+
type: "text";
|
|
265
|
+
text: string;
|
|
266
|
+
}[];
|
|
267
|
+
isError: boolean;
|
|
268
|
+
}>;
|