update to track spec changes
This commit is contained in:
parent
265ad071f7
commit
7636c63f39
1 changed files with 47 additions and 281 deletions
|
|
@ -1224,10 +1224,7 @@ describe("tool()", () => {
|
|||
mcpServer.server.connect(serverTransport),
|
||||
]);
|
||||
|
||||
// First call listTools to cache the outputSchema in the client
|
||||
await client.listTools();
|
||||
|
||||
// Call the tool and expect it to throw a validation error
|
||||
// Call the tool and expect it to throw a server-side validation error
|
||||
await expect(
|
||||
client.callTool({
|
||||
name: "test",
|
||||
|
|
@ -1235,7 +1232,7 @@ describe("tool()", () => {
|
|||
input: "hello",
|
||||
},
|
||||
}),
|
||||
).rejects.toThrow(/Structured content does not match the tool's output schema/);
|
||||
).rejects.toThrow(/Invalid structured content for tool test/);
|
||||
});
|
||||
|
||||
/***
|
||||
|
|
|
|||
Loading…
Reference in a new issue