@eggjs/tegg-types 3.84.4 → 3.85.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.
|
@@ -4,8 +4,17 @@ import type { ShapeOutput } from '@modelcontextprotocol/sdk/server/zod-compat.js
|
|
|
4
4
|
export type ToolArgs<T extends Parameters<McpServer['tool']>['2']> = ShapeOutput<T>;
|
|
5
5
|
export type ToolExtra = Parameters<Parameters<McpServer['tool']>['4']>['1'];
|
|
6
6
|
export type MCPToolResponse = CallToolResult;
|
|
7
|
+
export type MCPToolVisibility = 'model' | 'app';
|
|
8
|
+
export interface MCPToolUIMeta {
|
|
9
|
+
resourceUri?: string;
|
|
10
|
+
visibility?: MCPToolVisibility[];
|
|
11
|
+
}
|
|
12
|
+
export type MCPToolRegistrationMeta = {
|
|
13
|
+
ui: MCPToolUIMeta;
|
|
14
|
+
};
|
|
7
15
|
export interface MCPToolParams {
|
|
8
16
|
name?: string;
|
|
9
17
|
description?: string;
|
|
10
18
|
timeout?: number;
|
|
19
|
+
meta?: MCPToolRegistrationMeta;
|
|
11
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/tegg-types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.85.0",
|
|
4
4
|
"description": "tegg types",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"egg",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"ts-node": "^10.9.1",
|
|
46
46
|
"typescript": "^5.0.4"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "b77c789189a8f3206c2289062dc5724de6f91452"
|
|
49
49
|
}
|