fix: make listServerResources() params optional (#528)

Follow-up to #470. Matches MCP SDK Client.listResources(params?) signature
so callers can omit the empty {} for the common case.

Also reflows a line in app-bridge.test.ts that prettier flagged.
This commit is contained in:
Olivier Chafik 2026-03-06 14:30:36 +00:00 • committed by GitHub
commit ef8fc6e2f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -794,7 +794,7 @@ describe("App <-> AppBridge integration", () => {
await bridge.connect(bridgeTransport);
await app.connect(appTransport);
const result = await app.listServerResources({});
const result = await app.listServerResources();
expect(receivedRequests).toHaveLength(1);
expect(result.resources).toEqual(resources);
@ -826,7 +826,11 @@ describe("App <-> AppBridge integration", () => {
it("onreadresource handles readServerResource() calls from App", async () => {
const requestParams = { uri: "videos://bunny-1mb" };
const contents = [
{ uri: "videos://bunny-1mb", blob: "dmlkZW9kYXRh", mimeType: "video/mp4" },
{
uri: "videos://bunny-1mb",
blob: "dmlkZW9kYXRh",
mimeType: "video/mp4",
},
];
const receivedRequests: unknown[] = [];