mcp-use 1.7.0-canary.1 → 1.7.0-canary.3
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-PE7UMCVO.js → chunk-3R5PDYIN.js} +27 -1
- package/dist/{chunk-XN2PU4PS.js → chunk-BBEY6HHN.js} +59 -7
- package/dist/{chunk-YURRUCIM.js → chunk-CPG2WZUL.js} +9 -11
- package/dist/{chunk-R5DJJ4IV.js → chunk-F4UHAA5L.js} +3 -91
- package/dist/chunk-MTHLLDCX.js +97 -0
- package/dist/{chunk-QSLJXXMG.js → chunk-PSO6HYXH.js} +4 -4
- package/dist/{chunk-GVVPUU5K.js → chunk-S6K5QZBJ.js} +739 -29
- package/dist/{display-YIYC6WJE.js → display-A5IEINAP.js} +79 -17
- package/dist/index.cjs +952 -107
- package/dist/index.js +6 -5
- package/dist/{langfuse-C4HKZ3NL.js → langfuse-N5Y5BSXK.js} +1 -1
- package/dist/{oauth-CNGBFOZW.js → oauth-U4NNKN4B.js} +2 -1
- package/dist/src/agents/display.d.ts.map +1 -1
- package/dist/src/agents/index.cjs +854 -78
- package/dist/src/agents/index.js +3 -2
- package/dist/src/auth/index.cjs +30 -5
- package/dist/src/auth/index.js +1 -1
- package/dist/src/browser.cjs +888 -90
- package/dist/src/browser.js +5 -4
- package/dist/src/connectors/base.d.ts +53 -391
- package/dist/src/connectors/base.d.ts.map +1 -1
- package/dist/src/managers/server_manager.d.ts.map +1 -1
- package/dist/src/managers/tools/acquire_active_mcp_server.d.ts +2 -2
- package/dist/src/managers/tools/acquire_active_mcp_server.d.ts.map +1 -1
- package/dist/src/managers/tools/add_server_from_config.d.ts +1 -7
- package/dist/src/managers/tools/add_server_from_config.d.ts.map +1 -1
- package/dist/src/managers/tools/connect_mcp_server.d.ts +2 -10
- package/dist/src/managers/tools/connect_mcp_server.d.ts.map +1 -1
- package/dist/src/managers/tools/list_mcp_servers.d.ts +2 -2
- package/dist/src/managers/tools/list_mcp_servers.d.ts.map +1 -1
- package/dist/src/managers/tools/release_mcp_server_connection.d.ts +2 -2
- package/dist/src/managers/tools/release_mcp_server_connection.d.ts.map +1 -1
- package/dist/src/observability/langfuse.d.ts +4 -0
- package/dist/src/observability/langfuse.d.ts.map +1 -1
- package/dist/src/react/McpUseProvider.d.ts.map +1 -1
- package/dist/src/react/index.cjs +86 -12
- package/dist/src/react/index.js +4 -3
- package/dist/src/server/connect-adapter.d.ts.map +1 -1
- package/dist/src/server/index.cjs +28 -17
- package/dist/src/server/index.js +38 -25
- package/dist/src/server/mcp-server.d.ts.map +1 -1
- package/dist/src/utils/json-schema-to-zod/JSONSchemaToZod.d.ts +270 -0
- package/dist/src/utils/json-schema-to-zod/JSONSchemaToZod.d.ts.map +1 -0
- package/dist/src/utils/json-schema-to-zod/Type.d.ts +24 -0
- package/dist/src/utils/json-schema-to-zod/Type.d.ts.map +1 -0
- package/dist/src/utils/json-schema-to-zod/index.d.ts +3 -0
- package/dist/src/utils/json-schema-to-zod/index.d.ts.map +1 -0
- package/dist/src/utils/url-sanitize.d.ts +17 -0
- package/dist/src/utils/url-sanitize.d.ts.map +1 -0
- package/dist/tsup.config.d.ts.map +1 -1
- package/package.json +20 -37
|
@@ -4,21 +4,13 @@ import { z } from "zod";
|
|
|
4
4
|
import { MCPServerTool } from "./base.js";
|
|
5
5
|
declare const ConnectMCPServerSchema: z.ZodObject<{
|
|
6
6
|
serverName: z.ZodString;
|
|
7
|
-
},
|
|
8
|
-
serverName: string;
|
|
9
|
-
}, {
|
|
10
|
-
serverName: string;
|
|
11
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
12
8
|
export declare class ConnectMCPServerTool extends MCPServerTool<typeof ConnectMCPServerSchema> {
|
|
13
9
|
name: string;
|
|
14
10
|
description: string;
|
|
15
11
|
schema: z.ZodObject<{
|
|
16
12
|
serverName: z.ZodString;
|
|
17
|
-
},
|
|
18
|
-
serverName: string;
|
|
19
|
-
}, {
|
|
20
|
-
serverName: string;
|
|
21
|
-
}>;
|
|
13
|
+
}, z.core.$strip>;
|
|
22
14
|
constructor(manager: IServerManager);
|
|
23
15
|
_call({ serverName }: SchemaOutputT<typeof ConnectMCPServerSchema>): Promise<string>;
|
|
24
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect_mcp_server.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/connect_mcp_server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,QAAA,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"connect_mcp_server.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/connect_mcp_server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,QAAA,MAAM,sBAAsB;;iBAE1B,CAAC;AAEH,qBAAa,oBAAqB,SAAQ,aAAa,CACrD,OAAO,sBAAsB,CAC9B;IACU,IAAI,SAA2B;IAC/B,WAAW,SAC6H;IACxI,MAAM;;sBAA0B;gBAE7B,OAAO,EAAE,cAAc;IAI7B,KAAK,CAAC,EAAE,UAAU,EAAE,EAAE,aAAa,CAAC,OAAO,sBAAsB,CAAC;CAuCzE"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IServerManager } from "../types.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { MCPServerTool } from "./base.js";
|
|
4
|
-
declare const EnumerateServersSchema: z.ZodObject<{},
|
|
4
|
+
declare const EnumerateServersSchema: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
export declare class ListMCPServersTool extends MCPServerTool<typeof EnumerateServersSchema> {
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|
|
8
|
-
schema: z.ZodObject<{},
|
|
8
|
+
schema: z.ZodObject<{}, z.core.$strip>;
|
|
9
9
|
constructor(manager: IServerManager);
|
|
10
10
|
_call(): Promise<string>;
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_mcp_servers.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/list_mcp_servers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,QAAA,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"list_mcp_servers.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/list_mcp_servers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,QAAA,MAAM,sBAAsB,gCAAe,CAAC;AAE5C,qBAAa,kBAAmB,SAAQ,aAAa,CACnD,OAAO,sBAAsB,CAC9B;IACU,IAAI,SAAsB;IAC1B,WAAW,SAAkN;IAC7N,MAAM,iCAA0B;gBAE7B,OAAO,EAAE,cAAc;IAI7B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CA2B/B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IServerManager } from "../types.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { MCPServerTool } from "./base.js";
|
|
4
|
-
declare const ReleaseConnectionSchema: z.ZodObject<{},
|
|
4
|
+
declare const ReleaseConnectionSchema: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
export declare class ReleaseMCPServerConnectionTool extends MCPServerTool<typeof ReleaseConnectionSchema> {
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|
|
8
|
-
schema: z.ZodObject<{},
|
|
8
|
+
schema: z.ZodObject<{}, z.core.$strip>;
|
|
9
9
|
constructor(manager: IServerManager);
|
|
10
10
|
_call(): Promise<string>;
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release_mcp_server_connection.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/release_mcp_server_connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,QAAA,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"release_mcp_server_connection.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/release_mcp_server_connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,QAAA,MAAM,uBAAuB,gCAAe,CAAC;AAE7C,qBAAa,8BAA+B,SAAQ,aAAa,CAC/D,OAAO,uBAAuB,CAC/B;IACU,IAAI,SAAgC;IACpC,WAAW,SACyD;IACpE,MAAM,iCAA2B;gBAE9B,OAAO,EAAE,cAAc;IAI7B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAQ/B"}
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This module provides automatic instrumentation and callback handler
|
|
5
5
|
* for Langfuse observability platform.
|
|
6
|
+
*
|
|
7
|
+
* Note: This module expects environment variables to be loaded before import.
|
|
8
|
+
* Users should load their environment variables using their preferred method
|
|
9
|
+
* (e.g., dotenv, direct process.env assignment, or system environment).
|
|
6
10
|
*/
|
|
7
11
|
import type { BaseCallbackHandler } from "@langchain/core/callbacks/base";
|
|
8
12
|
declare function initializeLangfuse(agentId?: string, metadata?: Record<string, any>, metadataProvider?: () => Record<string, any>, tagsProvider?: () => string[]): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"langfuse.d.ts","sourceRoot":"","sources":["../../../src/observability/langfuse.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"langfuse.d.ts","sourceRoot":"","sources":["../../../src/observability/langfuse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAc1E,iBAAe,kBAAkB,CAC/B,OAAO,CAAC,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,gBAAgB,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5C,YAAY,CAAC,EAAE,MAAM,MAAM,EAAE,GAC5B,OAAO,CAAC,IAAI,CAAC,CAqRf;AAoBD,eAAO,MAAM,eAAe,kCAA8B,CAAC;AAC3D,eAAO,MAAM,cAAc,WAA6B,CAAC;AACzD,eAAO,MAAM,mBAAmB,4BAAkC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpUseProvider.d.ts","sourceRoot":"","sources":["../../../src/react/McpUseProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"McpUseProvider.d.ts","sourceRoot":"","sources":["../../../src/react/McpUseProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AA4Cf,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,YAAY,CAAC;IAC9C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,QAAQ,EAAE,cAAsB,EAChC,YAAoB,EACpB,QAAgB,GACjB,EAAE,mBAAmB,qBA0LrB"}
|
package/dist/src/react/index.cjs
CHANGED
|
@@ -47,7 +47,32 @@ module.exports = __toCommonJS(react_exports);
|
|
|
47
47
|
|
|
48
48
|
// src/react/useMcp.ts
|
|
49
49
|
var import_react = require("react");
|
|
50
|
-
|
|
50
|
+
|
|
51
|
+
// src/utils/url-sanitize.ts
|
|
52
|
+
function sanitizeUrl(raw) {
|
|
53
|
+
const abort = /* @__PURE__ */ __name(() => {
|
|
54
|
+
throw new Error(`Invalid url to pass to open(): ${raw}`);
|
|
55
|
+
}, "abort");
|
|
56
|
+
let url;
|
|
57
|
+
try {
|
|
58
|
+
url = new URL(raw);
|
|
59
|
+
} catch (_) {
|
|
60
|
+
abort();
|
|
61
|
+
}
|
|
62
|
+
if (url.protocol !== "https:" && url.protocol !== "http:") abort();
|
|
63
|
+
if (url.hostname !== encodeURIComponent(url.hostname)) abort();
|
|
64
|
+
if (url.username) url.username = encodeURIComponent(url.username);
|
|
65
|
+
if (url.password) url.password = encodeURIComponent(url.password);
|
|
66
|
+
url.pathname = url.pathname.slice(0, 1) + encodeURIComponent(url.pathname.slice(1)).replace(/%2f/gi, "/");
|
|
67
|
+
url.search = url.search.slice(0, 1) + Array.from(url.searchParams.entries()).map(sanitizeParam).join("&");
|
|
68
|
+
url.hash = url.hash.slice(0, 1) + encodeURIComponent(url.hash.slice(1));
|
|
69
|
+
return url.href;
|
|
70
|
+
}
|
|
71
|
+
__name(sanitizeUrl, "sanitizeUrl");
|
|
72
|
+
function sanitizeParam([k, v]) {
|
|
73
|
+
return `${encodeURIComponent(k)}${v.length > 0 ? `=${encodeURIComponent(v)}` : ""}`;
|
|
74
|
+
}
|
|
75
|
+
__name(sanitizeParam, "sanitizeParam");
|
|
51
76
|
|
|
52
77
|
// src/connectors/http.ts
|
|
53
78
|
var import_client = require("@modelcontextprotocol/sdk/client/index.js");
|
|
@@ -1147,8 +1172,12 @@ var HttpConnector = class extends BaseConnector {
|
|
|
1147
1172
|
}
|
|
1148
1173
|
};
|
|
1149
1174
|
|
|
1150
|
-
// src/
|
|
1151
|
-
var
|
|
1175
|
+
// src/server/utils/runtime.ts
|
|
1176
|
+
var isDeno = typeof globalThis.Deno !== "undefined";
|
|
1177
|
+
function generateUUID() {
|
|
1178
|
+
return globalThis.crypto.randomUUID();
|
|
1179
|
+
}
|
|
1180
|
+
__name(generateUUID, "generateUUID");
|
|
1152
1181
|
|
|
1153
1182
|
// src/task_managers/websocket.ts
|
|
1154
1183
|
var import_ws = __toESM(require("ws"), 1);
|
|
@@ -1268,7 +1297,7 @@ var WebSocketConnector = class extends BaseConnector {
|
|
|
1268
1297
|
}
|
|
1269
1298
|
sendRequest(method, params = null) {
|
|
1270
1299
|
if (!this.ws) throw new Error("WebSocket is not connected");
|
|
1271
|
-
const id = (
|
|
1300
|
+
const id = generateUUID();
|
|
1272
1301
|
const payload = JSON.stringify({ id, method, params: params ?? {} });
|
|
1273
1302
|
return new Promise((resolve, reject) => {
|
|
1274
1303
|
this.pending.set(id, { resolve, reject });
|
|
@@ -1675,7 +1704,6 @@ var BrowserMCPClient = class _BrowserMCPClient extends BaseMCPClient {
|
|
|
1675
1704
|
};
|
|
1676
1705
|
|
|
1677
1706
|
// src/auth/browser-provider.ts
|
|
1678
|
-
var import_strict_url_sanitise = require("strict-url-sanitise");
|
|
1679
1707
|
var BrowserOAuthClientProvider = class {
|
|
1680
1708
|
static {
|
|
1681
1709
|
__name(this, "BrowserOAuthClientProvider");
|
|
@@ -1695,7 +1723,7 @@ var BrowserOAuthClientProvider = class {
|
|
|
1695
1723
|
this.serverUrlHash = this.hashString(serverUrl);
|
|
1696
1724
|
this.clientName = options.clientName || "mcp-use";
|
|
1697
1725
|
this.clientUri = options.clientUri || (typeof window !== "undefined" ? window.location.origin : "");
|
|
1698
|
-
this.callbackUrl =
|
|
1726
|
+
this.callbackUrl = sanitizeUrl(
|
|
1699
1727
|
options.callbackUrl || (typeof window !== "undefined" ? new URL("/oauth/callback", window.location.origin).toString() : "/oauth/callback")
|
|
1700
1728
|
);
|
|
1701
1729
|
this.preventAutoAuth = options.preventAutoAuth;
|
|
@@ -1704,7 +1732,7 @@ var BrowserOAuthClientProvider = class {
|
|
|
1704
1732
|
}
|
|
1705
1733
|
// --- SDK Interface Methods ---
|
|
1706
1734
|
get redirectUrl() {
|
|
1707
|
-
return
|
|
1735
|
+
return sanitizeUrl(this.callbackUrl);
|
|
1708
1736
|
}
|
|
1709
1737
|
get clientMetadata() {
|
|
1710
1738
|
return {
|
|
@@ -1800,7 +1828,7 @@ var BrowserOAuthClientProvider = class {
|
|
|
1800
1828
|
localStorage.setItem(stateKey, JSON.stringify(stateData));
|
|
1801
1829
|
authorizationUrl.searchParams.set("state", state);
|
|
1802
1830
|
const authUrlString = authorizationUrl.toString();
|
|
1803
|
-
const sanitizedAuthUrl =
|
|
1831
|
+
const sanitizedAuthUrl = sanitizeUrl(authUrlString);
|
|
1804
1832
|
localStorage.setItem(this.getKey("last_auth_url"), sanitizedAuthUrl);
|
|
1805
1833
|
return sanitizedAuthUrl;
|
|
1806
1834
|
}
|
|
@@ -1857,7 +1885,7 @@ var BrowserOAuthClientProvider = class {
|
|
|
1857
1885
|
*/
|
|
1858
1886
|
getLastAttemptedAuthUrl() {
|
|
1859
1887
|
const storedUrl = localStorage.getItem(this.getKey("last_auth_url"));
|
|
1860
|
-
return storedUrl ?
|
|
1888
|
+
return storedUrl ? sanitizeUrl(storedUrl) : null;
|
|
1861
1889
|
}
|
|
1862
1890
|
clearStorage() {
|
|
1863
1891
|
const prefixPattern = `${this.storageKeyPrefix}_${this.serverUrlHash}_`;
|
|
@@ -1924,7 +1952,7 @@ function useMcp(options) {
|
|
|
1924
1952
|
enabled = true,
|
|
1925
1953
|
clientName,
|
|
1926
1954
|
clientUri,
|
|
1927
|
-
callbackUrl = typeof window !== "undefined" ?
|
|
1955
|
+
callbackUrl = typeof window !== "undefined" ? sanitizeUrl(
|
|
1928
1956
|
new URL("/oauth/callback", window.location.origin).toString()
|
|
1929
1957
|
) : "/oauth/callback",
|
|
1930
1958
|
storageKeyPrefix = "mcp:auth",
|
|
@@ -3516,7 +3544,18 @@ __name(WidgetControls, "WidgetControls");
|
|
|
3516
3544
|
|
|
3517
3545
|
// src/react/McpUseProvider.tsx
|
|
3518
3546
|
var import_react7 = __toESM(require("react"), 1);
|
|
3519
|
-
var
|
|
3547
|
+
var BrowserRouter = null;
|
|
3548
|
+
var routerError = null;
|
|
3549
|
+
(async () => {
|
|
3550
|
+
try {
|
|
3551
|
+
const routerModule = await import("react-router-dom");
|
|
3552
|
+
BrowserRouter = routerModule.BrowserRouter;
|
|
3553
|
+
} catch (error) {
|
|
3554
|
+
routerError = new Error(
|
|
3555
|
+
"\u274C react-router-dom not installed!\n\nTo use MCP widgets with McpUseProvider, you need to install:\n\n npm install react-router-dom\n # or\n pnpm add react-router-dom\n\nThis dependency is automatically included in projects created with 'create-mcp-use-app'."
|
|
3556
|
+
);
|
|
3557
|
+
}
|
|
3558
|
+
})();
|
|
3520
3559
|
function getBasename() {
|
|
3521
3560
|
if (typeof window === "undefined") return "/";
|
|
3522
3561
|
const path = window.location.pathname;
|
|
@@ -3540,6 +3579,33 @@ function McpUseProvider({
|
|
|
3540
3579
|
const lastHeightRef = (0, import_react7.useRef)(0);
|
|
3541
3580
|
const debounceTimeoutRef = (0, import_react7.useRef)(null);
|
|
3542
3581
|
const notificationInProgressRef = (0, import_react7.useRef)(false);
|
|
3582
|
+
const [BrowserRouter2, setBrowserRouter] = (0, import_react7.useState)(null);
|
|
3583
|
+
const [routerError2, setRouterError] = (0, import_react7.useState)(null);
|
|
3584
|
+
const [isRouterLoading, setIsRouterLoading] = (0, import_react7.useState)(true);
|
|
3585
|
+
(0, import_react7.useEffect)(() => {
|
|
3586
|
+
let mounted = true;
|
|
3587
|
+
(async () => {
|
|
3588
|
+
try {
|
|
3589
|
+
const routerModule = await import("react-router-dom");
|
|
3590
|
+
if (mounted) {
|
|
3591
|
+
setBrowserRouter(() => routerModule.BrowserRouter);
|
|
3592
|
+
setIsRouterLoading(false);
|
|
3593
|
+
}
|
|
3594
|
+
} catch (error) {
|
|
3595
|
+
if (mounted) {
|
|
3596
|
+
setRouterError(
|
|
3597
|
+
new Error(
|
|
3598
|
+
"\u274C react-router-dom not installed!\n\nTo use MCP widgets with McpUseProvider, you need to install:\n\n npm install react-router-dom\n # or\n pnpm add react-router-dom\n\nThis dependency is automatically included in projects created with 'create-mcp-use-app'."
|
|
3599
|
+
)
|
|
3600
|
+
);
|
|
3601
|
+
setIsRouterLoading(false);
|
|
3602
|
+
}
|
|
3603
|
+
}
|
|
3604
|
+
})();
|
|
3605
|
+
return () => {
|
|
3606
|
+
mounted = false;
|
|
3607
|
+
};
|
|
3608
|
+
}, []);
|
|
3543
3609
|
const notifyHeight = (0, import_react7.useCallback)((height) => {
|
|
3544
3610
|
if (typeof window !== "undefined" && window.openai?.notifyIntrinsicHeight) {
|
|
3545
3611
|
notificationInProgressRef.current = true;
|
|
@@ -3605,12 +3671,20 @@ function McpUseProvider({
|
|
|
3605
3671
|
notificationInProgressRef.current = false;
|
|
3606
3672
|
};
|
|
3607
3673
|
}, [autoSize, debouncedNotifyHeight]);
|
|
3674
|
+
if (isRouterLoading) {
|
|
3675
|
+
return /* @__PURE__ */ import_react7.default.createElement(import_react7.StrictMode, null, /* @__PURE__ */ import_react7.default.createElement(ThemeProvider, null, /* @__PURE__ */ import_react7.default.createElement("div", { style: { padding: "20px", textAlign: "center" } }, "Loading...")));
|
|
3676
|
+
}
|
|
3677
|
+
if (routerError2) {
|
|
3678
|
+
throw routerError2;
|
|
3679
|
+
}
|
|
3608
3680
|
let content = children;
|
|
3609
3681
|
content = /* @__PURE__ */ import_react7.default.createElement(ErrorBoundary, null, content);
|
|
3610
3682
|
if (enableDebugger || viewControls) {
|
|
3611
3683
|
content = /* @__PURE__ */ import_react7.default.createElement(WidgetControls, { debugger: enableDebugger, viewControls }, content);
|
|
3612
3684
|
}
|
|
3613
|
-
|
|
3685
|
+
if (BrowserRouter2) {
|
|
3686
|
+
content = /* @__PURE__ */ import_react7.default.createElement(BrowserRouter2, { basename }, content);
|
|
3687
|
+
}
|
|
3614
3688
|
content = /* @__PURE__ */ import_react7.default.createElement(ThemeProvider, null, content);
|
|
3615
3689
|
if (autoSize) {
|
|
3616
3690
|
const containerStyle = {
|
package/dist/src/react/index.js
CHANGED
|
@@ -9,12 +9,13 @@ import {
|
|
|
9
9
|
useWidgetProps,
|
|
10
10
|
useWidgetState,
|
|
11
11
|
useWidgetTheme
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-BBEY6HHN.js";
|
|
13
|
+
import "../../chunk-PSO6HYXH.js";
|
|
14
14
|
import {
|
|
15
15
|
onMcpAuthorization
|
|
16
|
-
} from "../../chunk-
|
|
16
|
+
} from "../../chunk-3R5PDYIN.js";
|
|
17
17
|
import "../../chunk-2JBWOW4S.js";
|
|
18
|
+
import "../../chunk-MTHLLDCX.js";
|
|
18
19
|
import "../../chunk-34R6SIER.js";
|
|
19
20
|
import "../../chunk-3GQAWCBQ.js";
|
|
20
21
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-adapter.d.ts","sourceRoot":"","sources":["../../../src/server/connect-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,iBAAiB,EAAQ,MAAM,MAAM,CAAC;AAE7D;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,GAAG,GAAG,OAAO,CA0C5D;AAED;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CACnC,UAAU,EAAE,GAAG,EACf,cAAc,GAAE,MAAY,GAC3B,OAAO,CAAC,iBAAiB,CAAC,CAQ5B;AAED;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAC1C,iBAAiB,EAAE,GAAG,EACtB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"connect-adapter.d.ts","sourceRoot":"","sources":["../../../src/server/connect-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,iBAAiB,EAAQ,MAAM,MAAM,CAAC;AAE7D;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,GAAG,GAAG,OAAO,CA0C5D;AAED;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CACnC,UAAU,EAAE,GAAG,EACf,cAAc,GAAE,MAAY,GAC3B,OAAO,CAAC,iBAAiB,CAAC,CAQ5B;AAED;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAC1C,iBAAiB,EAAE,GAAG,EACtB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,iBAAiB,CAAC,CA4K5B"}
|
|
@@ -1237,14 +1237,22 @@ async function adaptConnectMiddleware(connectMiddleware, middlewarePath) {
|
|
|
1237
1237
|
let createRequest;
|
|
1238
1238
|
let createResponse;
|
|
1239
1239
|
try {
|
|
1240
|
-
const
|
|
1240
|
+
const { createRequire } = await import("module");
|
|
1241
|
+
const { pathToFileURL } = await import("url");
|
|
1242
|
+
const userProjectRequire = createRequire(
|
|
1243
|
+
pathToFileURL(
|
|
1244
|
+
// Use process.cwd() since this is a runtime utility that should work from user's project
|
|
1245
|
+
process.cwd() + "/package.json"
|
|
1246
|
+
).href
|
|
1247
|
+
);
|
|
1248
|
+
const httpMocksPath = userProjectRequire.resolve("node-mocks-http");
|
|
1249
|
+
const httpMocks = await import(httpMocksPath);
|
|
1241
1250
|
createRequest = httpMocks.createRequest;
|
|
1242
1251
|
createResponse = httpMocks.createResponse;
|
|
1243
1252
|
} catch (error2) {
|
|
1244
|
-
|
|
1245
|
-
"
|
|
1253
|
+
throw new Error(
|
|
1254
|
+
"\u274C Widget middleware dependencies not installed!\n\nTo use Connect middleware adapters with MCP widgets, you need to install:\n\n npm install node-mocks-http\n # or\n pnpm add node-mocks-http\n\nThis dependency is automatically included in projects created with 'create-mcp-use-app'."
|
|
1246
1255
|
);
|
|
1247
|
-
throw error2;
|
|
1248
1256
|
}
|
|
1249
1257
|
let normalizedPath = middlewarePath;
|
|
1250
1258
|
if (normalizedPath.endsWith("*")) {
|
|
@@ -1938,6 +1946,7 @@ var McpServer = class {
|
|
|
1938
1946
|
title: promptDefinition.title,
|
|
1939
1947
|
description: promptDefinition.description ?? "",
|
|
1940
1948
|
argsSchema
|
|
1949
|
+
// Type assertion for Zod v4 compatibility
|
|
1941
1950
|
},
|
|
1942
1951
|
async (params) => {
|
|
1943
1952
|
return await promptDefinition.cb(params);
|
|
@@ -2398,24 +2407,26 @@ var McpServer = class {
|
|
|
2398
2407
|
let react;
|
|
2399
2408
|
let tailwindcss;
|
|
2400
2409
|
try {
|
|
2401
|
-
const
|
|
2410
|
+
const { createRequire } = await import("module");
|
|
2411
|
+
const { pathToFileURL } = await import("url");
|
|
2412
|
+
const userProjectRequire = createRequire(
|
|
2413
|
+
pathToFileURL(pathHelpers.join(getCwd(), "package.json")).href
|
|
2414
|
+
);
|
|
2415
|
+
const vitePath = userProjectRequire.resolve("vite");
|
|
2416
|
+
const reactPluginPath = userProjectRequire.resolve(
|
|
2417
|
+
"@vitejs/plugin-react"
|
|
2418
|
+
);
|
|
2419
|
+
const tailwindPath = userProjectRequire.resolve("@tailwindcss/vite");
|
|
2420
|
+
const viteModule = await import(vitePath);
|
|
2402
2421
|
createServer = viteModule.createServer;
|
|
2403
|
-
const reactModule = await
|
|
2404
|
-
'return import("@vitejs/plugin-react")'
|
|
2405
|
-
)();
|
|
2422
|
+
const reactModule = await import(reactPluginPath);
|
|
2406
2423
|
react = reactModule.default;
|
|
2407
|
-
const tailwindModule = await
|
|
2408
|
-
'return import("@tailwindcss/vite")'
|
|
2409
|
-
)();
|
|
2424
|
+
const tailwindModule = await import(tailwindPath);
|
|
2410
2425
|
tailwindcss = tailwindModule.default;
|
|
2411
2426
|
} catch (error2) {
|
|
2412
|
-
|
|
2413
|
-
"
|
|
2414
|
-
);
|
|
2415
|
-
console.error(
|
|
2416
|
-
"[WIDGETS] For production, use 'mcp-use build' to pre-build widgets."
|
|
2427
|
+
throw new Error(
|
|
2428
|
+
"\u274C Widget dependencies not installed!\n\nTo use MCP widgets with resources folder, you need to install the required dependencies:\n\n npm install vite @vitejs/plugin-react @tailwindcss/vite\n # or\n pnpm add vite @vitejs/plugin-react @tailwindcss/vite\n\nThese dependencies are automatically included in projects created with 'create-mcp-use-app'.\nFor production, pre-build your widgets using 'mcp-use build'."
|
|
2417
2429
|
);
|
|
2418
|
-
return;
|
|
2419
2430
|
}
|
|
2420
2431
|
const widgets = entries.map((entry) => {
|
|
2421
2432
|
return {
|
package/dist/src/server/index.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
fsHelpers,
|
|
3
|
-
generateUUID,
|
|
4
2
|
getAuth,
|
|
5
|
-
getCwd,
|
|
6
|
-
getEnv,
|
|
7
3
|
hasAnyScope,
|
|
8
4
|
hasScope,
|
|
9
|
-
isDeno,
|
|
10
5
|
oauthAuth0Provider,
|
|
11
6
|
oauthCustomProvider,
|
|
12
7
|
oauthKeycloakProvider,
|
|
13
8
|
oauthSupabaseProvider,
|
|
14
9
|
oauthWorkOSProvider,
|
|
15
|
-
pathHelpers,
|
|
16
10
|
requireAnyScope,
|
|
17
11
|
requireScope
|
|
18
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-F4UHAA5L.js";
|
|
13
|
+
import {
|
|
14
|
+
fsHelpers,
|
|
15
|
+
generateUUID,
|
|
16
|
+
getCwd,
|
|
17
|
+
getEnv,
|
|
18
|
+
isDeno,
|
|
19
|
+
pathHelpers
|
|
20
|
+
} from "../../chunk-MTHLLDCX.js";
|
|
19
21
|
import {
|
|
20
22
|
__name
|
|
21
23
|
} from "../../chunk-3GQAWCBQ.js";
|
|
@@ -192,14 +194,22 @@ async function adaptConnectMiddleware(connectMiddleware, middlewarePath) {
|
|
|
192
194
|
let createRequest;
|
|
193
195
|
let createResponse;
|
|
194
196
|
try {
|
|
195
|
-
const
|
|
197
|
+
const { createRequire } = await import("module");
|
|
198
|
+
const { pathToFileURL } = await import("url");
|
|
199
|
+
const userProjectRequire = createRequire(
|
|
200
|
+
pathToFileURL(
|
|
201
|
+
// Use process.cwd() since this is a runtime utility that should work from user's project
|
|
202
|
+
process.cwd() + "/package.json"
|
|
203
|
+
).href
|
|
204
|
+
);
|
|
205
|
+
const httpMocksPath = userProjectRequire.resolve("node-mocks-http");
|
|
206
|
+
const httpMocks = await import(httpMocksPath);
|
|
196
207
|
createRequest = httpMocks.createRequest;
|
|
197
208
|
createResponse = httpMocks.createResponse;
|
|
198
209
|
} catch (error2) {
|
|
199
|
-
|
|
200
|
-
"
|
|
210
|
+
throw new Error(
|
|
211
|
+
"\u274C Widget middleware dependencies not installed!\n\nTo use Connect middleware adapters with MCP widgets, you need to install:\n\n npm install node-mocks-http\n # or\n pnpm add node-mocks-http\n\nThis dependency is automatically included in projects created with 'create-mcp-use-app'."
|
|
201
212
|
);
|
|
202
|
-
throw error2;
|
|
203
213
|
}
|
|
204
214
|
let normalizedPath = middlewarePath;
|
|
205
215
|
if (normalizedPath.endsWith("*")) {
|
|
@@ -580,7 +590,7 @@ var McpServer = class {
|
|
|
580
590
|
if (this.oauthSetupComplete) {
|
|
581
591
|
return;
|
|
582
592
|
}
|
|
583
|
-
const { setupOAuthRoutes, createBearerAuthMiddleware } = await import("../../oauth-
|
|
593
|
+
const { setupOAuthRoutes, createBearerAuthMiddleware } = await import("../../oauth-U4NNKN4B.js");
|
|
584
594
|
this.oauthProvider = oauthProvider;
|
|
585
595
|
console.log(`[OAuth] OAuth provider initialized`);
|
|
586
596
|
const baseUrl = this.getServerBaseUrl();
|
|
@@ -892,6 +902,7 @@ var McpServer = class {
|
|
|
892
902
|
title: promptDefinition.title,
|
|
893
903
|
description: promptDefinition.description ?? "",
|
|
894
904
|
argsSchema
|
|
905
|
+
// Type assertion for Zod v4 compatibility
|
|
895
906
|
},
|
|
896
907
|
async (params) => {
|
|
897
908
|
return await promptDefinition.cb(params);
|
|
@@ -1352,24 +1363,26 @@ var McpServer = class {
|
|
|
1352
1363
|
let react;
|
|
1353
1364
|
let tailwindcss;
|
|
1354
1365
|
try {
|
|
1355
|
-
const
|
|
1366
|
+
const { createRequire } = await import("module");
|
|
1367
|
+
const { pathToFileURL } = await import("url");
|
|
1368
|
+
const userProjectRequire = createRequire(
|
|
1369
|
+
pathToFileURL(pathHelpers.join(getCwd(), "package.json")).href
|
|
1370
|
+
);
|
|
1371
|
+
const vitePath = userProjectRequire.resolve("vite");
|
|
1372
|
+
const reactPluginPath = userProjectRequire.resolve(
|
|
1373
|
+
"@vitejs/plugin-react"
|
|
1374
|
+
);
|
|
1375
|
+
const tailwindPath = userProjectRequire.resolve("@tailwindcss/vite");
|
|
1376
|
+
const viteModule = await import(vitePath);
|
|
1356
1377
|
createServer = viteModule.createServer;
|
|
1357
|
-
const reactModule = await
|
|
1358
|
-
'return import("@vitejs/plugin-react")'
|
|
1359
|
-
)();
|
|
1378
|
+
const reactModule = await import(reactPluginPath);
|
|
1360
1379
|
react = reactModule.default;
|
|
1361
|
-
const tailwindModule = await
|
|
1362
|
-
'return import("@tailwindcss/vite")'
|
|
1363
|
-
)();
|
|
1380
|
+
const tailwindModule = await import(tailwindPath);
|
|
1364
1381
|
tailwindcss = tailwindModule.default;
|
|
1365
1382
|
} catch (error2) {
|
|
1366
|
-
|
|
1367
|
-
"
|
|
1368
|
-
);
|
|
1369
|
-
console.error(
|
|
1370
|
-
"[WIDGETS] For production, use 'mcp-use build' to pre-build widgets."
|
|
1383
|
+
throw new Error(
|
|
1384
|
+
"\u274C Widget dependencies not installed!\n\nTo use MCP widgets with resources folder, you need to install the required dependencies:\n\n npm install vite @vitejs/plugin-react @tailwindcss/vite\n # or\n pnpm add vite @vitejs/plugin-react @tailwindcss/vite\n\nThese dependencies are automatically included in projects created with 'create-mcp-use-app'.\nFor production, pre-build your widgets using 'mcp-use build'."
|
|
1371
1385
|
);
|
|
1372
|
-
return;
|
|
1373
1386
|
}
|
|
1374
1387
|
const widgets = entries.map((entry) => {
|
|
1375
1388
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../../src/server/mcp-server.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EAEpB,MAAM,oCAAoC,CAAC;AAG5C;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE;QACtB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;KACjB,KAAK,IAAI,CAAC;CACZ;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,EAAE,CACN,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EACtC,OAAO,CAAC,EAAE,aA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