@mcp-use/client 2.0.1 → 2.0.2-canary.0
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/core/session.d.ts +2 -2
- package/dist/core/session.d.ts.map +1 -1
- package/dist/index-browser.js +3 -3
- package/dist/index-browser.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +3 -3
- package/dist/react/index.js.map +1 -1
- package/dist/transport/base.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -1606,7 +1606,7 @@ var HttpConnector = class extends BaseConnector {
|
|
|
1606
1606
|
};
|
|
1607
1607
|
|
|
1608
1608
|
// src/utils/version.ts
|
|
1609
|
-
var VERSION = "2.0.
|
|
1609
|
+
var VERSION = "2.0.2-canary.0";
|
|
1610
1610
|
function getPackageVersion() {
|
|
1611
1611
|
return VERSION;
|
|
1612
1612
|
}
|
|
@@ -3491,7 +3491,7 @@ var MCPConnection = class {
|
|
|
3491
3491
|
const protocolEra = this.protocolEra;
|
|
3492
3492
|
const protocolVersion = this.negotiatedProtocolVersion;
|
|
3493
3493
|
const server = this.serverInfo;
|
|
3494
|
-
if (!protocolEra || !protocolVersion
|
|
3494
|
+
if (!protocolEra || !protocolVersion) {
|
|
3495
3495
|
throw new Error("MCP connection is not initialized");
|
|
3496
3496
|
}
|
|
3497
3497
|
const capabilities = this.serverCapabilities;
|
|
@@ -3499,7 +3499,7 @@ var MCPConnection = class {
|
|
|
3499
3499
|
return {
|
|
3500
3500
|
protocolEra,
|
|
3501
3501
|
protocolVersion,
|
|
3502
|
-
server,
|
|
3502
|
+
...server ? { server } : {},
|
|
3503
3503
|
capabilities,
|
|
3504
3504
|
instructions: this.connector.instructions,
|
|
3505
3505
|
extensions
|