@tacitai/mcp-server 0.1.1 → 0.2.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/auth.d.ts +32 -0
- package/dist/auth.js +64 -0
- package/dist/client.d.ts +60 -5
- package/dist/client.js +234 -53
- package/dist/index.js +128 -106
- package/dist/oauth.d.ts +115 -0
- package/dist/oauth.js +619 -0
- package/dist/prompts.d.ts +2 -0
- package/dist/prompts.js +12 -0
- package/dist/setup.d.ts +28 -5
- package/dist/setup.js +266 -59
- package/dist/tools/agents.d.ts +277 -0
- package/dist/tools/agents.js +335 -0
- package/dist/tools/annotations.d.ts +117 -0
- package/dist/tools/annotations.js +130 -0
- package/dist/tools/artifacts.d.ts +178 -8
- package/dist/tools/artifacts.js +372 -81
- package/dist/tools/chronicle.d.ts +3 -0
- package/dist/tools/chronicle.js +165 -0
- package/dist/tools/connector_write_back.d.ts +3 -0
- package/dist/tools/connector_write_back.js +27 -0
- package/dist/tools/converse.d.ts +10 -0
- package/dist/tools/converse.js +88 -0
- package/dist/tools/crews.d.ts +3 -0
- package/dist/tools/crews.js +115 -0
- package/dist/tools/drafts.d.ts +83 -0
- package/dist/tools/drafts.js +86 -0
- package/dist/tools/errors.d.ts +15 -0
- package/dist/tools/errors.js +21 -0
- package/dist/tools/export.d.ts +54 -0
- package/dist/tools/export.js +55 -0
- package/dist/tools/gm.d.ts +214 -0
- package/dist/tools/gm.js +198 -0
- package/dist/tools/ingest.d.ts +58 -4
- package/dist/tools/ingest.js +109 -76
- package/dist/tools/kb.d.ts +544 -0
- package/dist/tools/kb.js +687 -0
- package/dist/tools/lake-structure.d.ts +3 -0
- package/dist/tools/lake-structure.js +126 -0
- package/dist/tools/lake.d.ts +932 -0
- package/dist/tools/lake.js +1017 -0
- package/dist/tools/move.d.ts +200 -0
- package/dist/tools/move.js +96 -0
- package/dist/tools/outbox.d.ts +274 -0
- package/dist/tools/outbox.js +223 -0
- package/dist/tools/people.d.ts +3 -0
- package/dist/tools/people.js +59 -0
- package/dist/tools/pyramid.d.ts +554 -0
- package/dist/tools/pyramid.js +758 -0
- package/dist/tools/recall.d.ts +2 -0
- package/dist/tools/recall.js +28 -17
- package/dist/tools/registry.d.ts +17 -0
- package/dist/tools/registry.js +197 -0
- package/dist/tools/research.d.ts +47 -0
- package/dist/tools/research.js +575 -0
- package/dist/tools/search.d.ts +9 -0
- package/dist/tools/search.js +86 -25
- package/dist/tools/sharing.d.ts +63 -0
- package/dist/tools/sharing.js +157 -0
- package/dist/tools/synthesize.d.ts +54 -2
- package/dist/tools/synthesize.js +80 -23
- package/dist/tools/web-url.d.ts +57 -0
- package/dist/tools/web-url.js +74 -0
- package/dist/tools/workspaces.d.ts +3 -0
- package/dist/tools/workspaces.js +47 -0
- package/dist/transport.d.ts +9 -0
- package/dist/transport.js +209 -0
- package/package.json +5 -4
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KB tools — CLI wrappers for knowledge collections, articles, categories,
|
|
3
|
+
* and browse/promote flows on the Axum REST API.
|
|
4
|
+
*
|
|
5
|
+
* Routes (Axum, all under /api/v1):
|
|
6
|
+
* GET/POST /knowledge/collections
|
|
7
|
+
* PATCH/DELETE /knowledge/collections/:id
|
|
8
|
+
* GET/POST /knowledge/articles
|
|
9
|
+
* GET/PUT /knowledge/articles/:id
|
|
10
|
+
* GET /knowledge/browse
|
|
11
|
+
* POST /knowledge/articles/from-artifact/:id
|
|
12
|
+
* GET/POST /knowledge/categories
|
|
13
|
+
*/
|
|
14
|
+
import { z } from 'zod';
|
|
15
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
16
|
+
import { TacitClient } from '../client.js';
|
|
17
|
+
export interface ToolRequest {
|
|
18
|
+
execute(): Promise<{
|
|
19
|
+
content: Array<{
|
|
20
|
+
type: 'text';
|
|
21
|
+
text: string;
|
|
22
|
+
}>;
|
|
23
|
+
isError?: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
export declare const listCollectionsInputSchema: z.ZodObject<{
|
|
27
|
+
kb_category_id: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
kb_category_id?: string | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
kb_category_id?: string | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export type ListCollectionsInput = z.infer<typeof listCollectionsInputSchema>;
|
|
34
|
+
export declare const LIST_COLLECTIONS_TOOL_DEF: {
|
|
35
|
+
name: "tacit_kb_list_collections";
|
|
36
|
+
description: string;
|
|
37
|
+
inputSchema: {
|
|
38
|
+
type: "object";
|
|
39
|
+
properties: {
|
|
40
|
+
kb_category_id: {
|
|
41
|
+
type: string;
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
required: string[];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare function buildListCollectionsRequest(client: TacitClient, input: ListCollectionsInput): ToolRequest;
|
|
49
|
+
export declare function handleListCollections(args: unknown): Promise<{
|
|
50
|
+
content: Array<{
|
|
51
|
+
type: 'text';
|
|
52
|
+
text: string;
|
|
53
|
+
}>;
|
|
54
|
+
isError?: boolean;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const createCollectionInputSchema: z.ZodObject<{
|
|
57
|
+
slug: z.ZodString;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
description: z.ZodOptional<z.ZodString>;
|
|
60
|
+
kb_category_id: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
name: string;
|
|
63
|
+
slug: string;
|
|
64
|
+
description?: string | undefined;
|
|
65
|
+
kb_category_id?: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
name: string;
|
|
68
|
+
slug: string;
|
|
69
|
+
description?: string | undefined;
|
|
70
|
+
kb_category_id?: string | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
export type CreateCollectionInput = z.infer<typeof createCollectionInputSchema>;
|
|
73
|
+
export declare const CREATE_COLLECTION_TOOL_DEF: {
|
|
74
|
+
name: "tacit_kb_create_collection";
|
|
75
|
+
description: string;
|
|
76
|
+
inputSchema: {
|
|
77
|
+
type: "object";
|
|
78
|
+
properties: {
|
|
79
|
+
slug: {
|
|
80
|
+
type: string;
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
name: {
|
|
84
|
+
type: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
description: {
|
|
88
|
+
type: string;
|
|
89
|
+
description: string;
|
|
90
|
+
};
|
|
91
|
+
kb_category_id: {
|
|
92
|
+
type: string;
|
|
93
|
+
description: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
required: string[];
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export declare function buildCreateCollectionRequest(client: TacitClient, input: CreateCollectionInput): ToolRequest;
|
|
100
|
+
export declare function handleCreateCollection(args: unknown): Promise<{
|
|
101
|
+
content: Array<{
|
|
102
|
+
type: 'text';
|
|
103
|
+
text: string;
|
|
104
|
+
}>;
|
|
105
|
+
isError?: boolean;
|
|
106
|
+
}>;
|
|
107
|
+
export declare const updateCollectionInputSchema: z.ZodObject<{
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
name: z.ZodString;
|
|
110
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
111
|
+
kb_category_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
name: string;
|
|
114
|
+
id: string;
|
|
115
|
+
slug?: string | undefined;
|
|
116
|
+
kb_category_id?: string | null | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
name: string;
|
|
119
|
+
id: string;
|
|
120
|
+
slug?: string | undefined;
|
|
121
|
+
kb_category_id?: string | null | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
export type UpdateCollectionInput = z.infer<typeof updateCollectionInputSchema>;
|
|
124
|
+
export declare const UPDATE_COLLECTION_TOOL_DEF: {
|
|
125
|
+
name: "tacit_kb_update_collection";
|
|
126
|
+
description: string;
|
|
127
|
+
inputSchema: {
|
|
128
|
+
type: "object";
|
|
129
|
+
properties: {
|
|
130
|
+
id: {
|
|
131
|
+
type: string;
|
|
132
|
+
description: string;
|
|
133
|
+
};
|
|
134
|
+
name: {
|
|
135
|
+
type: string;
|
|
136
|
+
description: string;
|
|
137
|
+
};
|
|
138
|
+
slug: {
|
|
139
|
+
type: string;
|
|
140
|
+
description: string;
|
|
141
|
+
};
|
|
142
|
+
kb_category_id: {
|
|
143
|
+
type: string[];
|
|
144
|
+
description: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
required: string[];
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
export declare function buildUpdateCollectionRequest(client: TacitClient, input: UpdateCollectionInput): ToolRequest;
|
|
151
|
+
export declare function handleUpdateCollection(args: unknown): Promise<{
|
|
152
|
+
content: Array<{
|
|
153
|
+
type: 'text';
|
|
154
|
+
text: string;
|
|
155
|
+
}>;
|
|
156
|
+
isError?: boolean;
|
|
157
|
+
}>;
|
|
158
|
+
export declare const deleteCollectionInputSchema: z.ZodObject<{
|
|
159
|
+
id: z.ZodString;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
id: string;
|
|
162
|
+
}, {
|
|
163
|
+
id: string;
|
|
164
|
+
}>;
|
|
165
|
+
export type DeleteCollectionInput = z.infer<typeof deleteCollectionInputSchema>;
|
|
166
|
+
export declare const DELETE_COLLECTION_TOOL_DEF: {
|
|
167
|
+
name: "tacit_kb_delete_collection";
|
|
168
|
+
description: string;
|
|
169
|
+
inputSchema: {
|
|
170
|
+
type: "object";
|
|
171
|
+
properties: {
|
|
172
|
+
id: {
|
|
173
|
+
type: string;
|
|
174
|
+
description: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
required: string[];
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
export declare function buildDeleteCollectionRequest(client: TacitClient, input: DeleteCollectionInput): ToolRequest;
|
|
181
|
+
export declare function handleDeleteCollection(args: unknown): Promise<{
|
|
182
|
+
content: Array<{
|
|
183
|
+
type: 'text';
|
|
184
|
+
text: string;
|
|
185
|
+
}>;
|
|
186
|
+
isError?: boolean;
|
|
187
|
+
}>;
|
|
188
|
+
export declare const listArticlesInputSchema: z.ZodObject<{
|
|
189
|
+
collection_id: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, "strip", z.ZodTypeAny, {
|
|
191
|
+
collection_id?: string | undefined;
|
|
192
|
+
}, {
|
|
193
|
+
collection_id?: string | undefined;
|
|
194
|
+
}>;
|
|
195
|
+
export type ListArticlesInput = z.infer<typeof listArticlesInputSchema>;
|
|
196
|
+
export declare const LIST_ARTICLES_TOOL_DEF: {
|
|
197
|
+
name: "tacit_kb_list_articles";
|
|
198
|
+
description: string;
|
|
199
|
+
inputSchema: {
|
|
200
|
+
type: "object";
|
|
201
|
+
properties: {
|
|
202
|
+
collection_id: {
|
|
203
|
+
type: string;
|
|
204
|
+
description: string;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
required: string[];
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
export declare function buildListArticlesRequest(client: TacitClient, input: ListArticlesInput): ToolRequest;
|
|
211
|
+
export declare function handleListArticles(args: unknown): Promise<{
|
|
212
|
+
content: Array<{
|
|
213
|
+
type: 'text';
|
|
214
|
+
text: string;
|
|
215
|
+
}>;
|
|
216
|
+
isError?: boolean;
|
|
217
|
+
}>;
|
|
218
|
+
export declare const getArticleInputSchema: z.ZodObject<{
|
|
219
|
+
id: z.ZodString;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
id: string;
|
|
222
|
+
}, {
|
|
223
|
+
id: string;
|
|
224
|
+
}>;
|
|
225
|
+
export type GetArticleInput = z.infer<typeof getArticleInputSchema>;
|
|
226
|
+
export declare const GET_ARTICLE_TOOL_DEF: {
|
|
227
|
+
name: "tacit_kb_get_article";
|
|
228
|
+
description: string;
|
|
229
|
+
inputSchema: {
|
|
230
|
+
type: "object";
|
|
231
|
+
properties: {
|
|
232
|
+
id: {
|
|
233
|
+
type: string;
|
|
234
|
+
description: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
required: string[];
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
export declare function buildGetArticleRequest(client: TacitClient, input: GetArticleInput): ToolRequest;
|
|
241
|
+
export declare function handleGetArticle(args: unknown): Promise<{
|
|
242
|
+
content: Array<{
|
|
243
|
+
type: 'text';
|
|
244
|
+
text: string;
|
|
245
|
+
}>;
|
|
246
|
+
isError?: boolean;
|
|
247
|
+
}>;
|
|
248
|
+
export declare const createArticleInputSchema: z.ZodObject<{
|
|
249
|
+
collection_id: z.ZodString;
|
|
250
|
+
slug: z.ZodString;
|
|
251
|
+
title: z.ZodString;
|
|
252
|
+
content: z.ZodOptional<z.ZodString>;
|
|
253
|
+
status: z.ZodOptional<z.ZodEnum<["DRAFT", "PUBLISHED"]>>;
|
|
254
|
+
domain_id: z.ZodOptional<z.ZodString>;
|
|
255
|
+
}, "strip", z.ZodTypeAny, {
|
|
256
|
+
title: string;
|
|
257
|
+
slug: string;
|
|
258
|
+
collection_id: string;
|
|
259
|
+
status?: "DRAFT" | "PUBLISHED" | undefined;
|
|
260
|
+
content?: string | undefined;
|
|
261
|
+
domain_id?: string | undefined;
|
|
262
|
+
}, {
|
|
263
|
+
title: string;
|
|
264
|
+
slug: string;
|
|
265
|
+
collection_id: string;
|
|
266
|
+
status?: "DRAFT" | "PUBLISHED" | undefined;
|
|
267
|
+
content?: string | undefined;
|
|
268
|
+
domain_id?: string | undefined;
|
|
269
|
+
}>;
|
|
270
|
+
export type CreateArticleInput = z.infer<typeof createArticleInputSchema>;
|
|
271
|
+
export declare const CREATE_ARTICLE_TOOL_DEF: {
|
|
272
|
+
name: "tacit_kb_create_article";
|
|
273
|
+
description: string;
|
|
274
|
+
inputSchema: {
|
|
275
|
+
type: "object";
|
|
276
|
+
properties: {
|
|
277
|
+
collection_id: {
|
|
278
|
+
type: string;
|
|
279
|
+
description: string;
|
|
280
|
+
};
|
|
281
|
+
slug: {
|
|
282
|
+
type: string;
|
|
283
|
+
description: string;
|
|
284
|
+
};
|
|
285
|
+
title: {
|
|
286
|
+
type: string;
|
|
287
|
+
description: string;
|
|
288
|
+
};
|
|
289
|
+
content: {
|
|
290
|
+
type: string;
|
|
291
|
+
description: string;
|
|
292
|
+
};
|
|
293
|
+
status: {
|
|
294
|
+
type: string;
|
|
295
|
+
enum: string[];
|
|
296
|
+
description: string;
|
|
297
|
+
};
|
|
298
|
+
domain_id: {
|
|
299
|
+
type: string;
|
|
300
|
+
description: string;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
required: string[];
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
export declare function buildCreateArticleRequest(client: TacitClient, input: CreateArticleInput): ToolRequest;
|
|
307
|
+
export declare function handleCreateArticle(args: unknown): Promise<{
|
|
308
|
+
content: Array<{
|
|
309
|
+
type: 'text';
|
|
310
|
+
text: string;
|
|
311
|
+
}>;
|
|
312
|
+
isError?: boolean;
|
|
313
|
+
}>;
|
|
314
|
+
export declare const updateArticleInputSchema: z.ZodObject<{
|
|
315
|
+
id: z.ZodString;
|
|
316
|
+
title: z.ZodOptional<z.ZodString>;
|
|
317
|
+
content: z.ZodOptional<z.ZodString>;
|
|
318
|
+
status: z.ZodOptional<z.ZodEnum<["DRAFT", "PUBLISHED"]>>;
|
|
319
|
+
}, "strip", z.ZodTypeAny, {
|
|
320
|
+
id: string;
|
|
321
|
+
status?: "DRAFT" | "PUBLISHED" | undefined;
|
|
322
|
+
content?: string | undefined;
|
|
323
|
+
title?: string | undefined;
|
|
324
|
+
}, {
|
|
325
|
+
id: string;
|
|
326
|
+
status?: "DRAFT" | "PUBLISHED" | undefined;
|
|
327
|
+
content?: string | undefined;
|
|
328
|
+
title?: string | undefined;
|
|
329
|
+
}>;
|
|
330
|
+
export type UpdateArticleInput = z.infer<typeof updateArticleInputSchema>;
|
|
331
|
+
export declare const UPDATE_ARTICLE_TOOL_DEF: {
|
|
332
|
+
name: "tacit_kb_update_article";
|
|
333
|
+
description: string;
|
|
334
|
+
inputSchema: {
|
|
335
|
+
type: "object";
|
|
336
|
+
properties: {
|
|
337
|
+
id: {
|
|
338
|
+
type: string;
|
|
339
|
+
description: string;
|
|
340
|
+
};
|
|
341
|
+
title: {
|
|
342
|
+
type: string;
|
|
343
|
+
description: string;
|
|
344
|
+
};
|
|
345
|
+
content: {
|
|
346
|
+
type: string;
|
|
347
|
+
description: string;
|
|
348
|
+
};
|
|
349
|
+
status: {
|
|
350
|
+
type: string;
|
|
351
|
+
enum: string[];
|
|
352
|
+
description: string;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
required: string[];
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
export declare function buildUpdateArticleRequest(client: TacitClient, input: UpdateArticleInput): ToolRequest;
|
|
359
|
+
export declare function handleUpdateArticle(args: unknown): Promise<{
|
|
360
|
+
content: Array<{
|
|
361
|
+
type: 'text';
|
|
362
|
+
text: string;
|
|
363
|
+
}>;
|
|
364
|
+
isError?: boolean;
|
|
365
|
+
}>;
|
|
366
|
+
export declare const browseTreeInputSchema: z.ZodObject<{
|
|
367
|
+
kb_category_id: z.ZodOptional<z.ZodString>;
|
|
368
|
+
}, "strip", z.ZodTypeAny, {
|
|
369
|
+
kb_category_id?: string | undefined;
|
|
370
|
+
}, {
|
|
371
|
+
kb_category_id?: string | undefined;
|
|
372
|
+
}>;
|
|
373
|
+
export type BrowseTreeInput = z.infer<typeof browseTreeInputSchema>;
|
|
374
|
+
export declare const BROWSE_TREE_TOOL_DEF: {
|
|
375
|
+
name: "tacit_kb_browse_tree";
|
|
376
|
+
description: string;
|
|
377
|
+
inputSchema: {
|
|
378
|
+
type: "object";
|
|
379
|
+
properties: {
|
|
380
|
+
kb_category_id: {
|
|
381
|
+
type: string;
|
|
382
|
+
description: string;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
required: string[];
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
export declare function buildBrowseTreeRequest(client: TacitClient, input: BrowseTreeInput): ToolRequest;
|
|
389
|
+
export declare function handleBrowseTree(args: unknown): Promise<{
|
|
390
|
+
content: Array<{
|
|
391
|
+
type: 'text';
|
|
392
|
+
text: string;
|
|
393
|
+
}>;
|
|
394
|
+
isError?: boolean;
|
|
395
|
+
}>;
|
|
396
|
+
export declare const promoteFromArtifactInputSchema: z.ZodObject<{
|
|
397
|
+
artifact_id: z.ZodString;
|
|
398
|
+
collection_id: z.ZodString;
|
|
399
|
+
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
artifact_id: string;
|
|
401
|
+
collection_id: string;
|
|
402
|
+
}, {
|
|
403
|
+
artifact_id: string;
|
|
404
|
+
collection_id: string;
|
|
405
|
+
}>;
|
|
406
|
+
export type PromoteFromArtifactInput = z.infer<typeof promoteFromArtifactInputSchema>;
|
|
407
|
+
export declare const PROMOTE_FROM_ARTIFACT_TOOL_DEF: {
|
|
408
|
+
name: "tacit_kb_promote_from_artifact";
|
|
409
|
+
description: string;
|
|
410
|
+
inputSchema: {
|
|
411
|
+
type: "object";
|
|
412
|
+
properties: {
|
|
413
|
+
artifact_id: {
|
|
414
|
+
type: string;
|
|
415
|
+
description: string;
|
|
416
|
+
};
|
|
417
|
+
collection_id: {
|
|
418
|
+
type: string;
|
|
419
|
+
description: string;
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
required: string[];
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
export declare function buildPromoteFromArtifactRequest(client: TacitClient, input: PromoteFromArtifactInput): ToolRequest;
|
|
426
|
+
export declare function handlePromoteFromArtifact(args: unknown): Promise<{
|
|
427
|
+
content: Array<{
|
|
428
|
+
type: 'text';
|
|
429
|
+
text: string;
|
|
430
|
+
}>;
|
|
431
|
+
isError?: boolean;
|
|
432
|
+
}>;
|
|
433
|
+
export declare const promoteFromCatalogInputSchema: z.ZodObject<{
|
|
434
|
+
catalog_item_id: z.ZodString;
|
|
435
|
+
collection_id: z.ZodString;
|
|
436
|
+
}, "strip", z.ZodTypeAny, {
|
|
437
|
+
collection_id: string;
|
|
438
|
+
catalog_item_id: string;
|
|
439
|
+
}, {
|
|
440
|
+
collection_id: string;
|
|
441
|
+
catalog_item_id: string;
|
|
442
|
+
}>;
|
|
443
|
+
export type PromoteFromCatalogInput = z.infer<typeof promoteFromCatalogInputSchema>;
|
|
444
|
+
export declare const PROMOTE_FROM_CATALOG_TOOL_DEF: {
|
|
445
|
+
name: "tacit_kb_promote_from_catalog";
|
|
446
|
+
description: string;
|
|
447
|
+
inputSchema: {
|
|
448
|
+
type: "object";
|
|
449
|
+
properties: {
|
|
450
|
+
catalog_item_id: {
|
|
451
|
+
type: string;
|
|
452
|
+
description: string;
|
|
453
|
+
};
|
|
454
|
+
collection_id: {
|
|
455
|
+
type: string;
|
|
456
|
+
description: string;
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
required: string[];
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
export declare function buildPromoteFromCatalogRequest(client: TacitClient, input: PromoteFromCatalogInput): ToolRequest;
|
|
463
|
+
export declare function handlePromoteFromCatalog(args: unknown): Promise<{
|
|
464
|
+
content: Array<{
|
|
465
|
+
type: 'text';
|
|
466
|
+
text: string;
|
|
467
|
+
}>;
|
|
468
|
+
isError?: boolean;
|
|
469
|
+
}>;
|
|
470
|
+
export declare const listCategoriesInputSchema: z.ZodObject<{
|
|
471
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
472
|
+
include_archived: z.ZodOptional<z.ZodBoolean>;
|
|
473
|
+
}, "strip", z.ZodTypeAny, {
|
|
474
|
+
kind?: string | undefined;
|
|
475
|
+
include_archived?: boolean | undefined;
|
|
476
|
+
}, {
|
|
477
|
+
kind?: string | undefined;
|
|
478
|
+
include_archived?: boolean | undefined;
|
|
479
|
+
}>;
|
|
480
|
+
export type ListCategoriesInput = z.infer<typeof listCategoriesInputSchema>;
|
|
481
|
+
export declare const LIST_CATEGORIES_TOOL_DEF: {
|
|
482
|
+
name: "tacit_kb_list_categories";
|
|
483
|
+
description: string;
|
|
484
|
+
inputSchema: {
|
|
485
|
+
type: "object";
|
|
486
|
+
properties: {
|
|
487
|
+
kind: {
|
|
488
|
+
type: string;
|
|
489
|
+
description: string;
|
|
490
|
+
};
|
|
491
|
+
include_archived: {
|
|
492
|
+
type: string;
|
|
493
|
+
description: string;
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
required: string[];
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
export declare function buildListCategoriesRequest(client: TacitClient, input: ListCategoriesInput): ToolRequest;
|
|
500
|
+
export declare function handleListCategories(args: unknown): Promise<{
|
|
501
|
+
content: Array<{
|
|
502
|
+
type: 'text';
|
|
503
|
+
text: string;
|
|
504
|
+
}>;
|
|
505
|
+
isError?: boolean;
|
|
506
|
+
}>;
|
|
507
|
+
export declare const createCategoryInputSchema: z.ZodObject<{
|
|
508
|
+
name: z.ZodString;
|
|
509
|
+
description: z.ZodOptional<z.ZodString>;
|
|
510
|
+
}, "strip", z.ZodTypeAny, {
|
|
511
|
+
name: string;
|
|
512
|
+
description?: string | undefined;
|
|
513
|
+
}, {
|
|
514
|
+
name: string;
|
|
515
|
+
description?: string | undefined;
|
|
516
|
+
}>;
|
|
517
|
+
export type CreateCategoryInput = z.infer<typeof createCategoryInputSchema>;
|
|
518
|
+
export declare const CREATE_CATEGORY_TOOL_DEF: {
|
|
519
|
+
name: "tacit_kb_create_category";
|
|
520
|
+
description: string;
|
|
521
|
+
inputSchema: {
|
|
522
|
+
type: "object";
|
|
523
|
+
properties: {
|
|
524
|
+
name: {
|
|
525
|
+
type: string;
|
|
526
|
+
description: string;
|
|
527
|
+
};
|
|
528
|
+
description: {
|
|
529
|
+
type: string;
|
|
530
|
+
description: string;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
required: string[];
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
export declare function buildCreateCategoryRequest(client: TacitClient, input: CreateCategoryInput): ToolRequest;
|
|
537
|
+
export declare function handleCreateCategory(args: unknown): Promise<{
|
|
538
|
+
content: Array<{
|
|
539
|
+
type: 'text';
|
|
540
|
+
text: string;
|
|
541
|
+
}>;
|
|
542
|
+
isError?: boolean;
|
|
543
|
+
}>;
|
|
544
|
+
export declare function registerKbTools(server: McpServer, getClientFn: () => Promise<TacitClient>): void;
|