use json block for mcp tool output (and re-enable markdown rendering) (#635)

This commit is contained in:
Olcan
2025-05-30 15:59:23 -07:00
committed by GitHub
parent 2e57989aec
commit c81148a0cc
3 changed files with 8 additions and 5 deletions

View File

@@ -768,7 +768,8 @@ describe('DiscoveredMCPTool', () => {
timeout: 10 * 60 * 1000,
},
);
const expectedOutput = JSON.stringify(mcpResult, null, 2);
const expectedOutput =
'```json\n' + JSON.stringify(mcpResult, null, 2) + '\n```';
expect(result.llmContent).toBe(expectedOutput);
expect(result.returnDisplay).toBe(expectedOutput);
});