MCPcopy Create free account
hub / github.com/TanStack/ai / weatherPoolHandler

Function weatherPoolHandler

packages/ai-mcp/tests/apps/call-handler.test.ts:86–93  ·  view source on GitHub ↗
(
  extra: Partial<Parameters<typeof createMcpAppCallHandler>[0]> = {},
)

Source from the content-addressed store, hash-verified

84// The most common fixture: a handler over a single-server `weather` pool.
85// `extra` threads through store/allowTool for the tests that need them.
86function weatherPoolHandler(
87 extra: Partial<Parameters<typeof createMcpAppCallHandler>[0]> = {},
88) {
89 return createMcpAppCallHandler({
90 clients: fakePool({ weather: WEATHER_HTTP }),
91 ...extra,
92 })
93}
94
95describe('createMcpAppCallHandler', () => {
96 beforeEach(() => {

Callers 1

Calls 2

createMcpAppCallHandlerFunction · 0.90
fakePoolFunction · 0.85

Tested by

no test coverage detected