@tacitai/mcp-server 0.1.1 → 0.3.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 (70) hide show
  1. package/dist/auth.d.ts +32 -0
  2. package/dist/auth.js +64 -0
  3. package/dist/client.d.ts +60 -5
  4. package/dist/client.js +234 -53
  5. package/dist/index.js +130 -106
  6. package/dist/oauth.d.ts +115 -0
  7. package/dist/oauth.js +619 -0
  8. package/dist/prompts.d.ts +2 -0
  9. package/dist/prompts.js +12 -0
  10. package/dist/setup.d.ts +28 -5
  11. package/dist/setup.js +266 -59
  12. package/dist/tools/agents.d.ts +277 -0
  13. package/dist/tools/agents.js +335 -0
  14. package/dist/tools/annotations.d.ts +117 -0
  15. package/dist/tools/annotations.js +130 -0
  16. package/dist/tools/artifacts.d.ts +178 -8
  17. package/dist/tools/artifacts.js +372 -81
  18. package/dist/tools/chronicle.d.ts +3 -0
  19. package/dist/tools/chronicle.js +165 -0
  20. package/dist/tools/connector_write_back.d.ts +3 -0
  21. package/dist/tools/connector_write_back.js +27 -0
  22. package/dist/tools/converse.d.ts +10 -0
  23. package/dist/tools/converse.js +88 -0
  24. package/dist/tools/crews.d.ts +3 -0
  25. package/dist/tools/crews.js +115 -0
  26. package/dist/tools/drafts.d.ts +83 -0
  27. package/dist/tools/drafts.js +86 -0
  28. package/dist/tools/errors.d.ts +15 -0
  29. package/dist/tools/errors.js +21 -0
  30. package/dist/tools/export.d.ts +54 -0
  31. package/dist/tools/export.js +55 -0
  32. package/dist/tools/gm.d.ts +214 -0
  33. package/dist/tools/gm.js +198 -0
  34. package/dist/tools/ingest.d.ts +58 -4
  35. package/dist/tools/ingest.js +109 -76
  36. package/dist/tools/kb.d.ts +544 -0
  37. package/dist/tools/kb.js +687 -0
  38. package/dist/tools/lake-structure.d.ts +3 -0
  39. package/dist/tools/lake-structure.js +126 -0
  40. package/dist/tools/lake.d.ts +932 -0
  41. package/dist/tools/lake.js +1017 -0
  42. package/dist/tools/move.d.ts +200 -0
  43. package/dist/tools/move.js +96 -0
  44. package/dist/tools/outbox.d.ts +274 -0
  45. package/dist/tools/outbox.js +223 -0
  46. package/dist/tools/people.d.ts +3 -0
  47. package/dist/tools/people.js +59 -0
  48. package/dist/tools/pyramid.d.ts +554 -0
  49. package/dist/tools/pyramid.js +758 -0
  50. package/dist/tools/recall.d.ts +2 -0
  51. package/dist/tools/recall.js +28 -17
  52. package/dist/tools/registry.d.ts +17 -0
  53. package/dist/tools/registry.js +199 -0
  54. package/dist/tools/research.d.ts +47 -0
  55. package/dist/tools/research.js +575 -0
  56. package/dist/tools/search.d.ts +9 -0
  57. package/dist/tools/search.js +86 -25
  58. package/dist/tools/sharing.d.ts +63 -0
  59. package/dist/tools/sharing.js +157 -0
  60. package/dist/tools/skills.d.ts +9 -0
  61. package/dist/tools/skills.js +98 -0
  62. package/dist/tools/synthesize.d.ts +54 -2
  63. package/dist/tools/synthesize.js +80 -23
  64. package/dist/tools/web-url.d.ts +57 -0
  65. package/dist/tools/web-url.js +74 -0
  66. package/dist/tools/workspaces.d.ts +3 -0
  67. package/dist/tools/workspaces.js +47 -0
  68. package/dist/transport.d.ts +9 -0
  69. package/dist/transport.js +209 -0
  70. package/package.json +5 -4
@@ -0,0 +1,554 @@
1
+ /**
2
+ * Pyramid tools — CLI wrappers for portfolio, program, dossier, and
3
+ * value-stream CRUD on the Axum REST API.
4
+ *
5
+ * Routes (Axum, all under /api/v1):
6
+ * GET/POST /portfolios
7
+ * GET/POST /portfolios/:id/programs
8
+ * GET/POST /dossiers
9
+ * GET/PUT/DELETE /dossiers/:id
10
+ * GET/POST /alignment/value-streams
11
+ */
12
+ import { z } from 'zod';
13
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
14
+ import { TacitClient } from '../client.js';
15
+ export interface ToolRequest {
16
+ execute(): Promise<{
17
+ content: Array<{
18
+ type: 'text';
19
+ text: string;
20
+ }>;
21
+ isError?: boolean;
22
+ }>;
23
+ }
24
+ export declare const listPortfoliosInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
25
+ export type ListPortfoliosInput = z.infer<typeof listPortfoliosInputSchema>;
26
+ export declare const LIST_PORTFOLIOS_TOOL_DEF: {
27
+ name: "tacit_pyramid_list_portfolios";
28
+ description: string;
29
+ inputSchema: {
30
+ type: "object";
31
+ properties: {};
32
+ required: string[];
33
+ };
34
+ };
35
+ export declare function buildListPortfoliosRequest(client: TacitClient, _input: ListPortfoliosInput): ToolRequest;
36
+ export declare function handleListPortfolios(args: unknown): Promise<{
37
+ content: Array<{
38
+ type: 'text';
39
+ text: string;
40
+ }>;
41
+ isError?: boolean;
42
+ }>;
43
+ export declare const createPortfolioInputSchema: z.ZodObject<{
44
+ name: z.ZodString;
45
+ pillar: z.ZodEnum<["INTERNAL", "PRODUCT", "BUSINESS"]>;
46
+ domain_schema_id: z.ZodOptional<z.ZodString>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ name: string;
49
+ pillar: "INTERNAL" | "PRODUCT" | "BUSINESS";
50
+ domain_schema_id?: string | undefined;
51
+ }, {
52
+ name: string;
53
+ pillar: "INTERNAL" | "PRODUCT" | "BUSINESS";
54
+ domain_schema_id?: string | undefined;
55
+ }>;
56
+ export type CreatePortfolioInput = z.infer<typeof createPortfolioInputSchema>;
57
+ export declare const CREATE_PORTFOLIO_TOOL_DEF: {
58
+ name: "tacit_pyramid_create_portfolio";
59
+ description: string;
60
+ inputSchema: {
61
+ type: "object";
62
+ properties: {
63
+ name: {
64
+ type: string;
65
+ description: string;
66
+ };
67
+ pillar: {
68
+ type: string;
69
+ enum: string[];
70
+ description: string;
71
+ };
72
+ domain_schema_id: {
73
+ type: string;
74
+ description: string;
75
+ };
76
+ };
77
+ required: string[];
78
+ };
79
+ };
80
+ export declare function buildCreatePortfolioRequest(client: TacitClient, input: CreatePortfolioInput): ToolRequest;
81
+ export declare function handleCreatePortfolio(args: unknown): Promise<{
82
+ content: Array<{
83
+ type: 'text';
84
+ text: string;
85
+ }>;
86
+ isError?: boolean;
87
+ }>;
88
+ export declare const listProgramsInputSchema: z.ZodObject<{
89
+ portfolio_id: z.ZodString;
90
+ }, "strip", z.ZodTypeAny, {
91
+ portfolio_id: string;
92
+ }, {
93
+ portfolio_id: string;
94
+ }>;
95
+ export type ListProgramsInput = z.infer<typeof listProgramsInputSchema>;
96
+ export declare const LIST_PROGRAMS_TOOL_DEF: {
97
+ name: "tacit_pyramid_list_programs";
98
+ description: string;
99
+ inputSchema: {
100
+ type: "object";
101
+ properties: {
102
+ portfolio_id: {
103
+ type: string;
104
+ description: string;
105
+ };
106
+ };
107
+ required: string[];
108
+ };
109
+ };
110
+ export declare function buildListProgramsRequest(client: TacitClient, input: ListProgramsInput): ToolRequest;
111
+ export declare function handleListPrograms(args: unknown): Promise<{
112
+ content: Array<{
113
+ type: 'text';
114
+ text: string;
115
+ }>;
116
+ isError?: boolean;
117
+ }>;
118
+ export declare const createProgramInputSchema: z.ZodObject<{
119
+ portfolio_id: z.ZodString;
120
+ name: z.ZodString;
121
+ domain: z.ZodOptional<z.ZodString>;
122
+ description: z.ZodOptional<z.ZodString>;
123
+ value_stream_id: z.ZodOptional<z.ZodString>;
124
+ weight: z.ZodOptional<z.ZodNumber>;
125
+ target_starts_at: z.ZodOptional<z.ZodString>;
126
+ target_ends_at: z.ZodOptional<z.ZodString>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ name: string;
129
+ portfolio_id: string;
130
+ description?: string | undefined;
131
+ domain?: string | undefined;
132
+ value_stream_id?: string | undefined;
133
+ weight?: number | undefined;
134
+ target_starts_at?: string | undefined;
135
+ target_ends_at?: string | undefined;
136
+ }, {
137
+ name: string;
138
+ portfolio_id: string;
139
+ description?: string | undefined;
140
+ domain?: string | undefined;
141
+ value_stream_id?: string | undefined;
142
+ weight?: number | undefined;
143
+ target_starts_at?: string | undefined;
144
+ target_ends_at?: string | undefined;
145
+ }>;
146
+ export type CreateProgramInput = z.infer<typeof createProgramInputSchema>;
147
+ export declare const CREATE_PROGRAM_TOOL_DEF: {
148
+ name: "tacit_pyramid_create_program";
149
+ description: string;
150
+ inputSchema: {
151
+ type: "object";
152
+ properties: {
153
+ portfolio_id: {
154
+ type: string;
155
+ description: string;
156
+ };
157
+ name: {
158
+ type: string;
159
+ description: string;
160
+ };
161
+ domain: {
162
+ type: string;
163
+ description: string;
164
+ };
165
+ description: {
166
+ type: string;
167
+ description: string;
168
+ };
169
+ value_stream_id: {
170
+ type: string;
171
+ description: string;
172
+ };
173
+ weight: {
174
+ type: string;
175
+ description: string;
176
+ };
177
+ target_starts_at: {
178
+ type: string;
179
+ description: string;
180
+ };
181
+ target_ends_at: {
182
+ type: string;
183
+ description: string;
184
+ };
185
+ };
186
+ required: string[];
187
+ };
188
+ };
189
+ export declare function buildCreateProgramRequest(client: TacitClient, input: CreateProgramInput): ToolRequest;
190
+ export declare function handleCreateProgram(args: unknown): Promise<{
191
+ content: Array<{
192
+ type: 'text';
193
+ text: string;
194
+ }>;
195
+ isError?: boolean;
196
+ }>;
197
+ export declare const listDossiersInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
198
+ export type ListDossiersInput = z.infer<typeof listDossiersInputSchema>;
199
+ export declare const LIST_DOSSIERS_TOOL_DEF: {
200
+ name: "tacit_pyramid_list_dossiers";
201
+ description: string;
202
+ inputSchema: {
203
+ type: "object";
204
+ properties: {};
205
+ required: string[];
206
+ };
207
+ };
208
+ export declare function buildListDossiersRequest(client: TacitClient, _input: ListDossiersInput): ToolRequest;
209
+ export declare function handleListDossiers(args: unknown): Promise<{
210
+ content: Array<{
211
+ type: 'text';
212
+ text: string;
213
+ }>;
214
+ isError?: boolean;
215
+ }>;
216
+ export declare const getDossierInputSchema: z.ZodObject<{
217
+ dossier_id: z.ZodString;
218
+ }, "strip", z.ZodTypeAny, {
219
+ dossier_id: string;
220
+ }, {
221
+ dossier_id: string;
222
+ }>;
223
+ export type GetDossierInput = z.infer<typeof getDossierInputSchema>;
224
+ export declare const GET_DOSSIER_TOOL_DEF: {
225
+ name: "tacit_pyramid_get_dossier";
226
+ description: string;
227
+ inputSchema: {
228
+ type: "object";
229
+ properties: {
230
+ dossier_id: {
231
+ type: string;
232
+ description: string;
233
+ };
234
+ };
235
+ required: string[];
236
+ };
237
+ };
238
+ export declare function buildGetDossierRequest(client: TacitClient, input: GetDossierInput): ToolRequest;
239
+ export declare function handleGetDossier(args: unknown): Promise<{
240
+ content: Array<{
241
+ type: 'text';
242
+ text: string;
243
+ }>;
244
+ isError?: boolean;
245
+ }>;
246
+ export declare const createDossierInputSchema: z.ZodObject<{
247
+ name: z.ZodString;
248
+ document_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
249
+ portfolio_id: z.ZodOptional<z.ZodString>;
250
+ program_id: z.ZodOptional<z.ZodString>;
251
+ dossier_kind: z.ZodOptional<z.ZodString>;
252
+ status: z.ZodOptional<z.ZodString>;
253
+ weight: z.ZodOptional<z.ZodNumber>;
254
+ target_starts_at: z.ZodOptional<z.ZodString>;
255
+ target_ends_at: z.ZodOptional<z.ZodString>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ name: string;
258
+ status?: string | undefined;
259
+ portfolio_id?: string | undefined;
260
+ program_id?: string | undefined;
261
+ weight?: number | undefined;
262
+ target_starts_at?: string | undefined;
263
+ target_ends_at?: string | undefined;
264
+ document_ids?: string[] | undefined;
265
+ dossier_kind?: string | undefined;
266
+ }, {
267
+ name: string;
268
+ status?: string | undefined;
269
+ portfolio_id?: string | undefined;
270
+ program_id?: string | undefined;
271
+ weight?: number | undefined;
272
+ target_starts_at?: string | undefined;
273
+ target_ends_at?: string | undefined;
274
+ document_ids?: string[] | undefined;
275
+ dossier_kind?: string | undefined;
276
+ }>;
277
+ export type CreateDossierInput = z.infer<typeof createDossierInputSchema>;
278
+ export declare const CREATE_DOSSIER_TOOL_DEF: {
279
+ name: "tacit_pyramid_create_dossier";
280
+ description: string;
281
+ inputSchema: {
282
+ type: "object";
283
+ properties: {
284
+ name: {
285
+ type: string;
286
+ description: string;
287
+ };
288
+ document_ids: {
289
+ type: string;
290
+ items: {
291
+ type: string;
292
+ };
293
+ description: string;
294
+ };
295
+ portfolio_id: {
296
+ type: string;
297
+ description: string;
298
+ };
299
+ program_id: {
300
+ type: string;
301
+ description: string;
302
+ };
303
+ dossier_kind: {
304
+ type: string;
305
+ description: string;
306
+ };
307
+ status: {
308
+ type: string;
309
+ description: string;
310
+ };
311
+ weight: {
312
+ type: string;
313
+ description: string;
314
+ };
315
+ target_starts_at: {
316
+ type: string;
317
+ description: string;
318
+ };
319
+ target_ends_at: {
320
+ type: string;
321
+ description: string;
322
+ };
323
+ };
324
+ required: string[];
325
+ };
326
+ };
327
+ export declare function buildCreateDossierRequest(client: TacitClient, input: CreateDossierInput): ToolRequest;
328
+ export declare function handleCreateDossier(args: unknown): Promise<{
329
+ content: Array<{
330
+ type: 'text';
331
+ text: string;
332
+ }>;
333
+ isError?: boolean;
334
+ }>;
335
+ export declare const updateDossierInputSchema: z.ZodObject<{
336
+ dossier_id: z.ZodString;
337
+ name: z.ZodOptional<z.ZodString>;
338
+ document_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
339
+ portfolio_id: z.ZodOptional<z.ZodString>;
340
+ program_id: z.ZodOptional<z.ZodString>;
341
+ status: z.ZodOptional<z.ZodString>;
342
+ weight: z.ZodOptional<z.ZodNumber>;
343
+ target_starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
344
+ target_ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ dossier_id: string;
347
+ name?: string | undefined;
348
+ status?: string | undefined;
349
+ portfolio_id?: string | undefined;
350
+ program_id?: string | undefined;
351
+ weight?: number | undefined;
352
+ target_starts_at?: string | null | undefined;
353
+ target_ends_at?: string | null | undefined;
354
+ document_ids?: string[] | undefined;
355
+ }, {
356
+ dossier_id: string;
357
+ name?: string | undefined;
358
+ status?: string | undefined;
359
+ portfolio_id?: string | undefined;
360
+ program_id?: string | undefined;
361
+ weight?: number | undefined;
362
+ target_starts_at?: string | null | undefined;
363
+ target_ends_at?: string | null | undefined;
364
+ document_ids?: string[] | undefined;
365
+ }>;
366
+ export type UpdateDossierInput = z.infer<typeof updateDossierInputSchema>;
367
+ export declare const UPDATE_DOSSIER_TOOL_DEF: {
368
+ name: "tacit_pyramid_update_dossier";
369
+ description: string;
370
+ inputSchema: {
371
+ type: "object";
372
+ properties: {
373
+ dossier_id: {
374
+ type: string;
375
+ description: string;
376
+ };
377
+ name: {
378
+ type: string;
379
+ description: string;
380
+ };
381
+ document_ids: {
382
+ type: string;
383
+ items: {
384
+ type: string;
385
+ };
386
+ description: string;
387
+ };
388
+ portfolio_id: {
389
+ type: string;
390
+ description: string;
391
+ };
392
+ program_id: {
393
+ type: string;
394
+ description: string;
395
+ };
396
+ status: {
397
+ type: string;
398
+ description: string;
399
+ };
400
+ weight: {
401
+ type: string;
402
+ description: string;
403
+ };
404
+ target_starts_at: {
405
+ type: string[];
406
+ description: string;
407
+ };
408
+ target_ends_at: {
409
+ type: string[];
410
+ description: string;
411
+ };
412
+ };
413
+ required: string[];
414
+ };
415
+ };
416
+ export declare function buildUpdateDossierRequest(client: TacitClient, input: UpdateDossierInput): ToolRequest;
417
+ export declare function handleUpdateDossier(args: unknown): Promise<{
418
+ content: Array<{
419
+ type: 'text';
420
+ text: string;
421
+ }>;
422
+ isError?: boolean;
423
+ }>;
424
+ export declare const deleteDossierInputSchema: z.ZodObject<{
425
+ dossier_id: z.ZodString;
426
+ }, "strip", z.ZodTypeAny, {
427
+ dossier_id: string;
428
+ }, {
429
+ dossier_id: string;
430
+ }>;
431
+ export type DeleteDossierInput = z.infer<typeof deleteDossierInputSchema>;
432
+ export declare const DELETE_DOSSIER_TOOL_DEF: {
433
+ name: "tacit_pyramid_delete_dossier";
434
+ description: string;
435
+ inputSchema: {
436
+ type: "object";
437
+ properties: {
438
+ dossier_id: {
439
+ type: string;
440
+ description: string;
441
+ };
442
+ };
443
+ required: string[];
444
+ };
445
+ };
446
+ export declare function buildDeleteDossierRequest(client: TacitClient, input: DeleteDossierInput): ToolRequest;
447
+ export declare function handleDeleteDossier(args: unknown): Promise<{
448
+ content: Array<{
449
+ type: 'text';
450
+ text: string;
451
+ }>;
452
+ isError?: boolean;
453
+ }>;
454
+ export declare const listValueStreamsInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
455
+ export type ListValueStreamsInput = z.infer<typeof listValueStreamsInputSchema>;
456
+ export declare const LIST_VALUE_STREAMS_TOOL_DEF: {
457
+ name: "tacit_pyramid_list_value_streams";
458
+ description: string;
459
+ inputSchema: {
460
+ type: "object";
461
+ properties: {};
462
+ required: string[];
463
+ };
464
+ };
465
+ export declare function buildListValueStreamsRequest(client: TacitClient, _input: ListValueStreamsInput): ToolRequest;
466
+ export declare function handleListValueStreams(args: unknown): Promise<{
467
+ content: Array<{
468
+ type: 'text';
469
+ text: string;
470
+ }>;
471
+ isError?: boolean;
472
+ }>;
473
+ export declare const createValueStreamInputSchema: z.ZodObject<{
474
+ portfolio_id: z.ZodString;
475
+ name: z.ZodString;
476
+ description: z.ZodOptional<z.ZodString>;
477
+ }, "strip", z.ZodTypeAny, {
478
+ name: string;
479
+ portfolio_id: string;
480
+ description?: string | undefined;
481
+ }, {
482
+ name: string;
483
+ portfolio_id: string;
484
+ description?: string | undefined;
485
+ }>;
486
+ export type CreateValueStreamInput = z.infer<typeof createValueStreamInputSchema>;
487
+ export declare const CREATE_VALUE_STREAM_TOOL_DEF: {
488
+ name: "tacit_pyramid_create_value_stream";
489
+ description: string;
490
+ inputSchema: {
491
+ type: "object";
492
+ properties: {
493
+ portfolio_id: {
494
+ type: string;
495
+ description: string;
496
+ };
497
+ name: {
498
+ type: string;
499
+ description: string;
500
+ };
501
+ description: {
502
+ type: string;
503
+ description: string;
504
+ };
505
+ };
506
+ required: string[];
507
+ };
508
+ };
509
+ export declare function buildCreateValueStreamRequest(client: TacitClient, input: CreateValueStreamInput): ToolRequest;
510
+ export declare function handleCreateValueStream(args: unknown): Promise<{
511
+ content: Array<{
512
+ type: 'text';
513
+ text: string;
514
+ }>;
515
+ isError?: boolean;
516
+ }>;
517
+ export declare const assignProgramToVSInputSchema: z.ZodObject<{
518
+ value_stream_id: z.ZodString;
519
+ program_id: z.ZodString;
520
+ }, "strip", z.ZodTypeAny, {
521
+ program_id: string;
522
+ value_stream_id: string;
523
+ }, {
524
+ program_id: string;
525
+ value_stream_id: string;
526
+ }>;
527
+ export type AssignProgramToVSInput = z.infer<typeof assignProgramToVSInputSchema>;
528
+ export declare const ASSIGN_PROGRAM_TO_VS_TOOL_DEF: {
529
+ name: "tacit_pyramid_assign_program_to_value_stream";
530
+ description: string;
531
+ inputSchema: {
532
+ type: "object";
533
+ properties: {
534
+ value_stream_id: {
535
+ type: string;
536
+ description: string;
537
+ };
538
+ program_id: {
539
+ type: string;
540
+ description: string;
541
+ };
542
+ };
543
+ required: string[];
544
+ };
545
+ };
546
+ export declare function buildAssignProgramToVSRequest(client: TacitClient, input: AssignProgramToVSInput): ToolRequest;
547
+ export declare function handleAssignProgramToVS(args: unknown): Promise<{
548
+ content: Array<{
549
+ type: 'text';
550
+ text: string;
551
+ }>;
552
+ isError?: boolean;
553
+ }>;
554
+ export declare function registerPyramidTools(server: McpServer, getClientFn: () => Promise<TacitClient>): void;