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

Function fakeServerTool

packages/ai/tests/chat-params.test.ts:144–149  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

142
143describe('mergeAgentTools', () => {
144 const fakeServerTool = (name: string) => ({
145 name,
146 description: `server ${name}`,
147 inputSchema: { type: 'object', properties: {} },
148 execute: async () => ({ ok: true }),
149 })
150
151 it('returns server tools unchanged when client list is empty', () => {
152 const server = [fakeServerTool('greet')]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected