refactor: return complete tool results inline
This commit is contained in:
@@ -70,21 +70,15 @@ describe("process-capture MCP elicitation handshake", () => {
|
||||
});
|
||||
try {
|
||||
await client.connect(clientTransport);
|
||||
const identity = await client.readResource({
|
||||
uri: "rea://server/identity",
|
||||
});
|
||||
const identityContent = identity.contents[0];
|
||||
if (identityContent === undefined || !("text" in identityContent))
|
||||
throw new Error("missing modern server identity resource");
|
||||
expect(JSON.parse(identityContent.text)).toMatchObject({
|
||||
client: { name: "process-elicit", version: "1" },
|
||||
});
|
||||
const status = await client.callTool({
|
||||
name: "binary_session",
|
||||
arguments: { detail: "full" },
|
||||
arguments: {},
|
||||
});
|
||||
expect(status.structuredContent).toMatchObject({
|
||||
result: {
|
||||
server_identity: {
|
||||
client: { name: "process-elicit", version: "1" },
|
||||
},
|
||||
client_features: {
|
||||
elicitation_form: true,
|
||||
elicitation_url: false,
|
||||
|
||||
Reference in New Issue
Block a user