@reqvire-org/ads 0.3.52 → 0.3.53

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.
@@ -629,7 +629,7 @@ export function createAdsMcp(directory, { era = "legacy", skillDirectory, pollIn
629
629
  });
630
630
  if (era === "modern") {
631
631
  server.setRequestHandler("skills/list", schemas, ({ cursor }) => {
632
- const listing = page(skills.skills, cursor, "skills", 2);
632
+ const listing = page(skills.skills, cursor, "skills");
633
633
  return { resultType: "complete", ttlMs: 300000, cacheScope: "public", skills: listing.items, ...(listing.nextCursor ? { nextCursor: listing.nextCursor } : {}) };
634
634
  });
635
635
  server.setRequestHandler("skills/get", { ...schemas, params: z.object({ uri: z.string() }).passthrough() }, ({ uri }) => {
@@ -639,7 +639,7 @@ export function createAdsMcp(directory, { era = "legacy", skillDirectory, pollIn
639
639
  const children = skills.directories.get(uri);
640
640
  if (!children) throw new ResourceNotFoundError(uri, "Unknown skill directory (no trailing slash).");
641
641
  const listing = page(children, cursor, "directory");
642
- return { resultType: "complete", resources: listing.items, ...(listing.nextCursor ? { nextCursor: listing.nextCursor } : {}) };
642
+ return { resultType: "complete", ttlMs: 300000, cacheScope: "public", resources: listing.items, ...(listing.nextCursor ? { nextCursor: listing.nextCursor } : {}) };
643
643
  });
644
644
  }
645
645