@taiga-ai/mcp-server 0.7.0-dev.396 → 0.9.0-rc.403
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/index.js +747 -35
- package/package.json +1 -1
- package/src/client.ts +20 -4
- package/src/server.integration.test.ts +891 -9
- package/src/tools/backlogs.ts +8 -8
- package/src/tools/builds.ts +8 -8
- package/src/tools/catalogue.test.ts +31 -5
- package/src/tools/catalogue.ts +1 -1
- package/src/tools/context.ts +278 -0
- package/src/tools/documents.ts +7 -6
- package/src/tools/errors.ts +50 -3
- package/src/tools/index.ts +7 -1
- package/src/tools/inputs.ts +32 -0
- package/src/tools/instructions.ts +10 -2
- package/src/tools/markdown.test.ts +83 -0
- package/src/tools/markdown.ts +82 -0
- package/src/tools/products.ts +91 -41
- package/src/tools/prompts.ts +264 -0
- package/src/tools/resources.ts +216 -0
- package/src/tools/sections.test.ts +18 -1
- package/src/tools/sections.ts +17 -0
- package/src/tools/summarize.ts +5 -0
- package/taiga-ai-mcp-server-0.9.0-rc.403.tgz +0 -0
- package/taiga-ai-mcp-server-0.7.0-dev.396.tgz +0 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -159,13 +159,21 @@ export class TaigaClient {
|
|
|
159
159
|
return this.request<{ data: unknown }>('GET', `/products/${seg(id)}`);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
async listProductRepositories(productId: string) {
|
|
163
|
+
return this.request<{ data: unknown[]; nextCursor: string | null }>(
|
|
164
|
+
'GET',
|
|
165
|
+
`/products/${seg(productId)}/repositories`
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
162
169
|
// ---------------------------------------------------------------------------
|
|
163
170
|
// Documents (tenant-level policies)
|
|
164
171
|
// ---------------------------------------------------------------------------
|
|
165
172
|
|
|
166
|
-
async listTenantDocuments(opts?: { limit?: number | undefined }) {
|
|
173
|
+
async listTenantDocuments(opts?: { limit?: number | undefined; cursor?: string | undefined }) {
|
|
167
174
|
const params = new URLSearchParams();
|
|
168
175
|
if (opts?.limit) params.set('limit', String(opts.limit));
|
|
176
|
+
if (opts?.cursor) params.set('cursor', opts.cursor);
|
|
169
177
|
const qs = params.toString();
|
|
170
178
|
return this.request<{ data: unknown[]; nextCursor: string | null }>(
|
|
171
179
|
'GET',
|
|
@@ -194,9 +202,10 @@ export class TaigaClient {
|
|
|
194
202
|
// Factory Documents
|
|
195
203
|
// ---------------------------------------------------------------------------
|
|
196
204
|
|
|
197
|
-
async listFactoryDocuments(factoryId: string, opts?: { limit?: number | undefined }) {
|
|
205
|
+
async listFactoryDocuments(factoryId: string, opts?: { limit?: number | undefined; cursor?: string | undefined }) {
|
|
198
206
|
const params = new URLSearchParams();
|
|
199
207
|
if (opts?.limit) params.set('limit', String(opts.limit));
|
|
208
|
+
if (opts?.cursor) params.set('cursor', opts.cursor);
|
|
200
209
|
const qs = params.toString();
|
|
201
210
|
return this.request<{ data: unknown[]; nextCursor: string | null }>(
|
|
202
211
|
'GET',
|
|
@@ -264,6 +273,7 @@ export class TaigaClient {
|
|
|
264
273
|
category?: string | undefined;
|
|
265
274
|
includeArchived?: boolean | undefined;
|
|
266
275
|
limit?: number | undefined;
|
|
276
|
+
cursor?: string | undefined;
|
|
267
277
|
}
|
|
268
278
|
) {
|
|
269
279
|
const params = new URLSearchParams();
|
|
@@ -273,6 +283,7 @@ export class TaigaClient {
|
|
|
273
283
|
// The route reads the literal strings 'true' and 'false'.
|
|
274
284
|
if (opts?.includeArchived) params.set('includeArchived', 'true');
|
|
275
285
|
if (opts?.limit) params.set('limit', String(opts.limit));
|
|
286
|
+
if (opts?.cursor) params.set('cursor', opts.cursor);
|
|
276
287
|
const qs = params.toString();
|
|
277
288
|
return this.request<{ data: unknown[]; nextCursor: string | null }>(
|
|
278
289
|
'GET',
|
|
@@ -288,10 +299,14 @@ export class TaigaClient {
|
|
|
288
299
|
// Build runs
|
|
289
300
|
// ---------------------------------------------------------------------------
|
|
290
301
|
|
|
291
|
-
async listBuildRuns(
|
|
302
|
+
async listBuildRuns(
|
|
303
|
+
productId: string,
|
|
304
|
+
opts?: { backlogItemId?: string | undefined; limit?: number | undefined; cursor?: string | undefined }
|
|
305
|
+
) {
|
|
292
306
|
const params = new URLSearchParams();
|
|
293
307
|
if (opts?.backlogItemId) params.set('backlogItemId', opts.backlogItemId);
|
|
294
308
|
if (opts?.limit) params.set('limit', String(opts.limit));
|
|
309
|
+
if (opts?.cursor) params.set('cursor', opts.cursor);
|
|
295
310
|
const qs = params.toString();
|
|
296
311
|
return this.request<{ data: unknown[]; nextCursor: string | null }>(
|
|
297
312
|
'GET',
|
|
@@ -315,9 +330,10 @@ export class TaigaClient {
|
|
|
315
330
|
return this.request<{ data: unknown }>('GET', `/factories/${seg(id)}`);
|
|
316
331
|
}
|
|
317
332
|
|
|
318
|
-
async listFactories(opts?: { limit?: number | undefined }) {
|
|
333
|
+
async listFactories(opts?: { limit?: number | undefined; cursor?: string | undefined }) {
|
|
319
334
|
const params = new URLSearchParams();
|
|
320
335
|
if (opts?.limit) params.set('limit', String(opts.limit));
|
|
336
|
+
if (opts?.cursor) params.set('cursor', opts.cursor);
|
|
321
337
|
const qs = params.toString();
|
|
322
338
|
return this.request<{ data: unknown[]; nextCursor: string | null }>('GET', `/factories${qs ? `?${qs}` : ''}`);
|
|
323
339
|
}
|