refactor: return complete tool results inline

This commit is contained in:
morluto
2026-09-29 07:08:46 +08:00
parent 2160d4fae5
commit 0d96275b68
535 changed files with 4084 additions and 13537 deletions
@@ -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,