@mcp-use/client 2.2.3-canary.0 → 2.2.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/index-browser.js +4 -3
- package/dist/index-browser.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +4 -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/index.js
CHANGED
|
@@ -934,7 +934,8 @@ var init_base = __esm({
|
|
|
934
934
|
* @returns Complete list of all resources
|
|
935
935
|
*/
|
|
936
936
|
async listAllResources(options) {
|
|
937
|
-
|
|
937
|
+
const client = this.client;
|
|
938
|
+
if (!client) {
|
|
938
939
|
throw new Error("MCP client is not connected");
|
|
939
940
|
}
|
|
940
941
|
if (!this.capabilitiesCache?.resources) {
|
|
@@ -947,7 +948,7 @@ var init_base = __esm({
|
|
|
947
948
|
const allResources = [];
|
|
948
949
|
let cursor = void 0;
|
|
949
950
|
do {
|
|
950
|
-
const result = await
|
|
951
|
+
const result = await client.listResources({ cursor }, options);
|
|
951
952
|
allResources.push(...result.resources || []);
|
|
952
953
|
cursor = result.nextCursor;
|
|
953
954
|
} while (cursor);
|
|
@@ -1526,7 +1527,7 @@ init_connector_telemetry();
|
|
|
1526
1527
|
init_logging();
|
|
1527
1528
|
|
|
1528
1529
|
// src/utils/version.ts
|
|
1529
|
-
var VERSION = "2.2.3
|
|
1530
|
+
var VERSION = "2.2.3";
|
|
1530
1531
|
function getPackageVersion() {
|
|
1531
1532
|
return VERSION;
|
|
1532
1533
|
}
|