Skip to content

Commit 87fb4bd

Browse files
committed
test(telemetry): complete native MCP mock so validateToolExists runs the real path
1 parent e4a416f commit 87fb4bd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/core/assistant-message/__tests__/presentAssistantMessage-tool-usage-attribution.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ describe("presentAssistantMessage - tool usage attribution", () => {
245245
}),
246246
getMcpHub: () => ({
247247
findServerNameBySanitizedName: () => "my_server",
248+
getAllServers: () => [
249+
{
250+
name: "my_server",
251+
tools: [{ name: "do_thing", enabledForPrompt: true }],
252+
},
253+
],
248254
}),
249255
}),
250256
}

0 commit comments

Comments
 (0)