@mcp-use/client 2.0.0-beta.1 → 2.0.0-beta.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.
@@ -21,12 +21,12 @@ interface HttpConnectorOptions extends ConnectorInitOptions {
21
21
  clientInfo?: ClientInfo;
22
22
  /**
23
23
  * Protocol version negotiation mode passed to the SDK `Client`.
24
- * - `"legacy"` (default): classic 2025 `initialize` handshake, no probe —
25
- * matches the SDK's own default. Still connects to both v1 and v2 servers
26
- * (v2 servers serve 2025-era traffic).
27
- * - `"auto"`: probe with `server/discover`, falling back to the 2025
28
- * handshake against legacy servers. Opt-in: the probe performs OAuth
29
- * discovery on auth-required servers and can fail on servers whose
24
+ * - `"auto"` (mcp-use HTTP default): probe with `server/discover`, falling
25
+ * back to the 2025 handshake against legacy servers.
26
+ * - `"legacy"`: classic 2025 `initialize` handshake, no probe. This matches
27
+ * the official SDK's default when used directly.
28
+ * - In auto mode, the probe performs OAuth discovery on auth-required
29
+ * servers and can fail on servers whose
30
30
  * authorization-server issuer differs from the server URL (RFC 8414 §3.3),
31
31
  * which would otherwise mask the normal 401 → auth flow.
32
32
  * - `{ pin: "2026-07-28" }`: modern era only, no fallback.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mcp-use/client",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.1",
4
+ "version": "2.0.0-beta.2",
5
5
  "description": "MCP client for connecting to Model Context Protocol servers — sessions, connectors, and OAuth. Part of the mcp-use v2 framework.",
6
6
  "author": "mcp-use, Inc.",
7
7
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  "dist"
48
48
  ],
49
49
  "engines": {
50
- "node": ">=20.0.0"
50
+ "node": ">=22.22.2"
51
51
  },
52
52
  "dependencies": {
53
53
  "@modelcontextprotocol/client": "https://pkg.pr.new/@modelcontextprotocol/client@f60b40179b0f090f6d64248be1312245a160b5ee",