mcp-use 1.3.3-canary.3 → 1.3.3-canary.4
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/.tsbuildinfo +1 -1
- package/dist/chunk-QKPVHYJU.js +2027 -0
- package/dist/index.cjs +1248 -5
- package/dist/index.js +5 -1
- package/dist/src/react/WidgetDebugger.d.ts +31 -0
- package/dist/src/react/WidgetDebugger.d.ts.map +1 -0
- package/dist/src/react/WidgetFullscreenWrapper.d.ts +32 -0
- package/dist/src/react/WidgetFullscreenWrapper.d.ts.map +1 -0
- package/dist/src/react/index.cjs +1248 -5
- package/dist/src/react/index.d.ts +2 -0
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/react/index.js +5 -1
- package/dist/src/react/useWidget.d.ts.map +1 -1
- package/dist/src/server/index.cjs +4 -4
- package/dist/src/server/index.js +4 -4
- package/package.json +3 -3
- package/dist/chunk-VNEGDXZO.js +0 -784
|
@@ -7,5 +7,7 @@ export type { UseMcpOptions, UseMcpResult } from "./types.js";
|
|
|
7
7
|
export { onMcpAuthorization } from "../auth/callback.js";
|
|
8
8
|
export type { Tool, Resource, ResourceTemplate, Prompt, } from "@modelcontextprotocol/sdk/types.js";
|
|
9
9
|
export { useWidget, useWidgetProps, useWidgetTheme, useWidgetState, } from "./useWidget.js";
|
|
10
|
+
export { WidgetFullscreenWrapper } from "./WidgetFullscreenWrapper.js";
|
|
11
|
+
export { WidgetDebugger } from "./WidgetDebugger.js";
|
|
10
12
|
export type { UseWidgetResult, OpenAiGlobals, API, Theme, DisplayMode, DeviceType, SafeArea, SafeAreaInsets, UserAgent, CallToolResponse, UnknownObject, } from "./widget-types.js";
|
|
11
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzD,YAAY,EACV,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,MAAM,GACP,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EACL,SAAS,EACT,cAAc,EACd,cAAc,EACd,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,eAAe,EACf,aAAa,EACb,GAAG,EACH,KAAK,EACL,WAAW,EACX,UAAU,EACV,QAAQ,EACR,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,aAAa,GACd,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzD,YAAY,EACV,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,MAAM,GACP,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EACL,SAAS,EACT,cAAc,EACd,cAAc,EACd,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EACV,eAAe,EACf,aAAa,EACb,GAAG,EACH,KAAK,EACL,WAAW,EACX,UAAU,EACV,QAAQ,EACR,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,aAAa,GACd,MAAM,mBAAmB,CAAC"}
|
package/dist/src/react/index.js
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
+
WidgetDebugger,
|
|
3
|
+
WidgetFullscreenWrapper,
|
|
2
4
|
useMcp,
|
|
3
5
|
useWidget,
|
|
4
6
|
useWidgetProps,
|
|
5
7
|
useWidgetState,
|
|
6
8
|
useWidgetTheme
|
|
7
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-QKPVHYJU.js";
|
|
8
10
|
import {
|
|
9
11
|
onMcpAuthorization
|
|
10
12
|
} from "../../chunk-TIUSJAAE.js";
|
|
11
13
|
import "../../chunk-34R6SIER.js";
|
|
12
14
|
import "../../chunk-3GQAWCBQ.js";
|
|
13
15
|
export {
|
|
16
|
+
WidgetDebugger,
|
|
17
|
+
WidgetFullscreenWrapper,
|
|
14
18
|
onMcpAuthorization,
|
|
15
19
|
useMcp,
|
|
16
20
|
useWidget,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWidget.d.ts","sourceRoot":"","sources":["../../../src/react/useWidget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useWidget.d.ts","sourceRoot":"","sources":["../../../src/react/useWidget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,OAAO,KAAK,EAMV,KAAK,EACL,aAAa,EAEb,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAqC3B;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,SAAS,CACvB,MAAM,SAAS,aAAa,GAAG,aAAa,EAC5C,OAAO,SAAS,aAAa,GAAG,aAAa,EAC7C,SAAS,SAAS,aAAa,GAAG,aAAa,EAC/C,MAAM,SAAS,aAAa,GAAG,aAAa,EAC5C,YAAY,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAgM5E;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,MAAM,SAAS,aAAa,GAAG,aAAa,EACzE,YAAY,CAAC,EAAE,MAAM,GACpB,MAAM,CAGR;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,KAAK,CAGtC;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,MAAM,SAAS,aAAa,EACzD,YAAY,CAAC,EAAE,MAAM,GACpB,SAAS;IACV,MAAM,GAAG,IAAI;IACb,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC;CACrE,CAoBA"}
|
|
@@ -1393,14 +1393,14 @@ if (container && Component) {
|
|
|
1393
1393
|
"openai/widgetCSP": {
|
|
1394
1394
|
connect_domains: [
|
|
1395
1395
|
// always also add the base url of the server
|
|
1396
|
-
...this.
|
|
1396
|
+
...this.getServerBaseUrl() ? [this.getServerBaseUrl()] : [],
|
|
1397
1397
|
...metadata.appsSdkMetadata?.["openai/widgetCSP"]?.connect_domains || []
|
|
1398
1398
|
],
|
|
1399
1399
|
resource_domains: [
|
|
1400
1400
|
"https://*.oaistatic.com",
|
|
1401
1401
|
"https://*.oaiusercontent.com",
|
|
1402
1402
|
// always also add the base url of the server
|
|
1403
|
-
...this.
|
|
1403
|
+
...this.getServerBaseUrl() ? [this.getServerBaseUrl()] : [],
|
|
1404
1404
|
...metadata.appsSdkMetadata?.["openai/widgetCSP"]?.resource_domains || []
|
|
1405
1405
|
]
|
|
1406
1406
|
}
|
|
@@ -1565,14 +1565,14 @@ if (container && Component) {
|
|
|
1565
1565
|
"openai/widgetCSP": {
|
|
1566
1566
|
connect_domains: [
|
|
1567
1567
|
// always also add the base url of the server
|
|
1568
|
-
...this.
|
|
1568
|
+
...this.getServerBaseUrl() ? [this.getServerBaseUrl()] : [],
|
|
1569
1569
|
...metadata.appsSdkMetadata?.["openai/widgetCSP"]?.connect_domains || []
|
|
1570
1570
|
],
|
|
1571
1571
|
resource_domains: [
|
|
1572
1572
|
"https://*.oaistatic.com",
|
|
1573
1573
|
"https://*.oaiusercontent.com",
|
|
1574
1574
|
// always also add the base url of the server
|
|
1575
|
-
...this.
|
|
1575
|
+
...this.getServerBaseUrl() ? [this.getServerBaseUrl()] : [],
|
|
1576
1576
|
...metadata.appsSdkMetadata?.["openai/widgetCSP"]?.resource_domains || []
|
|
1577
1577
|
]
|
|
1578
1578
|
}
|
package/dist/src/server/index.js
CHANGED
|
@@ -1355,14 +1355,14 @@ if (container && Component) {
|
|
|
1355
1355
|
"openai/widgetCSP": {
|
|
1356
1356
|
connect_domains: [
|
|
1357
1357
|
// always also add the base url of the server
|
|
1358
|
-
...this.
|
|
1358
|
+
...this.getServerBaseUrl() ? [this.getServerBaseUrl()] : [],
|
|
1359
1359
|
...metadata.appsSdkMetadata?.["openai/widgetCSP"]?.connect_domains || []
|
|
1360
1360
|
],
|
|
1361
1361
|
resource_domains: [
|
|
1362
1362
|
"https://*.oaistatic.com",
|
|
1363
1363
|
"https://*.oaiusercontent.com",
|
|
1364
1364
|
// always also add the base url of the server
|
|
1365
|
-
...this.
|
|
1365
|
+
...this.getServerBaseUrl() ? [this.getServerBaseUrl()] : [],
|
|
1366
1366
|
...metadata.appsSdkMetadata?.["openai/widgetCSP"]?.resource_domains || []
|
|
1367
1367
|
]
|
|
1368
1368
|
}
|
|
@@ -1527,14 +1527,14 @@ if (container && Component) {
|
|
|
1527
1527
|
"openai/widgetCSP": {
|
|
1528
1528
|
connect_domains: [
|
|
1529
1529
|
// always also add the base url of the server
|
|
1530
|
-
...this.
|
|
1530
|
+
...this.getServerBaseUrl() ? [this.getServerBaseUrl()] : [],
|
|
1531
1531
|
...metadata.appsSdkMetadata?.["openai/widgetCSP"]?.connect_domains || []
|
|
1532
1532
|
],
|
|
1533
1533
|
resource_domains: [
|
|
1534
1534
|
"https://*.oaistatic.com",
|
|
1535
1535
|
"https://*.oaiusercontent.com",
|
|
1536
1536
|
// always also add the base url of the server
|
|
1537
|
-
...this.
|
|
1537
|
+
...this.getServerBaseUrl() ? [this.getServerBaseUrl()] : [],
|
|
1538
1538
|
...metadata.appsSdkMetadata?.["openai/widgetCSP"]?.resource_domains || []
|
|
1539
1539
|
]
|
|
1540
1540
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-use",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.3-canary.
|
|
4
|
+
"version": "1.3.3-canary.4",
|
|
5
5
|
"description": "Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents and Clients + MCP Servers with support for MCP-UI.",
|
|
6
6
|
"author": "mcp-use, Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"ws": "^8.18.2",
|
|
108
108
|
"zod": "^3.25.48",
|
|
109
109
|
"zod-to-json-schema": "^3.24.6",
|
|
110
|
-
"@mcp-use/cli": "2.2.3-canary.
|
|
111
|
-
"@mcp-use/inspector": "0.5.3-canary.
|
|
110
|
+
"@mcp-use/cli": "2.2.3-canary.4",
|
|
111
|
+
"@mcp-use/inspector": "0.5.3-canary.4"
|
|
112
112
|
},
|
|
113
113
|
"optionalDependencies": {
|
|
114
114
|
"@tailwindcss/vite": "^4.1.15",
|