mcp-use 1.11.0-canary.5 → 1.11.0-canary.7
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-FONZ4CWK.js → chunk-3QVRNWW7.js} +1 -1
- package/dist/{chunk-ZP4QTLQC.js → chunk-5LBXMCKC.js} +6 -6
- package/dist/{chunk-JRFJXT2T.js → chunk-CHHWJQVC.js} +1 -1
- package/dist/{chunk-6RVQ5RGR.js → chunk-M7CHBY4S.js} +1 -1
- package/dist/chunk-OD6B7KGQ.js +4711 -0
- package/dist/{chunk-454ZT2R7.js → chunk-QP7MQ2UJ.js} +2 -2
- package/dist/{chunk-WK34REFK.js → chunk-REX2YTWF.js} +1 -1
- package/dist/{chunk-BAFXO6MT.js → chunk-REYY7LSD.js} +2 -2
- package/dist/{chunk-52OY3IIW.js → chunk-WTGUJLTR.js} +6 -6
- package/dist/{chunk-FQJ6Z3U6.js → chunk-ZN3MKSKM.js} +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.js +8 -8
- package/dist/src/agents/index.cjs +1 -1
- package/dist/src/agents/index.js +6 -6
- package/dist/src/browser.cjs +1 -1
- package/dist/src/browser.js +6 -6
- package/dist/src/client/prompts.js +4 -4
- package/dist/src/react/index.cjs +5 -5
- package/dist/src/react/index.js +5 -5
- package/dist/src/server/index.cjs +5 -2
- package/dist/src/server/index.js +9 -6
- package/dist/src/server/widgets/mount-widgets-dev.d.ts.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/{tool-execution-helpers-3RAOCSJ4.js → tool-execution-helpers-PAFGGAGL.js} +2 -2
- package/package.json +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseMCPClient,
|
|
3
3
|
HttpConnector
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QP7MQ2UJ.js";
|
|
5
5
|
import {
|
|
6
6
|
Tel,
|
|
7
7
|
getPackageVersion
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3QVRNWW7.js";
|
|
9
9
|
import {
|
|
10
10
|
logger
|
|
11
11
|
} from "./chunk-FRUZDWXH.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BrowserMCPClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-REYY7LSD.js";
|
|
4
4
|
import {
|
|
5
5
|
BrowserOAuthClientProvider,
|
|
6
6
|
sanitizeUrl
|
|
7
7
|
} from "./chunk-J75I2C26.js";
|
|
8
8
|
import {
|
|
9
9
|
Tel
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3QVRNWW7.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-3GQAWCBQ.js";
|
|
@@ -1098,7 +1098,7 @@ function WidgetControls({
|
|
|
1098
1098
|
);
|
|
1099
1099
|
const isFullscreen = displayMode === "fullscreen" && isAvailable;
|
|
1100
1100
|
const isPip = displayMode === "pip" && isAvailable;
|
|
1101
|
-
const
|
|
1101
|
+
const isInInspector = typeof window !== "undefined" && window.location.pathname.includes("/inspector/api/");
|
|
1102
1102
|
useEffect4(() => {
|
|
1103
1103
|
const timeoutId = setTimeout(() => {
|
|
1104
1104
|
if (typeof window !== "undefined" && window.openai) {
|
|
@@ -1430,7 +1430,7 @@ function WidgetControls({
|
|
|
1430
1430
|
className: getPositionClasses().join(" "),
|
|
1431
1431
|
style: getPositionOffsetStyles()
|
|
1432
1432
|
},
|
|
1433
|
-
!
|
|
1433
|
+
!isInInspector && /* @__PURE__ */ React4.createElement(React4.Fragment, null, !isFullscreen && !isPip && /* @__PURE__ */ React4.createElement(React4.Fragment, null, (viewControls === true || viewControls === "fullscreen") && /* @__PURE__ */ React4.createElement(IconButton, { onClick: handleFullscreen, label: "Fullscreen" }, /* @__PURE__ */ React4.createElement("path", { d: "M15 3h6v6" }), /* @__PURE__ */ React4.createElement("path", { d: "m21 3-7 7" }), /* @__PURE__ */ React4.createElement("path", { d: "m3 21 7-7" }), /* @__PURE__ */ React4.createElement("path", { d: "M9 21H3v-6" })), (viewControls === true || viewControls === "pip") && /* @__PURE__ */ React4.createElement(IconButton, { onClick: handlePip, label: "Picture in Picture" }, /* @__PURE__ */ React4.createElement("path", { d: "M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4" }), /* @__PURE__ */ React4.createElement("rect", { width: "10", height: "7", x: "12", y: "13", rx: "2" }))), enableDebugger && /* @__PURE__ */ React4.createElement(IconButton, { onClick: handleToggleOverlay, label: "Debug Info" }, /* @__PURE__ */ React4.createElement("path", { d: "M12 20v-9" }), /* @__PURE__ */ React4.createElement("path", { d: "M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z" }), /* @__PURE__ */ React4.createElement("path", { d: "M14.12 3.88 16 2" }), /* @__PURE__ */ React4.createElement("path", { d: "M21 21a4 4 0 0 0-3.81-4" }), /* @__PURE__ */ React4.createElement("path", { d: "M21 5a4 4 0 0 1-3.55 3.97" }), /* @__PURE__ */ React4.createElement("path", { d: "M22 13h-4" }), /* @__PURE__ */ React4.createElement("path", { d: "M3 21a4 4 0 0 1 3.81-4" }), /* @__PURE__ */ React4.createElement("path", { d: "M3 5a4 4 0 0 0 3.55 3.97" }), /* @__PURE__ */ React4.createElement("path", { d: "M6 13H2" }), /* @__PURE__ */ React4.createElement("path", { d: "m8 2 1.88 1.88" }), /* @__PURE__ */ React4.createElement("path", { d: "M9 7.13V6a3 3 0 1 1 6 0v1.13" })))
|
|
1434
1434
|
),
|
|
1435
1435
|
children
|
|
1436
1436
|
), isOverlayOpen && enableDebugger && /* @__PURE__ */ React4.createElement(
|
|
@@ -1588,7 +1588,7 @@ function McpUseProvider({
|
|
|
1588
1588
|
let mounted = true;
|
|
1589
1589
|
(async () => {
|
|
1590
1590
|
try {
|
|
1591
|
-
const routerModule = await import("react-router
|
|
1591
|
+
const routerModule = await import("react-router");
|
|
1592
1592
|
if (mounted) {
|
|
1593
1593
|
setBrowserRouter(() => routerModule.BrowserRouter);
|
|
1594
1594
|
setIsRouterLoading(false);
|
|
@@ -1597,7 +1597,7 @@ function McpUseProvider({
|
|
|
1597
1597
|
if (mounted) {
|
|
1598
1598
|
setRouterError(
|
|
1599
1599
|
new Error(
|
|
1600
|
-
"\u274C react-router
|
|
1600
|
+
"\u274C react-router not installed!\n\nTo use MCP widgets with McpUseProvider, you need to install:\n\n npm install react-router\n # or\n pnpm add react-router\n\nThis dependency is automatically included in projects created with 'create-mcp-use-app'."
|
|
1601
1601
|
)
|
|
1602
1602
|
);
|
|
1603
1603
|
setIsRouterLoading(false);
|
package/dist/index.cjs
CHANGED
|
@@ -2791,7 +2791,7 @@ __name(generateUUID, "generateUUID");
|
|
|
2791
2791
|
init_logging();
|
|
2792
2792
|
|
|
2793
2793
|
// src/version.ts
|
|
2794
|
-
var VERSION = "1.11.0-canary.
|
|
2794
|
+
var VERSION = "1.11.0-canary.7";
|
|
2795
2795
|
function getPackageVersion() {
|
|
2796
2796
|
return VERSION;
|
|
2797
2797
|
}
|
|
@@ -10387,7 +10387,7 @@ function WidgetControls({
|
|
|
10387
10387
|
);
|
|
10388
10388
|
const isFullscreen = displayMode === "fullscreen" && isAvailable;
|
|
10389
10389
|
const isPip = displayMode === "pip" && isAvailable;
|
|
10390
|
-
const
|
|
10390
|
+
const isInInspector = typeof window !== "undefined" && window.location.pathname.includes("/inspector/api/");
|
|
10391
10391
|
(0, import_react6.useEffect)(() => {
|
|
10392
10392
|
const timeoutId = setTimeout(() => {
|
|
10393
10393
|
if (typeof window !== "undefined" && window.openai) {
|
|
@@ -10719,7 +10719,7 @@ function WidgetControls({
|
|
|
10719
10719
|
className: getPositionClasses().join(" "),
|
|
10720
10720
|
style: getPositionOffsetStyles()
|
|
10721
10721
|
},
|
|
10722
|
-
!
|
|
10722
|
+
!isInInspector && /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, !isFullscreen && !isPip && /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, (viewControls === true || viewControls === "fullscreen") && /* @__PURE__ */ import_react6.default.createElement(IconButton, { onClick: handleFullscreen, label: "Fullscreen" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M15 3h6v6" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "m21 3-7 7" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "m3 21 7-7" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M9 21H3v-6" })), (viewControls === true || viewControls === "pip") && /* @__PURE__ */ import_react6.default.createElement(IconButton, { onClick: handlePip, label: "Picture in Picture" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4" }), /* @__PURE__ */ import_react6.default.createElement("rect", { width: "10", height: "7", x: "12", y: "13", rx: "2" }))), enableDebugger && /* @__PURE__ */ import_react6.default.createElement(IconButton, { onClick: handleToggleOverlay, label: "Debug Info" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M12 20v-9" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M14.12 3.88 16 2" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M21 21a4 4 0 0 0-3.81-4" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M21 5a4 4 0 0 1-3.55 3.97" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M22 13h-4" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M3 21a4 4 0 0 1 3.81-4" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M3 5a4 4 0 0 0 3.55 3.97" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M6 13H2" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "m8 2 1.88 1.88" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M9 7.13V6a3 3 0 1 1 6 0v1.13" })))
|
|
10723
10723
|
),
|
|
10724
10724
|
children
|
|
10725
10725
|
), isOverlayOpen && enableDebugger && /* @__PURE__ */ import_react6.default.createElement(
|
|
@@ -10871,7 +10871,7 @@ function McpUseProvider({
|
|
|
10871
10871
|
let mounted = true;
|
|
10872
10872
|
(async () => {
|
|
10873
10873
|
try {
|
|
10874
|
-
const routerModule = await import("react-router
|
|
10874
|
+
const routerModule = await import("react-router");
|
|
10875
10875
|
if (mounted) {
|
|
10876
10876
|
setBrowserRouter(() => routerModule.BrowserRouter);
|
|
10877
10877
|
setIsRouterLoading(false);
|
|
@@ -10880,7 +10880,7 @@ function McpUseProvider({
|
|
|
10880
10880
|
if (mounted) {
|
|
10881
10881
|
setRouterError(
|
|
10882
10882
|
new Error(
|
|
10883
|
-
"\u274C react-router
|
|
10883
|
+
"\u274C react-router not installed!\n\nTo use MCP widgets with McpUseProvider, you need to install:\n\n npm install react-router\n # or\n pnpm add react-router\n\nThis dependency is automatically included in projects created with 'create-mcp-use-app'."
|
|
10884
10884
|
)
|
|
10885
10885
|
);
|
|
10886
10886
|
setIsRouterLoading(false);
|
package/dist/index.js
CHANGED
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
isValidLLMString,
|
|
28
28
|
loadConfigFile,
|
|
29
29
|
parseLLMString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OD6B7KGQ.js";
|
|
31
31
|
import "./chunk-JRGQRPTN.js";
|
|
32
32
|
import "./chunk-JQKKMUCT.js";
|
|
33
33
|
import {
|
|
34
34
|
PROMPTS
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-M7CHBY4S.js";
|
|
36
|
+
import "./chunk-REX2YTWF.js";
|
|
37
37
|
import {
|
|
38
38
|
ErrorBoundary,
|
|
39
39
|
Image,
|
|
@@ -45,19 +45,19 @@ import {
|
|
|
45
45
|
useWidgetProps,
|
|
46
46
|
useWidgetState,
|
|
47
47
|
useWidgetTheme
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-WTGUJLTR.js";
|
|
49
|
+
import "./chunk-REYY7LSD.js";
|
|
50
50
|
import {
|
|
51
51
|
HttpConnector,
|
|
52
52
|
MCPSession
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-QP7MQ2UJ.js";
|
|
54
54
|
import {
|
|
55
55
|
BrowserOAuthClientProvider,
|
|
56
56
|
onMcpAuthorization
|
|
57
57
|
} from "./chunk-J75I2C26.js";
|
|
58
58
|
import {
|
|
59
59
|
BaseConnector
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-CHHWJQVC.js";
|
|
61
61
|
import {
|
|
62
62
|
ElicitationDeclinedError,
|
|
63
63
|
ElicitationTimeoutError,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
VERSION,
|
|
70
70
|
getPackageVersion,
|
|
71
71
|
setTelemetrySource
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-3QVRNWW7.js";
|
|
73
73
|
import {
|
|
74
74
|
Logger,
|
|
75
75
|
logger
|
package/dist/src/agents/index.js
CHANGED
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
MCPAgent,
|
|
6
6
|
RemoteAgent
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-OD6B7KGQ.js";
|
|
8
8
|
import "../../chunk-JRGQRPTN.js";
|
|
9
9
|
import {
|
|
10
10
|
PROMPTS
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-M7CHBY4S.js";
|
|
12
|
+
import "../../chunk-REX2YTWF.js";
|
|
13
|
+
import "../../chunk-QP7MQ2UJ.js";
|
|
14
|
+
import "../../chunk-CHHWJQVC.js";
|
|
15
|
+
import "../../chunk-3QVRNWW7.js";
|
|
16
16
|
import "../../chunk-FRUZDWXH.js";
|
|
17
17
|
import "../../chunk-3GQAWCBQ.js";
|
|
18
18
|
export {
|
package/dist/src/browser.cjs
CHANGED
package/dist/src/browser.js
CHANGED
|
@@ -13,30 +13,30 @@ import {
|
|
|
13
13
|
getSupportedProviders,
|
|
14
14
|
isValidLLMString,
|
|
15
15
|
parseLLMString
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-OD6B7KGQ.js";
|
|
17
17
|
import "../chunk-JRGQRPTN.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-REX2YTWF.js";
|
|
19
19
|
import {
|
|
20
20
|
BrowserMCPClient
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-REYY7LSD.js";
|
|
22
22
|
import {
|
|
23
23
|
HttpConnector,
|
|
24
24
|
MCPSession
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-QP7MQ2UJ.js";
|
|
26
26
|
import {
|
|
27
27
|
BrowserOAuthClientProvider,
|
|
28
28
|
onMcpAuthorization
|
|
29
29
|
} from "../chunk-J75I2C26.js";
|
|
30
30
|
import {
|
|
31
31
|
BaseConnector
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-CHHWJQVC.js";
|
|
33
33
|
import {
|
|
34
34
|
Tel,
|
|
35
35
|
Telemetry,
|
|
36
36
|
VERSION,
|
|
37
37
|
getPackageVersion,
|
|
38
38
|
setTelemetrySource
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-3QVRNWW7.js";
|
|
40
40
|
import {
|
|
41
41
|
Logger,
|
|
42
42
|
logger
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PROMPTS
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-M7CHBY4S.js";
|
|
4
|
+
import "../../chunk-REX2YTWF.js";
|
|
5
|
+
import "../../chunk-CHHWJQVC.js";
|
|
6
|
+
import "../../chunk-3QVRNWW7.js";
|
|
7
7
|
import "../../chunk-FRUZDWXH.js";
|
|
8
8
|
import "../../chunk-3GQAWCBQ.js";
|
|
9
9
|
export {
|
package/dist/src/react/index.cjs
CHANGED
|
@@ -876,7 +876,7 @@ function generateUUID() {
|
|
|
876
876
|
__name(generateUUID, "generateUUID");
|
|
877
877
|
|
|
878
878
|
// src/version.ts
|
|
879
|
-
var VERSION = "1.11.0-canary.
|
|
879
|
+
var VERSION = "1.11.0-canary.7";
|
|
880
880
|
function getPackageVersion() {
|
|
881
881
|
return VERSION;
|
|
882
882
|
}
|
|
@@ -4220,7 +4220,7 @@ function WidgetControls({
|
|
|
4220
4220
|
);
|
|
4221
4221
|
const isFullscreen = displayMode === "fullscreen" && isAvailable;
|
|
4222
4222
|
const isPip = displayMode === "pip" && isAvailable;
|
|
4223
|
-
const
|
|
4223
|
+
const isInInspector = typeof window !== "undefined" && window.location.pathname.includes("/inspector/api/");
|
|
4224
4224
|
(0, import_react6.useEffect)(() => {
|
|
4225
4225
|
const timeoutId = setTimeout(() => {
|
|
4226
4226
|
if (typeof window !== "undefined" && window.openai) {
|
|
@@ -4552,7 +4552,7 @@ function WidgetControls({
|
|
|
4552
4552
|
className: getPositionClasses().join(" "),
|
|
4553
4553
|
style: getPositionOffsetStyles()
|
|
4554
4554
|
},
|
|
4555
|
-
!
|
|
4555
|
+
!isInInspector && /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, !isFullscreen && !isPip && /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, (viewControls === true || viewControls === "fullscreen") && /* @__PURE__ */ import_react6.default.createElement(IconButton, { onClick: handleFullscreen, label: "Fullscreen" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M15 3h6v6" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "m21 3-7 7" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "m3 21 7-7" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M9 21H3v-6" })), (viewControls === true || viewControls === "pip") && /* @__PURE__ */ import_react6.default.createElement(IconButton, { onClick: handlePip, label: "Picture in Picture" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4" }), /* @__PURE__ */ import_react6.default.createElement("rect", { width: "10", height: "7", x: "12", y: "13", rx: "2" }))), enableDebugger && /* @__PURE__ */ import_react6.default.createElement(IconButton, { onClick: handleToggleOverlay, label: "Debug Info" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M12 20v-9" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M14.12 3.88 16 2" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M21 21a4 4 0 0 0-3.81-4" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M21 5a4 4 0 0 1-3.55 3.97" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M22 13h-4" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M3 21a4 4 0 0 1 3.81-4" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M3 5a4 4 0 0 0 3.55 3.97" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M6 13H2" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "m8 2 1.88 1.88" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M9 7.13V6a3 3 0 1 1 6 0v1.13" })))
|
|
4556
4556
|
),
|
|
4557
4557
|
children
|
|
4558
4558
|
), isOverlayOpen && enableDebugger && /* @__PURE__ */ import_react6.default.createElement(
|
|
@@ -4704,7 +4704,7 @@ function McpUseProvider({
|
|
|
4704
4704
|
let mounted = true;
|
|
4705
4705
|
(async () => {
|
|
4706
4706
|
try {
|
|
4707
|
-
const routerModule = await import("react-router
|
|
4707
|
+
const routerModule = await import("react-router");
|
|
4708
4708
|
if (mounted) {
|
|
4709
4709
|
setBrowserRouter(() => routerModule.BrowserRouter);
|
|
4710
4710
|
setIsRouterLoading(false);
|
|
@@ -4713,7 +4713,7 @@ function McpUseProvider({
|
|
|
4713
4713
|
if (mounted) {
|
|
4714
4714
|
setRouterError(
|
|
4715
4715
|
new Error(
|
|
4716
|
-
"\u274C react-router
|
|
4716
|
+
"\u274C react-router not installed!\n\nTo use MCP widgets with McpUseProvider, you need to install:\n\n npm install react-router\n # or\n pnpm add react-router\n\nThis dependency is automatically included in projects created with 'create-mcp-use-app'."
|
|
4717
4717
|
)
|
|
4718
4718
|
);
|
|
4719
4719
|
setIsRouterLoading(false);
|
package/dist/src/react/index.js
CHANGED
|
@@ -9,18 +9,18 @@ import {
|
|
|
9
9
|
useWidgetProps,
|
|
10
10
|
useWidgetState,
|
|
11
11
|
useWidgetTheme
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-WTGUJLTR.js";
|
|
13
|
+
import "../../chunk-REYY7LSD.js";
|
|
14
|
+
import "../../chunk-QP7MQ2UJ.js";
|
|
15
15
|
import {
|
|
16
16
|
onMcpAuthorization
|
|
17
17
|
} from "../../chunk-J75I2C26.js";
|
|
18
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-CHHWJQVC.js";
|
|
19
19
|
import {
|
|
20
20
|
Tel,
|
|
21
21
|
Telemetry,
|
|
22
22
|
setTelemetrySource
|
|
23
|
-
} from "../../chunk-
|
|
23
|
+
} from "../../chunk-3QVRNWW7.js";
|
|
24
24
|
import "../../chunk-FRUZDWXH.js";
|
|
25
25
|
import "../../chunk-3GQAWCBQ.js";
|
|
26
26
|
export {
|
|
@@ -761,7 +761,7 @@ var VERSION;
|
|
|
761
761
|
var init_version = __esm({
|
|
762
762
|
"src/version.ts"() {
|
|
763
763
|
"use strict";
|
|
764
|
-
VERSION = "1.11.0-canary.
|
|
764
|
+
VERSION = "1.11.0-canary.7";
|
|
765
765
|
__name(getPackageVersion, "getPackageVersion");
|
|
766
766
|
}
|
|
767
767
|
});
|
|
@@ -3335,10 +3335,13 @@ async function mountWidgetsDev(app, serverConfig, registerWidget, options) {
|
|
|
3335
3335
|
await fs.mkdir(widgetTempDir, { recursive: true });
|
|
3336
3336
|
const resourcesPath = pathHelpers.join(getCwd(), resourcesDir);
|
|
3337
3337
|
const relativeResourcesPath = pathHelpers.relative(widgetTempDir, resourcesPath).replace(/\\/g, "/");
|
|
3338
|
+
const mcpUsePath = pathHelpers.join(getCwd(), "node_modules", "mcp-use");
|
|
3339
|
+
const relativeMcpUsePath = pathHelpers.relative(widgetTempDir, mcpUsePath).replace(/\\/g, "/");
|
|
3338
3340
|
const cssContent = `@import "tailwindcss";
|
|
3339
3341
|
|
|
3340
|
-
/* Configure Tailwind to scan the resources directory */
|
|
3342
|
+
/* Configure Tailwind to scan the resources directory and mcp-use package */
|
|
3341
3343
|
@source "${relativeResourcesPath}";
|
|
3344
|
+
@source "${relativeMcpUsePath}/**/*.{ts,tsx,js,jsx}";
|
|
3342
3345
|
`;
|
|
3343
3346
|
await fs.writeFile(
|
|
3344
3347
|
pathHelpers.join(widgetTempDir, "styles.css"),
|
package/dist/src/server/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createEnhancedContext,
|
|
8
8
|
findSessionContext,
|
|
9
9
|
isValidLogLevel
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-ZN3MKSKM.js";
|
|
11
11
|
import {
|
|
12
12
|
convertToolResultToResourceResult
|
|
13
13
|
} from "../../chunk-362PI25Z.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
getPackageVersion,
|
|
26
26
|
isDeno,
|
|
27
27
|
pathHelpers
|
|
28
|
-
} from "../../chunk-
|
|
28
|
+
} from "../../chunk-3QVRNWW7.js";
|
|
29
29
|
import "../../chunk-FRUZDWXH.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
@@ -1213,10 +1213,13 @@ async function mountWidgetsDev(app, serverConfig, registerWidget, options) {
|
|
|
1213
1213
|
await fs.mkdir(widgetTempDir, { recursive: true });
|
|
1214
1214
|
const resourcesPath = pathHelpers.join(getCwd(), resourcesDir);
|
|
1215
1215
|
const relativeResourcesPath = pathHelpers.relative(widgetTempDir, resourcesPath).replace(/\\/g, "/");
|
|
1216
|
+
const mcpUsePath = pathHelpers.join(getCwd(), "node_modules", "mcp-use");
|
|
1217
|
+
const relativeMcpUsePath = pathHelpers.relative(widgetTempDir, mcpUsePath).replace(/\\/g, "/");
|
|
1216
1218
|
const cssContent = `@import "tailwindcss";
|
|
1217
1219
|
|
|
1218
|
-
/* Configure Tailwind to scan the resources directory */
|
|
1220
|
+
/* Configure Tailwind to scan the resources directory and mcp-use package */
|
|
1219
1221
|
@source "${relativeResourcesPath}";
|
|
1222
|
+
@source "${relativeMcpUsePath}/**/*.{ts,tsx,js,jsx}";
|
|
1220
1223
|
`;
|
|
1221
1224
|
await fs.writeFile(
|
|
1222
1225
|
pathHelpers.join(widgetTempDir, "styles.css"),
|
|
@@ -2091,7 +2094,7 @@ function registerResource(resourceDefinition, callback) {
|
|
|
2091
2094
|
const explicitMimeType = resourceDefinition.mimeType;
|
|
2092
2095
|
const wrappedCallback = /* @__PURE__ */ __name(async () => {
|
|
2093
2096
|
const { getRequestContext: getRequestContext2, runWithContext: runWithContext2 } = await import("../../context-storage-NA4MHWOZ.js");
|
|
2094
|
-
const { findSessionContext: findSessionContext2 } = await import("../../tool-execution-helpers-
|
|
2097
|
+
const { findSessionContext: findSessionContext2 } = await import("../../tool-execution-helpers-PAFGGAGL.js");
|
|
2095
2098
|
const initialRequestContext = getRequestContext2();
|
|
2096
2099
|
const sessions = this.sessions || /* @__PURE__ */ new Map();
|
|
2097
2100
|
const { requestContext } = findSessionContext2(
|
|
@@ -2169,7 +2172,7 @@ function registerResourceTemplate(resourceTemplateDefinition, callback) {
|
|
|
2169
2172
|
async (uri) => {
|
|
2170
2173
|
const params = this.parseTemplateUri(uriTemplate, uri.toString());
|
|
2171
2174
|
const { getRequestContext: getRequestContext2, runWithContext: runWithContext2 } = await import("../../context-storage-NA4MHWOZ.js");
|
|
2172
|
-
const { findSessionContext: findSessionContext2 } = await import("../../tool-execution-helpers-
|
|
2175
|
+
const { findSessionContext: findSessionContext2 } = await import("../../tool-execution-helpers-PAFGGAGL.js");
|
|
2173
2176
|
const initialRequestContext = getRequestContext2();
|
|
2174
2177
|
const sessions = this.sessions || /* @__PURE__ */ new Map();
|
|
2175
2178
|
const { requestContext } = findSessionContext2(
|
|
@@ -2224,7 +2227,7 @@ function registerPrompt(promptDefinition, callback) {
|
|
|
2224
2227
|
}
|
|
2225
2228
|
const wrappedCallback = /* @__PURE__ */ __name(async (params, extra) => {
|
|
2226
2229
|
const { getRequestContext: getRequestContext2, runWithContext: runWithContext2 } = await import("../../context-storage-NA4MHWOZ.js");
|
|
2227
|
-
const { findSessionContext: findSessionContext2 } = await import("../../tool-execution-helpers-
|
|
2230
|
+
const { findSessionContext: findSessionContext2 } = await import("../../tool-execution-helpers-PAFGGAGL.js");
|
|
2228
2231
|
const initialRequestContext = getRequestContext2();
|
|
2229
2232
|
const sessions = this.sessions || /* @__PURE__ */ new Map();
|
|
2230
2233
|
const { requestContext } = findSessionContext2(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mount-widgets-dev.d.ts","sourceRoot":"","sources":["../../../../src/server/widgets/mount-widgets-dev.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,IAAI,QAAQ,EAAiB,MAAM,MAAM,CAAC;AAQ5D,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAI3B;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,CAAC;AAEzD;;;;;;;;;;;;GAYG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,QAAQ,EACb,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,sBAAsB,EACtC,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"mount-widgets-dev.d.ts","sourceRoot":"","sources":["../../../../src/server/widgets/mount-widgets-dev.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,IAAI,QAAQ,EAAiB,MAAM,MAAM,CAAC;AAQ5D,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAI3B;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,CAAC;AAEzD;;;;;;;;;;;;GAYG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,QAAQ,EACb,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,sBAAsB,EACtC,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,IAAI,CAAC,CA4af"}
|
package/dist/src/version.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
sendProgressNotification,
|
|
11
11
|
shouldLogMessage,
|
|
12
12
|
withTimeout
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZN3MKSKM.js";
|
|
14
14
|
import "./chunk-KUEVOU4M.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-3QVRNWW7.js";
|
|
16
16
|
import "./chunk-FRUZDWXH.js";
|
|
17
17
|
import "./chunk-3GQAWCBQ.js";
|
|
18
18
|
export {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-use",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.11.0-canary.
|
|
4
|
+
"version": "1.11.0-canary.7",
|
|
5
5
|
"description": "Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.",
|
|
6
6
|
"author": "mcp-use, Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"langfuse": "^3.38.6",
|
|
87
87
|
"langfuse-langchain": "^3.38.6",
|
|
88
88
|
"react": "^18.0.0 || ^19.0.0",
|
|
89
|
-
"react-router
|
|
89
|
+
"react-router": "^7.0.0"
|
|
90
90
|
},
|
|
91
91
|
"peerDependenciesMeta": {
|
|
92
92
|
"@e2b/code-interpreter": {
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
"posthog-node": "^5.14.1",
|
|
122
122
|
"ws": "^8.18.3",
|
|
123
123
|
"zod": "^4.1.13",
|
|
124
|
-
"@mcp-use/cli": "2.6.0-canary.
|
|
125
|
-
"@mcp-use/inspector": "0.13.0-canary.
|
|
124
|
+
"@mcp-use/cli": "2.6.0-canary.7",
|
|
125
|
+
"@mcp-use/inspector": "0.13.0-canary.7"
|
|
126
126
|
},
|
|
127
127
|
"optionalDependencies": {
|
|
128
128
|
"chalk": "^5.6.2",
|