@ankimcp/anki-mcp-server 0.9.0 → 0.10.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/app.module.js +2 -2
- package/dist/app.module.js.map +1 -1
- package/dist/mcp/primitives/essential/index.d.ts +24 -0
- package/dist/mcp/primitives/essential/index.js +9 -5
- package/dist/mcp/primitives/essential/index.js.map +1 -1
- package/dist/mcp/primitives/essential/tools/add-note.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/add-note.tool.js +1 -1
- package/dist/mcp/primitives/essential/tools/add-note.tool.js.map +1 -1
- package/dist/mcp/primitives/essential/tools/create-deck.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/create-model.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/delete-notes.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/find-notes.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/get-cards.tool.d.ts +37 -1
- package/dist/mcp/primitives/essential/tools/get-due-cards.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/get-tags.tool.d.ts +105 -0
- package/dist/mcp/primitives/essential/tools/get-tags.tool.js +86 -0
- package/dist/mcp/primitives/essential/tools/get-tags.tool.js.map +1 -0
- package/dist/mcp/primitives/essential/tools/list-decks.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/mediaActions/mediaActions.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/model-field-names.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/model-names.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/model-styling.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/notes-info.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/present-card.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/rate-card.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/sync.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/update-model-styling.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/update-note-fields.tool.d.ts +30 -0
- package/dist/mcp/primitives/essential/tools/update-note-fields.tool.js +1 -1
- package/dist/mcp/primitives/essential/tools/update-note-fields.tool.js.map +1 -1
- package/dist/mcp/primitives/gui/index.d.ts +12 -0
- package/dist/mcp/primitives/gui/index.js +5 -5
- package/dist/mcp/primitives/gui/index.js.map +1 -1
- package/dist/mcp/primitives/gui/tools/gui-add-cards.tool.d.ts +30 -0
- package/dist/mcp/primitives/gui/tools/gui-add-cards.tool.js +1 -1
- package/dist/mcp/primitives/gui/tools/gui-add-cards.tool.js.map +1 -1
- package/dist/mcp/primitives/gui/tools/gui-browse.tool.d.ts +30 -0
- package/dist/mcp/primitives/gui/tools/gui-current-card.tool.d.ts +30 -0
- package/dist/mcp/primitives/gui/tools/gui-deck-browser.tool.d.ts +30 -0
- package/dist/mcp/primitives/gui/tools/gui-deck-overview.tool.d.ts +30 -0
- package/dist/mcp/primitives/gui/tools/gui-edit-note.tool.d.ts +30 -0
- package/dist/mcp/primitives/gui/tools/gui-select-card.tool.d.ts +30 -0
- package/dist/mcp/primitives/gui/tools/gui-selected-notes.tool.d.ts +30 -0
- package/dist/mcp/primitives/gui/tools/gui-show-answer.tool.d.ts +30 -0
- package/dist/mcp/primitives/gui/tools/gui-show-question.tool.d.ts +30 -0
- package/dist/mcp/primitives/gui/tools/gui-undo.tool.d.ts +30 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +35 -28
|
@@ -12,6 +12,11 @@ export declare class GetDueCardsTool {
|
|
|
12
12
|
content: ({
|
|
13
13
|
type: "text";
|
|
14
14
|
text: string;
|
|
15
|
+
annotations?: {
|
|
16
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
17
|
+
priority?: number | undefined;
|
|
18
|
+
lastModified?: string | undefined;
|
|
19
|
+
} | undefined;
|
|
15
20
|
_meta?: {
|
|
16
21
|
[x: string]: unknown;
|
|
17
22
|
} | undefined;
|
|
@@ -19,6 +24,11 @@ export declare class GetDueCardsTool {
|
|
|
19
24
|
type: "image";
|
|
20
25
|
data: string;
|
|
21
26
|
mimeType: string;
|
|
27
|
+
annotations?: {
|
|
28
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
29
|
+
priority?: number | undefined;
|
|
30
|
+
lastModified?: string | undefined;
|
|
31
|
+
} | undefined;
|
|
22
32
|
_meta?: {
|
|
23
33
|
[x: string]: unknown;
|
|
24
34
|
} | undefined;
|
|
@@ -26,6 +36,11 @@ export declare class GetDueCardsTool {
|
|
|
26
36
|
type: "audio";
|
|
27
37
|
data: string;
|
|
28
38
|
mimeType: string;
|
|
39
|
+
annotations?: {
|
|
40
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
41
|
+
priority?: number | undefined;
|
|
42
|
+
lastModified?: string | undefined;
|
|
43
|
+
} | undefined;
|
|
29
44
|
_meta?: {
|
|
30
45
|
[x: string]: unknown;
|
|
31
46
|
} | undefined;
|
|
@@ -35,6 +50,11 @@ export declare class GetDueCardsTool {
|
|
|
35
50
|
type: "resource_link";
|
|
36
51
|
description?: string | undefined;
|
|
37
52
|
mimeType?: string | undefined;
|
|
53
|
+
annotations?: {
|
|
54
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
55
|
+
priority?: number | undefined;
|
|
56
|
+
lastModified?: string | undefined;
|
|
57
|
+
} | undefined;
|
|
38
58
|
_meta?: {
|
|
39
59
|
[x: string]: unknown;
|
|
40
60
|
} | undefined;
|
|
@@ -42,6 +62,7 @@ export declare class GetDueCardsTool {
|
|
|
42
62
|
src: string;
|
|
43
63
|
mimeType?: string | undefined;
|
|
44
64
|
sizes?: string[] | undefined;
|
|
65
|
+
theme?: "light" | "dark" | undefined;
|
|
45
66
|
}[] | undefined;
|
|
46
67
|
title?: string | undefined;
|
|
47
68
|
} | {
|
|
@@ -61,12 +82,21 @@ export declare class GetDueCardsTool {
|
|
|
61
82
|
[x: string]: unknown;
|
|
62
83
|
} | undefined;
|
|
63
84
|
};
|
|
85
|
+
annotations?: {
|
|
86
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
87
|
+
priority?: number | undefined;
|
|
88
|
+
lastModified?: string | undefined;
|
|
89
|
+
} | undefined;
|
|
64
90
|
_meta?: {
|
|
65
91
|
[x: string]: unknown;
|
|
66
92
|
} | undefined;
|
|
67
93
|
})[];
|
|
68
94
|
_meta?: {
|
|
69
95
|
[x: string]: unknown;
|
|
96
|
+
progressToken?: string | number | undefined;
|
|
97
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
98
|
+
taskId: string;
|
|
99
|
+
} | undefined;
|
|
70
100
|
} | undefined;
|
|
71
101
|
structuredContent?: {
|
|
72
102
|
[x: string]: unknown;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import type { Context } from "@rekog/mcp-nest";
|
|
2
|
+
import { AnkiConnectClient } from "@/mcp/clients/anki-connect.client";
|
|
3
|
+
export declare class GetTagsTool {
|
|
4
|
+
private readonly ankiClient;
|
|
5
|
+
private readonly logger;
|
|
6
|
+
constructor(ankiClient: AnkiConnectClient);
|
|
7
|
+
getTags({ pattern }: {
|
|
8
|
+
pattern?: string;
|
|
9
|
+
}, context: Context): Promise<{
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
content: ({
|
|
12
|
+
type: "text";
|
|
13
|
+
text: string;
|
|
14
|
+
annotations?: {
|
|
15
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
16
|
+
priority?: number | undefined;
|
|
17
|
+
lastModified?: string | undefined;
|
|
18
|
+
} | undefined;
|
|
19
|
+
_meta?: {
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
} | undefined;
|
|
22
|
+
} | {
|
|
23
|
+
type: "image";
|
|
24
|
+
data: string;
|
|
25
|
+
mimeType: string;
|
|
26
|
+
annotations?: {
|
|
27
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
28
|
+
priority?: number | undefined;
|
|
29
|
+
lastModified?: string | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
_meta?: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
} | undefined;
|
|
34
|
+
} | {
|
|
35
|
+
type: "audio";
|
|
36
|
+
data: string;
|
|
37
|
+
mimeType: string;
|
|
38
|
+
annotations?: {
|
|
39
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
40
|
+
priority?: number | undefined;
|
|
41
|
+
lastModified?: string | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
_meta?: {
|
|
44
|
+
[x: string]: unknown;
|
|
45
|
+
} | undefined;
|
|
46
|
+
} | {
|
|
47
|
+
uri: string;
|
|
48
|
+
name: string;
|
|
49
|
+
type: "resource_link";
|
|
50
|
+
description?: string | undefined;
|
|
51
|
+
mimeType?: string | undefined;
|
|
52
|
+
annotations?: {
|
|
53
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
54
|
+
priority?: number | undefined;
|
|
55
|
+
lastModified?: string | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
_meta?: {
|
|
58
|
+
[x: string]: unknown;
|
|
59
|
+
} | undefined;
|
|
60
|
+
icons?: {
|
|
61
|
+
src: string;
|
|
62
|
+
mimeType?: string | undefined;
|
|
63
|
+
sizes?: string[] | undefined;
|
|
64
|
+
theme?: "light" | "dark" | undefined;
|
|
65
|
+
}[] | undefined;
|
|
66
|
+
title?: string | undefined;
|
|
67
|
+
} | {
|
|
68
|
+
type: "resource";
|
|
69
|
+
resource: {
|
|
70
|
+
uri: string;
|
|
71
|
+
text: string;
|
|
72
|
+
mimeType?: string | undefined;
|
|
73
|
+
_meta?: {
|
|
74
|
+
[x: string]: unknown;
|
|
75
|
+
} | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
uri: string;
|
|
78
|
+
blob: string;
|
|
79
|
+
mimeType?: string | undefined;
|
|
80
|
+
_meta?: {
|
|
81
|
+
[x: string]: unknown;
|
|
82
|
+
} | undefined;
|
|
83
|
+
};
|
|
84
|
+
annotations?: {
|
|
85
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
86
|
+
priority?: number | undefined;
|
|
87
|
+
lastModified?: string | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
_meta?: {
|
|
90
|
+
[x: string]: unknown;
|
|
91
|
+
} | undefined;
|
|
92
|
+
})[];
|
|
93
|
+
_meta?: {
|
|
94
|
+
[x: string]: unknown;
|
|
95
|
+
progressToken?: string | number | undefined;
|
|
96
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
97
|
+
taskId: string;
|
|
98
|
+
} | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
structuredContent?: {
|
|
101
|
+
[x: string]: unknown;
|
|
102
|
+
} | undefined;
|
|
103
|
+
isError?: boolean | undefined;
|
|
104
|
+
}>;
|
|
105
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var GetTagsTool_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.GetTagsTool = void 0;
|
|
14
|
+
const common_1 = require("@nestjs/common");
|
|
15
|
+
const mcp_nest_1 = require("@rekog/mcp-nest");
|
|
16
|
+
const zod_1 = require("zod");
|
|
17
|
+
const anki_connect_client_1 = require("../../../clients/anki-connect.client");
|
|
18
|
+
const anki_utils_1 = require("../../../utils/anki.utils");
|
|
19
|
+
let GetTagsTool = GetTagsTool_1 = class GetTagsTool {
|
|
20
|
+
ankiClient;
|
|
21
|
+
logger = new common_1.Logger(GetTagsTool_1.name);
|
|
22
|
+
constructor(ankiClient) {
|
|
23
|
+
this.ankiClient = ankiClient;
|
|
24
|
+
}
|
|
25
|
+
async getTags({ pattern }, context) {
|
|
26
|
+
try {
|
|
27
|
+
this.logger.log(`Retrieving tags from Anki${pattern ? ` (filter: ${pattern})` : ""}`);
|
|
28
|
+
await context.reportProgress({ progress: 25, total: 100 });
|
|
29
|
+
const allTags = await this.ankiClient.invoke("getTags");
|
|
30
|
+
await context.reportProgress({ progress: 75, total: 100 });
|
|
31
|
+
if (!allTags || allTags.length === 0) {
|
|
32
|
+
this.logger.log("No tags found");
|
|
33
|
+
await context.reportProgress({ progress: 100, total: 100 });
|
|
34
|
+
return (0, anki_utils_1.createSuccessResponse)({
|
|
35
|
+
success: true,
|
|
36
|
+
message: "No tags found in Anki collection",
|
|
37
|
+
tags: [],
|
|
38
|
+
total: 0,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
let tags = allTags;
|
|
42
|
+
if (pattern) {
|
|
43
|
+
const lowerPattern = pattern.toLowerCase();
|
|
44
|
+
tags = allTags.filter((tag) => tag.toLowerCase().includes(lowerPattern));
|
|
45
|
+
}
|
|
46
|
+
await context.reportProgress({ progress: 100, total: 100 });
|
|
47
|
+
this.logger.log(`Found ${tags.length} tags${pattern ? ` (filtered from ${allTags.length})` : ""}`);
|
|
48
|
+
return (0, anki_utils_1.createSuccessResponse)({
|
|
49
|
+
success: true,
|
|
50
|
+
tags: tags,
|
|
51
|
+
total: tags.length,
|
|
52
|
+
...(pattern && { filtered: true, totalUnfiltered: allTags.length }),
|
|
53
|
+
message: pattern
|
|
54
|
+
? `Found ${tags.length} tags matching "${pattern}" (${allTags.length} total)`
|
|
55
|
+
: `Found ${tags.length} tags`,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
this.logger.error("Failed to retrieve tags", error);
|
|
60
|
+
return (0, anki_utils_1.createErrorResponse)(error, {
|
|
61
|
+
hint: "Make sure Anki is running and AnkiConnect is installed",
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
exports.GetTagsTool = GetTagsTool;
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, mcp_nest_1.Tool)({
|
|
69
|
+
name: "getTags",
|
|
70
|
+
description: "Get all tags in the Anki collection. Use this to discover existing tags before creating notes to maintain consistency and prevent tag duplication (e.g., avoiding 'roman-empire' vs 'roman_empire' vs 'RomanEmpire').",
|
|
71
|
+
parameters: zod_1.z.object({
|
|
72
|
+
pattern: zod_1.z
|
|
73
|
+
.string()
|
|
74
|
+
.optional()
|
|
75
|
+
.describe("Optional filter pattern - returns only tags containing this string (case-insensitive)"),
|
|
76
|
+
}),
|
|
77
|
+
}),
|
|
78
|
+
__metadata("design:type", Function),
|
|
79
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
80
|
+
__metadata("design:returntype", Promise)
|
|
81
|
+
], GetTagsTool.prototype, "getTags", null);
|
|
82
|
+
exports.GetTagsTool = GetTagsTool = GetTagsTool_1 = __decorate([
|
|
83
|
+
(0, common_1.Injectable)(),
|
|
84
|
+
__metadata("design:paramtypes", [anki_connect_client_1.AnkiConnectClient])
|
|
85
|
+
], GetTagsTool);
|
|
86
|
+
//# sourceMappingURL=get-tags.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tags.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/primitives/essential/tools/get-tags.tool.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,8CAAuC;AAEvC,6BAAwB;AACxB,8EAAsE;AACtE,0DAGgC;AA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AE;iBACR,QAAQ,EAAE;iBACV,QAAQ,CACP,uFAAuF,CACxF;SACJ,CAAC;KACH,CAAC;;;;0CAqDD;sBAtEU,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAI8B,uCAAiB;GAH/C,WAAW,CAuEvB"}
|
|
@@ -11,6 +11,11 @@ export declare class ListDecksTool {
|
|
|
11
11
|
content: ({
|
|
12
12
|
type: "text";
|
|
13
13
|
text: string;
|
|
14
|
+
annotations?: {
|
|
15
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
16
|
+
priority?: number | undefined;
|
|
17
|
+
lastModified?: string | undefined;
|
|
18
|
+
} | undefined;
|
|
14
19
|
_meta?: {
|
|
15
20
|
[x: string]: unknown;
|
|
16
21
|
} | undefined;
|
|
@@ -18,6 +23,11 @@ export declare class ListDecksTool {
|
|
|
18
23
|
type: "image";
|
|
19
24
|
data: string;
|
|
20
25
|
mimeType: string;
|
|
26
|
+
annotations?: {
|
|
27
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
28
|
+
priority?: number | undefined;
|
|
29
|
+
lastModified?: string | undefined;
|
|
30
|
+
} | undefined;
|
|
21
31
|
_meta?: {
|
|
22
32
|
[x: string]: unknown;
|
|
23
33
|
} | undefined;
|
|
@@ -25,6 +35,11 @@ export declare class ListDecksTool {
|
|
|
25
35
|
type: "audio";
|
|
26
36
|
data: string;
|
|
27
37
|
mimeType: string;
|
|
38
|
+
annotations?: {
|
|
39
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
40
|
+
priority?: number | undefined;
|
|
41
|
+
lastModified?: string | undefined;
|
|
42
|
+
} | undefined;
|
|
28
43
|
_meta?: {
|
|
29
44
|
[x: string]: unknown;
|
|
30
45
|
} | undefined;
|
|
@@ -34,6 +49,11 @@ export declare class ListDecksTool {
|
|
|
34
49
|
type: "resource_link";
|
|
35
50
|
description?: string | undefined;
|
|
36
51
|
mimeType?: string | undefined;
|
|
52
|
+
annotations?: {
|
|
53
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
54
|
+
priority?: number | undefined;
|
|
55
|
+
lastModified?: string | undefined;
|
|
56
|
+
} | undefined;
|
|
37
57
|
_meta?: {
|
|
38
58
|
[x: string]: unknown;
|
|
39
59
|
} | undefined;
|
|
@@ -41,6 +61,7 @@ export declare class ListDecksTool {
|
|
|
41
61
|
src: string;
|
|
42
62
|
mimeType?: string | undefined;
|
|
43
63
|
sizes?: string[] | undefined;
|
|
64
|
+
theme?: "light" | "dark" | undefined;
|
|
44
65
|
}[] | undefined;
|
|
45
66
|
title?: string | undefined;
|
|
46
67
|
} | {
|
|
@@ -60,12 +81,21 @@ export declare class ListDecksTool {
|
|
|
60
81
|
[x: string]: unknown;
|
|
61
82
|
} | undefined;
|
|
62
83
|
};
|
|
84
|
+
annotations?: {
|
|
85
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
86
|
+
priority?: number | undefined;
|
|
87
|
+
lastModified?: string | undefined;
|
|
88
|
+
} | undefined;
|
|
63
89
|
_meta?: {
|
|
64
90
|
[x: string]: unknown;
|
|
65
91
|
} | undefined;
|
|
66
92
|
})[];
|
|
67
93
|
_meta?: {
|
|
68
94
|
[x: string]: unknown;
|
|
95
|
+
progressToken?: string | number | undefined;
|
|
96
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
97
|
+
taskId: string;
|
|
98
|
+
} | undefined;
|
|
69
99
|
} | undefined;
|
|
70
100
|
structuredContent?: {
|
|
71
101
|
[x: string]: unknown;
|
|
@@ -17,6 +17,11 @@ export declare class MediaActionsTool {
|
|
|
17
17
|
content: ({
|
|
18
18
|
type: "text";
|
|
19
19
|
text: string;
|
|
20
|
+
annotations?: {
|
|
21
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
22
|
+
priority?: number | undefined;
|
|
23
|
+
lastModified?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
20
25
|
_meta?: {
|
|
21
26
|
[x: string]: unknown;
|
|
22
27
|
} | undefined;
|
|
@@ -24,6 +29,11 @@ export declare class MediaActionsTool {
|
|
|
24
29
|
type: "image";
|
|
25
30
|
data: string;
|
|
26
31
|
mimeType: string;
|
|
32
|
+
annotations?: {
|
|
33
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
34
|
+
priority?: number | undefined;
|
|
35
|
+
lastModified?: string | undefined;
|
|
36
|
+
} | undefined;
|
|
27
37
|
_meta?: {
|
|
28
38
|
[x: string]: unknown;
|
|
29
39
|
} | undefined;
|
|
@@ -31,6 +41,11 @@ export declare class MediaActionsTool {
|
|
|
31
41
|
type: "audio";
|
|
32
42
|
data: string;
|
|
33
43
|
mimeType: string;
|
|
44
|
+
annotations?: {
|
|
45
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
46
|
+
priority?: number | undefined;
|
|
47
|
+
lastModified?: string | undefined;
|
|
48
|
+
} | undefined;
|
|
34
49
|
_meta?: {
|
|
35
50
|
[x: string]: unknown;
|
|
36
51
|
} | undefined;
|
|
@@ -40,6 +55,11 @@ export declare class MediaActionsTool {
|
|
|
40
55
|
type: "resource_link";
|
|
41
56
|
description?: string | undefined;
|
|
42
57
|
mimeType?: string | undefined;
|
|
58
|
+
annotations?: {
|
|
59
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
60
|
+
priority?: number | undefined;
|
|
61
|
+
lastModified?: string | undefined;
|
|
62
|
+
} | undefined;
|
|
43
63
|
_meta?: {
|
|
44
64
|
[x: string]: unknown;
|
|
45
65
|
} | undefined;
|
|
@@ -47,6 +67,7 @@ export declare class MediaActionsTool {
|
|
|
47
67
|
src: string;
|
|
48
68
|
mimeType?: string | undefined;
|
|
49
69
|
sizes?: string[] | undefined;
|
|
70
|
+
theme?: "light" | "dark" | undefined;
|
|
50
71
|
}[] | undefined;
|
|
51
72
|
title?: string | undefined;
|
|
52
73
|
} | {
|
|
@@ -66,12 +87,21 @@ export declare class MediaActionsTool {
|
|
|
66
87
|
[x: string]: unknown;
|
|
67
88
|
} | undefined;
|
|
68
89
|
};
|
|
90
|
+
annotations?: {
|
|
91
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
92
|
+
priority?: number | undefined;
|
|
93
|
+
lastModified?: string | undefined;
|
|
94
|
+
} | undefined;
|
|
69
95
|
_meta?: {
|
|
70
96
|
[x: string]: unknown;
|
|
71
97
|
} | undefined;
|
|
72
98
|
})[];
|
|
73
99
|
_meta?: {
|
|
74
100
|
[x: string]: unknown;
|
|
101
|
+
progressToken?: string | number | undefined;
|
|
102
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
103
|
+
taskId: string;
|
|
104
|
+
} | undefined;
|
|
75
105
|
} | undefined;
|
|
76
106
|
structuredContent?: {
|
|
77
107
|
[x: string]: unknown;
|
|
@@ -11,6 +11,11 @@ export declare class ModelFieldNamesTool {
|
|
|
11
11
|
content: ({
|
|
12
12
|
type: "text";
|
|
13
13
|
text: string;
|
|
14
|
+
annotations?: {
|
|
15
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
16
|
+
priority?: number | undefined;
|
|
17
|
+
lastModified?: string | undefined;
|
|
18
|
+
} | undefined;
|
|
14
19
|
_meta?: {
|
|
15
20
|
[x: string]: unknown;
|
|
16
21
|
} | undefined;
|
|
@@ -18,6 +23,11 @@ export declare class ModelFieldNamesTool {
|
|
|
18
23
|
type: "image";
|
|
19
24
|
data: string;
|
|
20
25
|
mimeType: string;
|
|
26
|
+
annotations?: {
|
|
27
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
28
|
+
priority?: number | undefined;
|
|
29
|
+
lastModified?: string | undefined;
|
|
30
|
+
} | undefined;
|
|
21
31
|
_meta?: {
|
|
22
32
|
[x: string]: unknown;
|
|
23
33
|
} | undefined;
|
|
@@ -25,6 +35,11 @@ export declare class ModelFieldNamesTool {
|
|
|
25
35
|
type: "audio";
|
|
26
36
|
data: string;
|
|
27
37
|
mimeType: string;
|
|
38
|
+
annotations?: {
|
|
39
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
40
|
+
priority?: number | undefined;
|
|
41
|
+
lastModified?: string | undefined;
|
|
42
|
+
} | undefined;
|
|
28
43
|
_meta?: {
|
|
29
44
|
[x: string]: unknown;
|
|
30
45
|
} | undefined;
|
|
@@ -34,6 +49,11 @@ export declare class ModelFieldNamesTool {
|
|
|
34
49
|
type: "resource_link";
|
|
35
50
|
description?: string | undefined;
|
|
36
51
|
mimeType?: string | undefined;
|
|
52
|
+
annotations?: {
|
|
53
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
54
|
+
priority?: number | undefined;
|
|
55
|
+
lastModified?: string | undefined;
|
|
56
|
+
} | undefined;
|
|
37
57
|
_meta?: {
|
|
38
58
|
[x: string]: unknown;
|
|
39
59
|
} | undefined;
|
|
@@ -41,6 +61,7 @@ export declare class ModelFieldNamesTool {
|
|
|
41
61
|
src: string;
|
|
42
62
|
mimeType?: string | undefined;
|
|
43
63
|
sizes?: string[] | undefined;
|
|
64
|
+
theme?: "light" | "dark" | undefined;
|
|
44
65
|
}[] | undefined;
|
|
45
66
|
title?: string | undefined;
|
|
46
67
|
} | {
|
|
@@ -60,12 +81,21 @@ export declare class ModelFieldNamesTool {
|
|
|
60
81
|
[x: string]: unknown;
|
|
61
82
|
} | undefined;
|
|
62
83
|
};
|
|
84
|
+
annotations?: {
|
|
85
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
86
|
+
priority?: number | undefined;
|
|
87
|
+
lastModified?: string | undefined;
|
|
88
|
+
} | undefined;
|
|
63
89
|
_meta?: {
|
|
64
90
|
[x: string]: unknown;
|
|
65
91
|
} | undefined;
|
|
66
92
|
})[];
|
|
67
93
|
_meta?: {
|
|
68
94
|
[x: string]: unknown;
|
|
95
|
+
progressToken?: string | number | undefined;
|
|
96
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
97
|
+
taskId: string;
|
|
98
|
+
} | undefined;
|
|
69
99
|
} | undefined;
|
|
70
100
|
structuredContent?: {
|
|
71
101
|
[x: string]: unknown;
|
|
@@ -9,6 +9,11 @@ export declare class ModelNamesTool {
|
|
|
9
9
|
content: ({
|
|
10
10
|
type: "text";
|
|
11
11
|
text: string;
|
|
12
|
+
annotations?: {
|
|
13
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
14
|
+
priority?: number | undefined;
|
|
15
|
+
lastModified?: string | undefined;
|
|
16
|
+
} | undefined;
|
|
12
17
|
_meta?: {
|
|
13
18
|
[x: string]: unknown;
|
|
14
19
|
} | undefined;
|
|
@@ -16,6 +21,11 @@ export declare class ModelNamesTool {
|
|
|
16
21
|
type: "image";
|
|
17
22
|
data: string;
|
|
18
23
|
mimeType: string;
|
|
24
|
+
annotations?: {
|
|
25
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
26
|
+
priority?: number | undefined;
|
|
27
|
+
lastModified?: string | undefined;
|
|
28
|
+
} | undefined;
|
|
19
29
|
_meta?: {
|
|
20
30
|
[x: string]: unknown;
|
|
21
31
|
} | undefined;
|
|
@@ -23,6 +33,11 @@ export declare class ModelNamesTool {
|
|
|
23
33
|
type: "audio";
|
|
24
34
|
data: string;
|
|
25
35
|
mimeType: string;
|
|
36
|
+
annotations?: {
|
|
37
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
38
|
+
priority?: number | undefined;
|
|
39
|
+
lastModified?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
26
41
|
_meta?: {
|
|
27
42
|
[x: string]: unknown;
|
|
28
43
|
} | undefined;
|
|
@@ -32,6 +47,11 @@ export declare class ModelNamesTool {
|
|
|
32
47
|
type: "resource_link";
|
|
33
48
|
description?: string | undefined;
|
|
34
49
|
mimeType?: string | undefined;
|
|
50
|
+
annotations?: {
|
|
51
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
52
|
+
priority?: number | undefined;
|
|
53
|
+
lastModified?: string | undefined;
|
|
54
|
+
} | undefined;
|
|
35
55
|
_meta?: {
|
|
36
56
|
[x: string]: unknown;
|
|
37
57
|
} | undefined;
|
|
@@ -39,6 +59,7 @@ export declare class ModelNamesTool {
|
|
|
39
59
|
src: string;
|
|
40
60
|
mimeType?: string | undefined;
|
|
41
61
|
sizes?: string[] | undefined;
|
|
62
|
+
theme?: "light" | "dark" | undefined;
|
|
42
63
|
}[] | undefined;
|
|
43
64
|
title?: string | undefined;
|
|
44
65
|
} | {
|
|
@@ -58,12 +79,21 @@ export declare class ModelNamesTool {
|
|
|
58
79
|
[x: string]: unknown;
|
|
59
80
|
} | undefined;
|
|
60
81
|
};
|
|
82
|
+
annotations?: {
|
|
83
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
84
|
+
priority?: number | undefined;
|
|
85
|
+
lastModified?: string | undefined;
|
|
86
|
+
} | undefined;
|
|
61
87
|
_meta?: {
|
|
62
88
|
[x: string]: unknown;
|
|
63
89
|
} | undefined;
|
|
64
90
|
})[];
|
|
65
91
|
_meta?: {
|
|
66
92
|
[x: string]: unknown;
|
|
93
|
+
progressToken?: string | number | undefined;
|
|
94
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
95
|
+
taskId: string;
|
|
96
|
+
} | undefined;
|
|
67
97
|
} | undefined;
|
|
68
98
|
structuredContent?: {
|
|
69
99
|
[x: string]: unknown;
|
|
@@ -11,6 +11,11 @@ export declare class ModelStylingTool {
|
|
|
11
11
|
content: ({
|
|
12
12
|
type: "text";
|
|
13
13
|
text: string;
|
|
14
|
+
annotations?: {
|
|
15
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
16
|
+
priority?: number | undefined;
|
|
17
|
+
lastModified?: string | undefined;
|
|
18
|
+
} | undefined;
|
|
14
19
|
_meta?: {
|
|
15
20
|
[x: string]: unknown;
|
|
16
21
|
} | undefined;
|
|
@@ -18,6 +23,11 @@ export declare class ModelStylingTool {
|
|
|
18
23
|
type: "image";
|
|
19
24
|
data: string;
|
|
20
25
|
mimeType: string;
|
|
26
|
+
annotations?: {
|
|
27
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
28
|
+
priority?: number | undefined;
|
|
29
|
+
lastModified?: string | undefined;
|
|
30
|
+
} | undefined;
|
|
21
31
|
_meta?: {
|
|
22
32
|
[x: string]: unknown;
|
|
23
33
|
} | undefined;
|
|
@@ -25,6 +35,11 @@ export declare class ModelStylingTool {
|
|
|
25
35
|
type: "audio";
|
|
26
36
|
data: string;
|
|
27
37
|
mimeType: string;
|
|
38
|
+
annotations?: {
|
|
39
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
40
|
+
priority?: number | undefined;
|
|
41
|
+
lastModified?: string | undefined;
|
|
42
|
+
} | undefined;
|
|
28
43
|
_meta?: {
|
|
29
44
|
[x: string]: unknown;
|
|
30
45
|
} | undefined;
|
|
@@ -34,6 +49,11 @@ export declare class ModelStylingTool {
|
|
|
34
49
|
type: "resource_link";
|
|
35
50
|
description?: string | undefined;
|
|
36
51
|
mimeType?: string | undefined;
|
|
52
|
+
annotations?: {
|
|
53
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
54
|
+
priority?: number | undefined;
|
|
55
|
+
lastModified?: string | undefined;
|
|
56
|
+
} | undefined;
|
|
37
57
|
_meta?: {
|
|
38
58
|
[x: string]: unknown;
|
|
39
59
|
} | undefined;
|
|
@@ -41,6 +61,7 @@ export declare class ModelStylingTool {
|
|
|
41
61
|
src: string;
|
|
42
62
|
mimeType?: string | undefined;
|
|
43
63
|
sizes?: string[] | undefined;
|
|
64
|
+
theme?: "light" | "dark" | undefined;
|
|
44
65
|
}[] | undefined;
|
|
45
66
|
title?: string | undefined;
|
|
46
67
|
} | {
|
|
@@ -60,12 +81,21 @@ export declare class ModelStylingTool {
|
|
|
60
81
|
[x: string]: unknown;
|
|
61
82
|
} | undefined;
|
|
62
83
|
};
|
|
84
|
+
annotations?: {
|
|
85
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
86
|
+
priority?: number | undefined;
|
|
87
|
+
lastModified?: string | undefined;
|
|
88
|
+
} | undefined;
|
|
63
89
|
_meta?: {
|
|
64
90
|
[x: string]: unknown;
|
|
65
91
|
} | undefined;
|
|
66
92
|
})[];
|
|
67
93
|
_meta?: {
|
|
68
94
|
[x: string]: unknown;
|
|
95
|
+
progressToken?: string | number | undefined;
|
|
96
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
97
|
+
taskId: string;
|
|
98
|
+
} | undefined;
|
|
69
99
|
} | undefined;
|
|
70
100
|
structuredContent?: {
|
|
71
101
|
[x: string]: unknown;
|