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:
parent
4f9a7ebc74
commit
ef8fc6e2f0
1 changed files with 11 additions and 7 deletions
|
|
@ -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[] = [];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue