MCPcopy Create free account
hub / github.com/modelcontextprotocol/typescript-sdk / cb

Function cb

test/server/mcp.test.ts:2126–2128  ·  view source on GitHub ↗
({ directory_id }: any)

Source from the content-addressed store, hash-verified

2124 } as any;
2125
2126 const cb = async ({ directory_id }: any) => ({
2127 content: [{ type: 'text' as const, text: `Got: ${directory_id}` }]
2128 });
2129
2130 expect(() => {
2131 mcpServer.tool('test', 'A tool', jsonSchema, cb);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected