mcp-use 1.0.7 → 1.1.1-beta.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/{chunk-CWWNPIJZ.js → chunk-56ZYVEAJ.js} +17 -8
- package/dist/index.cjs +15 -6
- package/dist/index.js +3 -3
- package/dist/src/connectors/http.d.ts.map +1 -1
- package/dist/src/react/index.cjs +13 -4
- package/dist/src/react/index.js +1 -1
- package/dist/src/react/types.d.ts +5 -1
- package/dist/src/react/types.d.ts.map +1 -1
- package/dist/src/react/useMcp.d.ts.map +1 -1
- package/dist/src/server/adapters/mcp-ui-adapter.d.ts +54 -4
- package/dist/src/server/adapters/mcp-ui-adapter.d.ts.map +1 -1
- package/dist/src/server/index.cjs +175 -42
- package/dist/src/server/index.d.ts +1 -1
- package/dist/src/server/index.d.ts.map +1 -1
- package/dist/src/server/index.js +175 -42
- package/dist/src/server/mcp-server.d.ts +46 -13
- package/dist/src/server/mcp-server.d.ts.map +1 -1
- package/dist/src/server/types/index.d.ts +3 -3
- package/dist/src/server/types/index.d.ts.map +1 -1
- package/dist/src/server/types/prompt.d.ts +5 -3
- package/dist/src/server/types/prompt.d.ts.map +1 -1
- package/dist/src/server/types/resource.d.ts +95 -9
- package/dist/src/server/types/resource.d.ts.map +1 -1
- package/dist/src/server/types/tool.d.ts +10 -3
- package/dist/src/server/types/tool.d.ts.map +1 -1
- package/dist/tests/stream_events.test.d.ts +10 -0
- package/dist/tests/stream_events.test.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ReadResourceResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import type { ResourceAnnotations } from './common.js';
|
|
3
|
+
import type { AdaptersConfig } from '@mcp-ui/server';
|
|
3
4
|
export type UIResourceContent = {
|
|
4
5
|
type: 'resource';
|
|
5
6
|
resource: {
|
|
6
7
|
uri: string;
|
|
7
8
|
mimeType: string;
|
|
9
|
+
_meta?: AppsSdkMetadata;
|
|
8
10
|
} & ({
|
|
9
11
|
text: string;
|
|
10
12
|
blob?: never;
|
|
@@ -13,8 +15,61 @@ export type UIResourceContent = {
|
|
|
13
15
|
text?: never;
|
|
14
16
|
});
|
|
15
17
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Apps SDK resource metadata fields
|
|
20
|
+
*
|
|
21
|
+
* These fields are set on the resource itself (in resource._meta).
|
|
22
|
+
* They control how the widget is rendered and secured.
|
|
23
|
+
*
|
|
24
|
+
* @note Resource-level metadata for Apps SDK widgets
|
|
25
|
+
* @see https://developers.openai.com/apps-sdk/build/mcp-server
|
|
26
|
+
*/
|
|
27
|
+
export interface AppsSdkMetadata extends Record<string, unknown> {
|
|
28
|
+
/** Description of the widget for Apps SDK - helps the model understand what's displayed */
|
|
29
|
+
'openai/widgetDescription'?: string;
|
|
30
|
+
/** Content Security Policy for the widget */
|
|
31
|
+
'openai/widgetCSP'?: {
|
|
32
|
+
/** Domains the widget can connect to (for fetch, websocket, etc.) */
|
|
33
|
+
connect_domains?: string[];
|
|
34
|
+
/** Domains the widget can load resources from (scripts, styles, images, fonts) */
|
|
35
|
+
resource_domains?: string[];
|
|
36
|
+
};
|
|
37
|
+
/** Whether the widget prefers a border in card layout */
|
|
38
|
+
'openai/widgetPrefersBorder'?: boolean;
|
|
39
|
+
/** Whether the widget can initiate tool calls (component-initiated tool access) */
|
|
40
|
+
'openai/widgetAccessible'?: boolean;
|
|
41
|
+
/** Custom subdomain for the widget (e.g., 'chatgpt.com' becomes 'chatgpt-com.web-sandbox.oaiusercontent.com') */
|
|
42
|
+
'openai/widgetDomain'?: string;
|
|
43
|
+
/** Locale for the widget (e.g., 'en-US', 'fr-FR') */
|
|
44
|
+
'openai/locale'?: string;
|
|
45
|
+
/** Status text while tool is invoking */
|
|
46
|
+
'openai/toolInvocation/invoking'?: string;
|
|
47
|
+
/** Status text after tool has invoked */
|
|
48
|
+
'openai/toolInvocation/invoked'?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Apps SDK tool metadata fields
|
|
52
|
+
*
|
|
53
|
+
* These fields are set on the tool itself (in tool._meta).
|
|
54
|
+
* They connect the tool to its widget template and control invocation behavior.
|
|
55
|
+
*
|
|
56
|
+
* @note Tool-level metadata for Apps SDK integration
|
|
57
|
+
* @see https://developers.openai.com/apps-sdk/build/mcp-server
|
|
58
|
+
*/
|
|
59
|
+
export interface AppsSdkToolMetadata extends Record<string, unknown> {
|
|
60
|
+
/** URI of the output template resource that will render this tool's output */
|
|
61
|
+
'openai/outputTemplate'?: string;
|
|
62
|
+
/** Status text while tool is invoking */
|
|
63
|
+
'openai/toolInvocation/invoking'?: string;
|
|
64
|
+
/** Status text after tool has invoked */
|
|
65
|
+
'openai/toolInvocation/invoked'?: string;
|
|
66
|
+
/** Whether the widget can initiate tool calls */
|
|
67
|
+
'openai/widgetAccessible'?: boolean;
|
|
68
|
+
/** Whether this tool result can produce a widget */
|
|
69
|
+
'openai/resultCanProduceWidget'?: boolean;
|
|
70
|
+
}
|
|
71
|
+
export type ReadResourceCallback = () => Promise<ReadResourceResult>;
|
|
72
|
+
export type ReadResourceTemplateCallback = (uri: URL, params: Record<string, any>) => Promise<ReadResourceResult>;
|
|
18
73
|
/**
|
|
19
74
|
* Configuration for a resource template
|
|
20
75
|
*/
|
|
@@ -34,7 +89,7 @@ export interface ResourceTemplateDefinition {
|
|
|
34
89
|
title?: string;
|
|
35
90
|
description?: string;
|
|
36
91
|
annotations?: ResourceAnnotations;
|
|
37
|
-
|
|
92
|
+
readCallback: ReadResourceTemplateCallback;
|
|
38
93
|
}
|
|
39
94
|
export interface ResourceDefinition {
|
|
40
95
|
/** Unique identifier for the resource */
|
|
@@ -49,8 +104,8 @@ export interface ResourceDefinition {
|
|
|
49
104
|
mimeType: string;
|
|
50
105
|
/** Optional annotations for the resource */
|
|
51
106
|
annotations?: ResourceAnnotations;
|
|
52
|
-
/** Async function that returns the resource content */
|
|
53
|
-
|
|
107
|
+
/** Async callback function that returns the resource content */
|
|
108
|
+
readCallback: ReadResourceCallback;
|
|
54
109
|
}
|
|
55
110
|
/**
|
|
56
111
|
* UIResource-specific types
|
|
@@ -91,23 +146,31 @@ interface BaseUIResourceDefinition {
|
|
|
91
146
|
encoding?: UIEncoding;
|
|
92
147
|
}
|
|
93
148
|
/**
|
|
94
|
-
* External URL UI resource - serves widget via iframe
|
|
149
|
+
* External URL UI resource - serves widget via iframe (legacy MCP-UI)
|
|
95
150
|
*/
|
|
96
151
|
export interface ExternalUrlUIResource extends BaseUIResourceDefinition {
|
|
97
152
|
type: 'externalUrl';
|
|
98
153
|
/** Widget identifier (e.g., 'kanban-board', 'chart') */
|
|
99
154
|
widget: string;
|
|
155
|
+
/** Adapter configuration */
|
|
156
|
+
adapters?: AdaptersConfig;
|
|
157
|
+
/** Apps SDK metadata fields */
|
|
158
|
+
appsSdkMetadata?: AppsSdkMetadata;
|
|
100
159
|
}
|
|
101
160
|
/**
|
|
102
|
-
* Raw HTML UI resource - direct HTML content
|
|
161
|
+
* Raw HTML UI resource - direct HTML content (legacy MCP-UI)
|
|
103
162
|
*/
|
|
104
163
|
export interface RawHtmlUIResource extends BaseUIResourceDefinition {
|
|
105
164
|
type: 'rawHtml';
|
|
106
165
|
/** HTML content to render */
|
|
107
166
|
htmlContent: string;
|
|
167
|
+
/** Adapter configuration */
|
|
168
|
+
adapters?: AdaptersConfig;
|
|
169
|
+
/** Apps SDK metadata fields */
|
|
170
|
+
appsSdkMetadata?: AppsSdkMetadata;
|
|
108
171
|
}
|
|
109
172
|
/**
|
|
110
|
-
* Remote DOM UI resource - scripted UI components
|
|
173
|
+
* Remote DOM UI resource - scripted UI components (legacy MCP-UI)
|
|
111
174
|
*/
|
|
112
175
|
export interface RemoteDomUIResource extends BaseUIResourceDefinition {
|
|
113
176
|
type: 'remoteDom';
|
|
@@ -115,11 +178,34 @@ export interface RemoteDomUIResource extends BaseUIResourceDefinition {
|
|
|
115
178
|
script: string;
|
|
116
179
|
/** Framework for remote DOM (defaults to 'react') */
|
|
117
180
|
framework?: RemoteDomFramework;
|
|
181
|
+
/** Adapter configuration */
|
|
182
|
+
adapters?: AdaptersConfig;
|
|
183
|
+
/** Apps SDK metadata fields */
|
|
184
|
+
appsSdkMetadata?: AppsSdkMetadata;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Apps SDK UI resource - OpenAI Apps SDK compatible widget
|
|
188
|
+
*
|
|
189
|
+
* This type follows the official OpenAI Apps SDK pattern:
|
|
190
|
+
* - Uses text/html+skybridge mime type
|
|
191
|
+
* - Supports component HTML with embedded JS/CSS
|
|
192
|
+
* - Tool returns structuredContent that gets injected as window.openai.toolOutput
|
|
193
|
+
* - Supports CSP, widget domains, and other Apps SDK metadata
|
|
194
|
+
*
|
|
195
|
+
* @see https://developers.openai.com/apps-sdk/build/mcp-server
|
|
196
|
+
* @see https://mcpui.dev/guide/apps-sdk
|
|
197
|
+
*/
|
|
198
|
+
export interface AppsSdkUIResource extends BaseUIResourceDefinition {
|
|
199
|
+
type: 'appsSdk';
|
|
200
|
+
/** HTML template content - the component that will be rendered */
|
|
201
|
+
htmlTemplate: string;
|
|
202
|
+
/** Apps SDK-specific metadata */
|
|
203
|
+
appsSdkMetadata?: AppsSdkMetadata;
|
|
118
204
|
}
|
|
119
205
|
/**
|
|
120
206
|
* Discriminated union of all UI resource types
|
|
121
207
|
*/
|
|
122
|
-
export type UIResourceDefinition = ExternalUrlUIResource | RawHtmlUIResource | RemoteDomUIResource;
|
|
208
|
+
export type UIResourceDefinition = ExternalUrlUIResource | RawHtmlUIResource | RemoteDomUIResource | AppsSdkUIResource;
|
|
123
209
|
export interface WidgetConfig {
|
|
124
210
|
/** Widget directory name */
|
|
125
211
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../../../src/server/types/resource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,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACvB,MAAM,CAAC,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;QAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;KAClB,CAAA;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,6EAA6E;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uDAAuD;IACvD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACzB"}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import type { InputDefinition } from './common.js';
|
|
3
|
-
|
|
3
|
+
import type { ToolAnnotations } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
export type ToolCallback = (params: Record<string, any>) => Promise<CallToolResult>;
|
|
4
5
|
export interface ToolDefinition {
|
|
5
6
|
/** Unique identifier for the tool */
|
|
6
7
|
name: string;
|
|
8
|
+
/** Human-readable title for the tool (displayed in UI) */
|
|
9
|
+
title?: string;
|
|
7
10
|
/** Description of what the tool does */
|
|
8
11
|
description?: string;
|
|
9
12
|
/** Input parameter definitions */
|
|
10
13
|
inputs?: InputDefinition[];
|
|
11
|
-
/** Async function that executes the tool */
|
|
12
|
-
|
|
14
|
+
/** Async callback function that executes the tool */
|
|
15
|
+
cb: ToolCallback;
|
|
16
|
+
/** Tool annotations */
|
|
17
|
+
annotations?: ToolAnnotations;
|
|
18
|
+
/** Metadata for the tool */
|
|
19
|
+
_meta?: Record<string, unknown>;
|
|
13
20
|
}
|
|
14
21
|
//# sourceMappingURL=tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../../../src/server/types/tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../../../src/server/types/tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AAEzE,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,cAAc,CAAC,CAAA;AAEnF,MAAM,WAAW,cAAc;IAC7B,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kCAAkC;IAClC,MAAM,CAAC,EAAE,eAAe,EAAE,CAAA;IAC1B,qDAAqD;IACrD,EAAE,EAAE,YAAY,CAAA;IAChB,uBAAuB;IACvB,WAAW,CAAC,EAAE,eAAe,CAAA;IAC7B,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC"}
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for MCPAgent streamEvents() method
|
|
3
|
+
*
|
|
4
|
+
* These tests verify that the streamEvents() method:
|
|
5
|
+
* - Yields proper StreamEvent objects
|
|
6
|
+
* - Handles different event types correctly
|
|
7
|
+
* - Provides token-level streaming
|
|
8
|
+
* - Manages conversation history properly
|
|
9
|
+
* - Tracks telemetry correctly
|
|
10
|
+
*/
|
|
1
11
|
export {};
|
|
2
12
|
//# sourceMappingURL=stream_events.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream_events.test.d.ts","sourceRoot":"","sources":["../../tests/stream_events.test.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"stream_events.test.d.ts","sourceRoot":"","sources":["../../tests/stream_events.test.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG"}
|