@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.
- 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 +130 -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 +199 -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/skills.d.ts +9 -0
- package/dist/tools/skills.js +98 -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,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Annotation tools:
|
|
3
|
+
* tacit_annotate — POST /api/v1/artifacts/:id/annotations
|
|
4
|
+
* tacit_list_annotations — GET /api/v1/artifacts/:id/annotations
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
8
|
+
import { TacitClient } from '../client.js';
|
|
9
|
+
export interface ToolRequest {
|
|
10
|
+
execute(): Promise<{
|
|
11
|
+
content: Array<{
|
|
12
|
+
type: 'text';
|
|
13
|
+
text: string;
|
|
14
|
+
}>;
|
|
15
|
+
isError?: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
export declare const ANNOTATION_TYPES: readonly ["DELETION", "COMMENT", "GLOBAL_COMMENT", "CORRECTION", "APPROVE", "FACTUAL_CORRECTION", "OUTDATED_FLAG", "QUALITY_RATING", "NEEDS_REVIEW"];
|
|
19
|
+
export declare const annotateInputSchema: z.ZodObject<{
|
|
20
|
+
artifact_id: z.ZodString;
|
|
21
|
+
annotation_type: z.ZodEnum<["DELETION", "COMMENT", "GLOBAL_COMMENT", "CORRECTION", "APPROVE", "FACTUAL_CORRECTION", "OUTDATED_FLAG", "QUALITY_RATING", "NEEDS_REVIEW"]>;
|
|
22
|
+
annotation_text: z.ZodOptional<z.ZodString>;
|
|
23
|
+
original_text: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
block_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
trust_modifier: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
artifact_id: string;
|
|
28
|
+
annotation_type: "DELETION" | "COMMENT" | "GLOBAL_COMMENT" | "CORRECTION" | "APPROVE" | "FACTUAL_CORRECTION" | "OUTDATED_FLAG" | "QUALITY_RATING" | "NEEDS_REVIEW";
|
|
29
|
+
original_text: string;
|
|
30
|
+
block_id: string;
|
|
31
|
+
annotation_text?: string | undefined;
|
|
32
|
+
trust_modifier?: number | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
artifact_id: string;
|
|
35
|
+
annotation_type: "DELETION" | "COMMENT" | "GLOBAL_COMMENT" | "CORRECTION" | "APPROVE" | "FACTUAL_CORRECTION" | "OUTDATED_FLAG" | "QUALITY_RATING" | "NEEDS_REVIEW";
|
|
36
|
+
annotation_text?: string | undefined;
|
|
37
|
+
original_text?: string | undefined;
|
|
38
|
+
block_id?: string | undefined;
|
|
39
|
+
trust_modifier?: number | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
export type AnnotateInput = z.infer<typeof annotateInputSchema>;
|
|
42
|
+
export declare const ANNOTATE_TOOL_DEF: {
|
|
43
|
+
name: "tacit_annotate";
|
|
44
|
+
description: string;
|
|
45
|
+
inputSchema: {
|
|
46
|
+
type: "object";
|
|
47
|
+
properties: {
|
|
48
|
+
artifact_id: {
|
|
49
|
+
type: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
annotation_type: {
|
|
53
|
+
type: string;
|
|
54
|
+
enum: readonly ["DELETION", "COMMENT", "GLOBAL_COMMENT", "CORRECTION", "APPROVE", "FACTUAL_CORRECTION", "OUTDATED_FLAG", "QUALITY_RATING", "NEEDS_REVIEW"];
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
annotation_text: {
|
|
58
|
+
type: string;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
original_text: {
|
|
62
|
+
type: string;
|
|
63
|
+
description: string;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
block_id: {
|
|
67
|
+
type: string;
|
|
68
|
+
description: string;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
trust_modifier: {
|
|
72
|
+
type: string;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
required: string[];
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export declare function buildAnnotateRequest(client: TacitClient, input: AnnotateInput): ToolRequest;
|
|
80
|
+
export declare function handleAnnotate(args: unknown): Promise<{
|
|
81
|
+
content: Array<{
|
|
82
|
+
type: 'text';
|
|
83
|
+
text: string;
|
|
84
|
+
}>;
|
|
85
|
+
isError?: boolean;
|
|
86
|
+
}>;
|
|
87
|
+
export declare const listAnnotationsInputSchema: z.ZodObject<{
|
|
88
|
+
artifact_id: z.ZodString;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
artifact_id: string;
|
|
91
|
+
}, {
|
|
92
|
+
artifact_id: string;
|
|
93
|
+
}>;
|
|
94
|
+
export type ListAnnotationsInput = z.infer<typeof listAnnotationsInputSchema>;
|
|
95
|
+
export declare const LIST_ANNOTATIONS_TOOL_DEF: {
|
|
96
|
+
name: "tacit_list_annotations";
|
|
97
|
+
description: string;
|
|
98
|
+
inputSchema: {
|
|
99
|
+
type: "object";
|
|
100
|
+
properties: {
|
|
101
|
+
artifact_id: {
|
|
102
|
+
type: string;
|
|
103
|
+
description: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
required: string[];
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
export declare function buildListAnnotationsRequest(client: TacitClient, input: ListAnnotationsInput): ToolRequest;
|
|
110
|
+
export declare function handleListAnnotations(args: unknown): Promise<{
|
|
111
|
+
content: Array<{
|
|
112
|
+
type: 'text';
|
|
113
|
+
text: string;
|
|
114
|
+
}>;
|
|
115
|
+
isError?: boolean;
|
|
116
|
+
}>;
|
|
117
|
+
export declare function registerAnnotationTools(server: McpServer, getClientFn: () => Promise<TacitClient>): void;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
/**
|
|
3
|
+
* Annotation tools:
|
|
4
|
+
* tacit_annotate — POST /api/v1/artifacts/:id/annotations
|
|
5
|
+
* tacit_list_annotations — GET /api/v1/artifacts/:id/annotations
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
import { getClient } from '../client.js';
|
|
9
|
+
import { apiErrorResult } from './errors.js';
|
|
10
|
+
// ─── tacit_annotate ───────────────────────────────────────────────────────────
|
|
11
|
+
export const ANNOTATION_TYPES = [
|
|
12
|
+
'DELETION',
|
|
13
|
+
'COMMENT',
|
|
14
|
+
'GLOBAL_COMMENT',
|
|
15
|
+
'CORRECTION',
|
|
16
|
+
'APPROVE',
|
|
17
|
+
'FACTUAL_CORRECTION',
|
|
18
|
+
'OUTDATED_FLAG',
|
|
19
|
+
'QUALITY_RATING',
|
|
20
|
+
'NEEDS_REVIEW',
|
|
21
|
+
];
|
|
22
|
+
export const annotateInputSchema = z.object({
|
|
23
|
+
artifact_id: z.string().min(1).describe('Artifact UUID to annotate'),
|
|
24
|
+
annotation_type: z.enum(ANNOTATION_TYPES).describe('Type of annotation'),
|
|
25
|
+
annotation_text: z.string().optional().describe('Annotation text/comment'),
|
|
26
|
+
original_text: z.string().optional().default('').describe('Original text being annotated'),
|
|
27
|
+
block_id: z.string().optional().default('').describe('Block identifier within the artifact'),
|
|
28
|
+
trust_modifier: z.number().optional().describe('Trust score modifier'),
|
|
29
|
+
});
|
|
30
|
+
export const ANNOTATE_TOOL_DEF = {
|
|
31
|
+
name: 'tacit_annotate',
|
|
32
|
+
description: 'Create an annotation on an artifact. Route: POST /api/v1/artifacts/:id/annotations.',
|
|
33
|
+
inputSchema: {
|
|
34
|
+
type: 'object',
|
|
35
|
+
properties: {
|
|
36
|
+
artifact_id: { type: 'string', description: 'Artifact UUID' },
|
|
37
|
+
annotation_type: { type: 'string', enum: ANNOTATION_TYPES, description: 'Annotation type' },
|
|
38
|
+
annotation_text: { type: 'string', description: 'Annotation text/comment' },
|
|
39
|
+
original_text: { type: 'string', description: 'Original text being annotated', default: '' },
|
|
40
|
+
block_id: { type: 'string', description: 'Block identifier within the artifact', default: '' },
|
|
41
|
+
trust_modifier: { type: 'number', description: 'Trust score modifier' },
|
|
42
|
+
},
|
|
43
|
+
required: ['artifact_id', 'annotation_type'],
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
export function buildAnnotateRequest(client, input) {
|
|
47
|
+
return {
|
|
48
|
+
async execute() {
|
|
49
|
+
const { artifact_id, annotation_type, annotation_text, original_text, block_id, trust_modifier } = input;
|
|
50
|
+
try {
|
|
51
|
+
const body = {
|
|
52
|
+
annotation_type,
|
|
53
|
+
original_text,
|
|
54
|
+
block_id,
|
|
55
|
+
};
|
|
56
|
+
if (annotation_text !== undefined)
|
|
57
|
+
body['annotation_text'] = annotation_text;
|
|
58
|
+
if (trust_modifier !== undefined)
|
|
59
|
+
body['trust_modifier'] = trust_modifier;
|
|
60
|
+
const result = await client.post(`/api/v1/artifacts/${artifact_id}/annotations`, body);
|
|
61
|
+
return { content: [{ type: 'text', text: JSON.stringify(result) }] };
|
|
62
|
+
}
|
|
63
|
+
catch (err) {
|
|
64
|
+
return apiErrorResult(err, `/api/v1/artifacts/:id/annotations`);
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export async function handleAnnotate(args) {
|
|
70
|
+
const parsed = annotateInputSchema.safeParse(args);
|
|
71
|
+
if (!parsed.success) {
|
|
72
|
+
return { content: [{ type: 'text', text: `Invalid input: ${parsed.error.message}` }], isError: true };
|
|
73
|
+
}
|
|
74
|
+
return buildAnnotateRequest(getClient(), parsed.data).execute();
|
|
75
|
+
}
|
|
76
|
+
// ─── tacit_list_annotations ───────────────────────────────────────────────────
|
|
77
|
+
export const listAnnotationsInputSchema = z.object({
|
|
78
|
+
artifact_id: z.string().min(1).describe('Artifact UUID'),
|
|
79
|
+
});
|
|
80
|
+
export const LIST_ANNOTATIONS_TOOL_DEF = {
|
|
81
|
+
name: 'tacit_list_annotations',
|
|
82
|
+
description: 'List annotations on an artifact. Route: GET /api/v1/artifacts/:id/annotations.',
|
|
83
|
+
inputSchema: {
|
|
84
|
+
type: 'object',
|
|
85
|
+
properties: {
|
|
86
|
+
artifact_id: { type: 'string', description: 'Artifact UUID' },
|
|
87
|
+
},
|
|
88
|
+
required: ['artifact_id'],
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
export function buildListAnnotationsRequest(client, input) {
|
|
92
|
+
return {
|
|
93
|
+
async execute() {
|
|
94
|
+
const { artifact_id } = input;
|
|
95
|
+
try {
|
|
96
|
+
const result = await client.get(`/api/v1/artifacts/${artifact_id}/annotations`);
|
|
97
|
+
return { content: [{ type: 'text', text: JSON.stringify(result) }] };
|
|
98
|
+
}
|
|
99
|
+
catch (err) {
|
|
100
|
+
return apiErrorResult(err, `/api/v1/artifacts/:id/annotations`);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export async function handleListAnnotations(args) {
|
|
106
|
+
const parsed = listAnnotationsInputSchema.safeParse(args);
|
|
107
|
+
if (!parsed.success) {
|
|
108
|
+
return { content: [{ type: 'text', text: `Invalid input: ${parsed.error.message}` }], isError: true };
|
|
109
|
+
}
|
|
110
|
+
return buildListAnnotationsRequest(getClient(), parsed.data).execute();
|
|
111
|
+
}
|
|
112
|
+
export function registerAnnotationTools(server, getClientFn) {
|
|
113
|
+
server.tool('tacit_annotate', 'Create an annotation on an artifact. Route: POST /api/v1/artifacts/:id/annotations.', {
|
|
114
|
+
artifact_id: z.string().min(1).describe('Artifact UUID to annotate'),
|
|
115
|
+
annotation_type: z.enum(ANNOTATION_TYPES).describe('Type of annotation'),
|
|
116
|
+
annotation_text: z.string().optional().describe('Annotation text/comment'),
|
|
117
|
+
original_text: z.string().optional().default('').describe('Original text being annotated'),
|
|
118
|
+
block_id: z.string().optional().default('').describe('Block identifier within the artifact'),
|
|
119
|
+
trust_modifier: z.number().optional().describe('Trust score modifier'),
|
|
120
|
+
}, async (args) => {
|
|
121
|
+
const client = await getClientFn();
|
|
122
|
+
return buildAnnotateRequest(client, args).execute();
|
|
123
|
+
});
|
|
124
|
+
server.tool('tacit_list_annotations', 'List annotations on an artifact. Route: GET /api/v1/artifacts/:id/annotations.', {
|
|
125
|
+
artifact_id: z.string().min(1).describe('Artifact UUID'),
|
|
126
|
+
}, async (args) => {
|
|
127
|
+
const client = await getClientFn();
|
|
128
|
+
return buildListAnnotationsRequest(client, args).execute();
|
|
129
|
+
});
|
|
130
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Artifact tools:
|
|
3
3
|
* tacit_artifact_list — GET /api/v1/artifacts
|
|
4
|
-
* tacit_artifact_create — POST /api/v1/artifacts
|
|
4
|
+
* tacit_artifact_create — POST /api/v1/artifacts
|
|
5
5
|
* tacit_artifact_update — PATCH /api/v1/artifacts/:id
|
|
6
6
|
* tacit_artifact_publish — POST /api/v1/artifacts/:id/publish
|
|
7
7
|
*
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
* - artifact_kind is hardcoded server-side (GENERIC) — the client must NOT send it.
|
|
15
15
|
* - The artifact body is populated server-side from structured_metadata
|
|
16
16
|
* (e.g. full_posting_text); the client does NOT send a content field.
|
|
17
|
-
* -
|
|
17
|
+
* - domain defaults to GENERAL if omitted; caller may pass any valid domain.
|
|
18
18
|
*/
|
|
19
19
|
import { z } from 'zod';
|
|
20
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
20
21
|
import { TacitClient } from '../client.js';
|
|
21
22
|
export interface ToolRequest {
|
|
22
23
|
execute(): Promise<{
|
|
@@ -28,16 +29,25 @@ export interface ToolRequest {
|
|
|
28
29
|
}>;
|
|
29
30
|
}
|
|
30
31
|
export declare const artifactListInputSchema: z.ZodObject<{
|
|
32
|
+
q: z.ZodOptional<z.ZodString>;
|
|
33
|
+
origin: z.ZodOptional<z.ZodEnum<["IMPORTED", "SYNTHESIZED", "WIKI_CONVERGENCE"]>>;
|
|
34
|
+
status: z.ZodOptional<z.ZodString>;
|
|
35
|
+
portfolio_id: z.ZodOptional<z.ZodString>;
|
|
31
36
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
32
37
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
33
|
-
status: z.ZodOptional<z.ZodString>;
|
|
34
38
|
}, "strip", z.ZodTypeAny, {
|
|
35
39
|
limit?: number | undefined;
|
|
36
40
|
status?: string | undefined;
|
|
41
|
+
origin?: "IMPORTED" | "SYNTHESIZED" | "WIKI_CONVERGENCE" | undefined;
|
|
42
|
+
q?: string | undefined;
|
|
43
|
+
portfolio_id?: string | undefined;
|
|
37
44
|
offset?: number | undefined;
|
|
38
45
|
}, {
|
|
39
46
|
limit?: number | undefined;
|
|
40
47
|
status?: string | undefined;
|
|
48
|
+
origin?: "IMPORTED" | "SYNTHESIZED" | "WIKI_CONVERGENCE" | undefined;
|
|
49
|
+
q?: string | undefined;
|
|
50
|
+
portfolio_id?: string | undefined;
|
|
41
51
|
offset?: number | undefined;
|
|
42
52
|
}>;
|
|
43
53
|
export type ArtifactListInput = z.infer<typeof artifactListInputSchema>;
|
|
@@ -47,18 +57,29 @@ export declare const ARTIFACT_LIST_TOOL_DEF: {
|
|
|
47
57
|
inputSchema: {
|
|
48
58
|
type: "object";
|
|
49
59
|
properties: {
|
|
50
|
-
|
|
60
|
+
q: {
|
|
51
61
|
type: string;
|
|
52
62
|
description: string;
|
|
53
63
|
};
|
|
54
|
-
|
|
64
|
+
origin: {
|
|
55
65
|
type: string;
|
|
56
|
-
|
|
66
|
+
enum: string[];
|
|
57
67
|
};
|
|
58
68
|
status: {
|
|
59
69
|
type: string;
|
|
60
70
|
description: string;
|
|
61
71
|
};
|
|
72
|
+
portfolio_id: {
|
|
73
|
+
type: string;
|
|
74
|
+
};
|
|
75
|
+
limit: {
|
|
76
|
+
type: string;
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
79
|
+
offset: {
|
|
80
|
+
type: string;
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
62
83
|
};
|
|
63
84
|
required: never[];
|
|
64
85
|
};
|
|
@@ -77,13 +98,13 @@ export declare const artifactCreateInputSchema: z.ZodObject<{
|
|
|
77
98
|
portfolio_id: z.ZodString;
|
|
78
99
|
structured_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
79
100
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
portfolio_id: string;
|
|
81
101
|
title: string;
|
|
102
|
+
portfolio_id: string;
|
|
82
103
|
domain?: string | undefined;
|
|
83
104
|
structured_metadata?: Record<string, unknown> | undefined;
|
|
84
105
|
}, {
|
|
85
|
-
portfolio_id: string;
|
|
86
106
|
title: string;
|
|
107
|
+
portfolio_id: string;
|
|
87
108
|
domain?: string | undefined;
|
|
88
109
|
structured_metadata?: Record<string, unknown> | undefined;
|
|
89
110
|
}>;
|
|
@@ -206,3 +227,152 @@ export declare function handleArtifactPublish(args: unknown): Promise<{
|
|
|
206
227
|
}>;
|
|
207
228
|
isError?: boolean;
|
|
208
229
|
}>;
|
|
230
|
+
export declare const artifactGetInputSchema: z.ZodObject<{
|
|
231
|
+
id: z.ZodString;
|
|
232
|
+
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
id: string;
|
|
234
|
+
}, {
|
|
235
|
+
id: string;
|
|
236
|
+
}>;
|
|
237
|
+
export type ArtifactGetInput = z.infer<typeof artifactGetInputSchema>;
|
|
238
|
+
export declare const ARTIFACT_GET_TOOL_DEF: {
|
|
239
|
+
name: "tacit_artifact_get";
|
|
240
|
+
description: string;
|
|
241
|
+
inputSchema: {
|
|
242
|
+
type: "object";
|
|
243
|
+
properties: {
|
|
244
|
+
id: {
|
|
245
|
+
type: string;
|
|
246
|
+
description: string;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
required: string[];
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
export declare function buildArtifactGetRequest(client: TacitClient, input: ArtifactGetInput): ToolRequest;
|
|
253
|
+
export declare function handleArtifactGet(args: unknown): Promise<{
|
|
254
|
+
content: Array<{
|
|
255
|
+
type: 'text';
|
|
256
|
+
text: string;
|
|
257
|
+
}>;
|
|
258
|
+
isError?: boolean;
|
|
259
|
+
}>;
|
|
260
|
+
export declare const artifactReviseInputSchema: z.ZodObject<{
|
|
261
|
+
id: z.ZodString;
|
|
262
|
+
title: z.ZodOptional<z.ZodString>;
|
|
263
|
+
if_match: z.ZodOptional<z.ZodString>;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
id: string;
|
|
266
|
+
title?: string | undefined;
|
|
267
|
+
if_match?: string | undefined;
|
|
268
|
+
}, {
|
|
269
|
+
id: string;
|
|
270
|
+
title?: string | undefined;
|
|
271
|
+
if_match?: string | undefined;
|
|
272
|
+
}>;
|
|
273
|
+
export type ArtifactReviseInput = z.infer<typeof artifactReviseInputSchema>;
|
|
274
|
+
export declare const ARTIFACT_REVISE_TOOL_DEF: {
|
|
275
|
+
name: "tacit_artifact_revise";
|
|
276
|
+
description: string;
|
|
277
|
+
inputSchema: {
|
|
278
|
+
type: "object";
|
|
279
|
+
properties: {
|
|
280
|
+
id: {
|
|
281
|
+
type: string;
|
|
282
|
+
description: string;
|
|
283
|
+
};
|
|
284
|
+
title: {
|
|
285
|
+
type: string;
|
|
286
|
+
description: string;
|
|
287
|
+
};
|
|
288
|
+
if_match: {
|
|
289
|
+
type: string;
|
|
290
|
+
description: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
required: string[];
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
export declare function buildArtifactReviseRequest(client: TacitClient, input: ArtifactReviseInput): ToolRequest;
|
|
297
|
+
export declare function handleArtifactRevise(args: unknown): Promise<{
|
|
298
|
+
content: Array<{
|
|
299
|
+
type: 'text';
|
|
300
|
+
text: string;
|
|
301
|
+
}>;
|
|
302
|
+
isError?: boolean;
|
|
303
|
+
}>;
|
|
304
|
+
export declare const artifactVersionsInputSchema: z.ZodObject<{
|
|
305
|
+
id: z.ZodString;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
id: string;
|
|
308
|
+
}, {
|
|
309
|
+
id: string;
|
|
310
|
+
}>;
|
|
311
|
+
export type ArtifactVersionsInput = z.infer<typeof artifactVersionsInputSchema>;
|
|
312
|
+
export declare const ARTIFACT_VERSIONS_TOOL_DEF: {
|
|
313
|
+
name: "tacit_artifact_versions";
|
|
314
|
+
description: string;
|
|
315
|
+
inputSchema: {
|
|
316
|
+
type: "object";
|
|
317
|
+
properties: {
|
|
318
|
+
id: {
|
|
319
|
+
type: string;
|
|
320
|
+
description: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
required: string[];
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
export declare function buildArtifactVersionsRequest(client: TacitClient, input: ArtifactVersionsInput): ToolRequest;
|
|
327
|
+
export declare function handleArtifactVersions(args: unknown): Promise<{
|
|
328
|
+
content: Array<{
|
|
329
|
+
type: 'text';
|
|
330
|
+
text: string;
|
|
331
|
+
}>;
|
|
332
|
+
isError?: boolean;
|
|
333
|
+
}>;
|
|
334
|
+
export declare const artifactDeleteInputSchema: z.ZodObject<{
|
|
335
|
+
id: z.ZodString;
|
|
336
|
+
confirm: z.ZodBoolean;
|
|
337
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
}, "strip", z.ZodTypeAny, {
|
|
339
|
+
id: string;
|
|
340
|
+
confirm: boolean;
|
|
341
|
+
force?: boolean | undefined;
|
|
342
|
+
}, {
|
|
343
|
+
id: string;
|
|
344
|
+
confirm: boolean;
|
|
345
|
+
force?: boolean | undefined;
|
|
346
|
+
}>;
|
|
347
|
+
export type ArtifactDeleteInput = z.infer<typeof artifactDeleteInputSchema>;
|
|
348
|
+
export declare const ARTIFACT_DELETE_TOOL_DEF: {
|
|
349
|
+
name: "tacit_artifact_delete";
|
|
350
|
+
description: string;
|
|
351
|
+
inputSchema: {
|
|
352
|
+
type: "object";
|
|
353
|
+
properties: {
|
|
354
|
+
id: {
|
|
355
|
+
type: string;
|
|
356
|
+
description: string;
|
|
357
|
+
};
|
|
358
|
+
confirm: {
|
|
359
|
+
type: string;
|
|
360
|
+
description: string;
|
|
361
|
+
};
|
|
362
|
+
force: {
|
|
363
|
+
type: string;
|
|
364
|
+
description: string;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
required: string[];
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
export declare function buildArtifactDeleteRequest(client: TacitClient, input: ArtifactDeleteInput): ToolRequest;
|
|
371
|
+
export declare function handleArtifactDelete(args: unknown): Promise<{
|
|
372
|
+
content: Array<{
|
|
373
|
+
type: 'text';
|
|
374
|
+
text: string;
|
|
375
|
+
}>;
|
|
376
|
+
isError?: boolean;
|
|
377
|
+
}>;
|
|
378
|
+
export declare function registerArtifactTools(server: McpServer, getClientFn: () => Promise<TacitClient>): void;
|