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
@@ -58,16 +58,8 @@ describe("tool registration options", () => {
const analyzeFunction = advertised.find(
({ name }) => name === "analyze_function",
);
expect(analyzeFunction?.inputSchema.properties).toMatchObject({
include_assembly: {
description: "Whether to include assembly in the result.",
},
max_instructions: {
description: "Maximum permitted instructions for this operation.",
},
pseudocode_offset: {
description: "Zero-based index of the first pseudocode to return.",
},
expect(analyzeFunction?.inputSchema.properties).toEqual({
procedure: expect.objectContaining({ type: "string" }),
});
expect(advertised).toEqual(
GENERATED_MCP_TOOL_CATALOG.map((tool) => ({