@mcp-use/cli 3.3.2-canary.4 → 3.3.2-canary.6

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/index.js CHANGED
@@ -1473,14 +1473,23 @@ var McpUseAPI = class _McpUseAPI {
1473
1473
  return { user: { login: "", id: 0, avatar_url: "" }, repos: [] };
1474
1474
  }
1475
1475
  const inst = installResp.installations[0];
1476
- const reposResp = await this.request(`/github/installations/${inst.installationId}/repos`);
1476
+ const repoLists = await Promise.all(
1477
+ installResp.installations.map(async (installation) => {
1478
+ try {
1479
+ const reposResp = await this.request(`/github/installations/${installation.installationId}/repos`);
1480
+ return reposResp.repos;
1481
+ } catch {
1482
+ return [];
1483
+ }
1484
+ })
1485
+ );
1477
1486
  return {
1478
1487
  user: {
1479
1488
  login: inst.account?.login ?? "",
1480
1489
  id: 0,
1481
1490
  avatar_url: inst.account?.avatar_url ?? ""
1482
1491
  },
1483
- repos: reposResp.repos.map((r) => ({
1492
+ repos: repoLists.flat().map((r) => ({
1484
1493
  id: r.id,
1485
1494
  name: r.name,
1486
1495
  full_name: r.fullName,