mcp-use 1.9.0-canary.1 → 1.9.0-canary.2
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-UADIRKWG.js → chunk-D22NUQTL.js} +5 -2
- package/dist/{chunk-VYOEQ5NZ.js → chunk-MUZ5WYE3.js} +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.js +2 -2
- package/dist/src/browser.cjs +5 -2
- package/dist/src/browser.js +1 -1
- package/dist/src/client/browser.d.ts.map +1 -1
- package/dist/src/react/index.cjs +5 -2
- package/dist/src/react/index.js +2 -2
- package/package.json +4 -3
|
@@ -932,7 +932,8 @@ var BrowserMCPClient = class _BrowserMCPClient extends BaseMCPClient {
|
|
|
932
932
|
authProvider,
|
|
933
933
|
wrapTransport,
|
|
934
934
|
clientOptions,
|
|
935
|
-
samplingCallback
|
|
935
|
+
samplingCallback,
|
|
936
|
+
elicitationCallback
|
|
936
937
|
} = serverConfig;
|
|
937
938
|
if (!url) {
|
|
938
939
|
throw new Error("Server URL is required");
|
|
@@ -946,8 +947,10 @@ var BrowserMCPClient = class _BrowserMCPClient extends BaseMCPClient {
|
|
|
946
947
|
// ← Pass transport wrapper if provided
|
|
947
948
|
clientOptions,
|
|
948
949
|
// ← Pass client options (capabilities, etc.) to connector
|
|
949
|
-
samplingCallback
|
|
950
|
+
samplingCallback,
|
|
950
951
|
// ← Pass sampling callback to connector
|
|
952
|
+
elicitationCallback
|
|
953
|
+
// ← Pass elicitation callback to connector
|
|
951
954
|
};
|
|
952
955
|
if (clientOptions) {
|
|
953
956
|
console.log(
|
package/dist/index.cjs
CHANGED
|
@@ -8079,7 +8079,8 @@ var BrowserMCPClient = class _BrowserMCPClient extends BaseMCPClient {
|
|
|
8079
8079
|
authProvider,
|
|
8080
8080
|
wrapTransport,
|
|
8081
8081
|
clientOptions,
|
|
8082
|
-
samplingCallback
|
|
8082
|
+
samplingCallback,
|
|
8083
|
+
elicitationCallback
|
|
8083
8084
|
} = serverConfig;
|
|
8084
8085
|
if (!url) {
|
|
8085
8086
|
throw new Error("Server URL is required");
|
|
@@ -8093,8 +8094,10 @@ var BrowserMCPClient = class _BrowserMCPClient extends BaseMCPClient {
|
|
|
8093
8094
|
// ← Pass transport wrapper if provided
|
|
8094
8095
|
clientOptions,
|
|
8095
8096
|
// ← Pass client options (capabilities, etc.) to connector
|
|
8096
|
-
samplingCallback
|
|
8097
|
+
samplingCallback,
|
|
8097
8098
|
// ← Pass sampling callback to connector
|
|
8099
|
+
elicitationCallback
|
|
8100
|
+
// ← Pass elicitation callback to connector
|
|
8098
8101
|
};
|
|
8099
8102
|
if (clientOptions) {
|
|
8100
8103
|
console.log(
|
package/dist/index.js
CHANGED
|
@@ -36,14 +36,14 @@ import {
|
|
|
36
36
|
useWidgetProps,
|
|
37
37
|
useWidgetState,
|
|
38
38
|
useWidgetTheme
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-MUZ5WYE3.js";
|
|
40
40
|
import {
|
|
41
41
|
BaseMCPClient,
|
|
42
42
|
ConnectionManager,
|
|
43
43
|
HttpConnector,
|
|
44
44
|
MCPSession,
|
|
45
45
|
WebSocketConnector
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-D22NUQTL.js";
|
|
47
47
|
import {
|
|
48
48
|
BrowserOAuthClientProvider,
|
|
49
49
|
onMcpAuthorization
|
package/dist/src/browser.cjs
CHANGED
|
@@ -2450,7 +2450,8 @@ var BrowserMCPClient = class _BrowserMCPClient extends BaseMCPClient {
|
|
|
2450
2450
|
authProvider,
|
|
2451
2451
|
wrapTransport,
|
|
2452
2452
|
clientOptions,
|
|
2453
|
-
samplingCallback
|
|
2453
|
+
samplingCallback,
|
|
2454
|
+
elicitationCallback
|
|
2454
2455
|
} = serverConfig;
|
|
2455
2456
|
if (!url) {
|
|
2456
2457
|
throw new Error("Server URL is required");
|
|
@@ -2464,8 +2465,10 @@ var BrowserMCPClient = class _BrowserMCPClient extends BaseMCPClient {
|
|
|
2464
2465
|
// ← Pass transport wrapper if provided
|
|
2465
2466
|
clientOptions,
|
|
2466
2467
|
// ← Pass client options (capabilities, etc.) to connector
|
|
2467
|
-
samplingCallback
|
|
2468
|
+
samplingCallback,
|
|
2468
2469
|
// ← Pass sampling callback to connector
|
|
2470
|
+
elicitationCallback
|
|
2471
|
+
// ← Pass elicitation callback to connector
|
|
2469
2472
|
};
|
|
2470
2473
|
if (clientOptions) {
|
|
2471
2474
|
console.log(
|
package/dist/src/browser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/client/browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;;;;;;;GAQG;AACH,qBAAa,gBAAiB,SAAQ,aAAa;gBACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WAI1B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,gBAAgB;IAIlE;;;OAGG;IACH,SAAS,CAAC,yBAAyB,CACjC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAChC,aAAa;
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/client/browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;;;;;;;GAQG;AACH,qBAAa,gBAAiB,SAAQ,aAAa;gBACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WAI1B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,gBAAgB;IAIlE;;;OAGG;IACH,SAAS,CAAC,yBAAyB,CACjC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAChC,aAAa;CA0DjB"}
|
package/dist/src/react/index.cjs
CHANGED
|
@@ -1717,7 +1717,8 @@ var BrowserMCPClient = class _BrowserMCPClient extends BaseMCPClient {
|
|
|
1717
1717
|
authProvider,
|
|
1718
1718
|
wrapTransport,
|
|
1719
1719
|
clientOptions,
|
|
1720
|
-
samplingCallback
|
|
1720
|
+
samplingCallback,
|
|
1721
|
+
elicitationCallback
|
|
1721
1722
|
} = serverConfig;
|
|
1722
1723
|
if (!url) {
|
|
1723
1724
|
throw new Error("Server URL is required");
|
|
@@ -1731,8 +1732,10 @@ var BrowserMCPClient = class _BrowserMCPClient extends BaseMCPClient {
|
|
|
1731
1732
|
// ← Pass transport wrapper if provided
|
|
1732
1733
|
clientOptions,
|
|
1733
1734
|
// ← Pass client options (capabilities, etc.) to connector
|
|
1734
|
-
samplingCallback
|
|
1735
|
+
samplingCallback,
|
|
1735
1736
|
// ← Pass sampling callback to connector
|
|
1737
|
+
elicitationCallback
|
|
1738
|
+
// ← Pass elicitation callback to connector
|
|
1736
1739
|
};
|
|
1737
1740
|
if (clientOptions) {
|
|
1738
1741
|
console.log(
|
package/dist/src/react/index.js
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
useWidgetProps,
|
|
10
10
|
useWidgetState,
|
|
11
11
|
useWidgetTheme
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-MUZ5WYE3.js";
|
|
13
|
+
import "../../chunk-D22NUQTL.js";
|
|
14
14
|
import {
|
|
15
15
|
onMcpAuthorization
|
|
16
16
|
} from "../../chunk-3R5PDYIN.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-use",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.9.0-canary.
|
|
4
|
+
"version": "1.9.0-canary.2",
|
|
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",
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
"posthog-node": "^5.14.1",
|
|
113
113
|
"ws": "^8.18.3",
|
|
114
114
|
"zod": "^4.1.13",
|
|
115
|
-
"@mcp-use/cli": "2.4.8-canary.
|
|
116
|
-
"@mcp-use/inspector": "0.
|
|
115
|
+
"@mcp-use/cli": "2.4.8-canary.2",
|
|
116
|
+
"@mcp-use/inspector": "0.11.0-canary.2"
|
|
117
117
|
},
|
|
118
118
|
"optionalDependencies": {
|
|
119
119
|
"chalk": "^5.6.2",
|
|
@@ -192,6 +192,7 @@
|
|
|
192
192
|
"example:notifications": "lsof -ti:3000 | xargs kill -9 2>/dev/null; tsx examples/server/notifications/src/server.ts & sleep 3 && tsx examples/client/notification-client.ts",
|
|
193
193
|
"example:server:sampling": "tsx examples/server/sampling/src/server.ts",
|
|
194
194
|
"example:client:sampling": "tsx examples/client/sampling-client.ts",
|
|
195
|
+
"example:server:elicitation": "tsx examples/server/elicitation/src/server.ts",
|
|
195
196
|
"example:sampling": "lsof -ti:3001 | xargs kill -9 2>/dev/null; tsx examples/server/sampling/src/server.ts & sleep 3 && tsx examples/client/sampling-client.ts",
|
|
196
197
|
"example:server:oauth:supabase": "tsx examples/server/oauth/supabase/src/server.ts",
|
|
197
198
|
"example:client:oauth:auth0": "tsx examples/server/oauth/auth0/src/server.ts",
|