@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.7.0-dev.396",
3
+ "version": "0.9.0-rc.403",
4
4
  "description": "MCP server for Taiga -- gives AI assistants access to documents and products",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
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(productId: string, opts?: { backlogItemId?: string | undefined; limit?: number | undefined }) {
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
  }