MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / createChatToolHandler

Function createChatToolHandler

server/src/mcp/chat-tool.ts:252–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250 * Create the chat tool handler map
251 */
252export function createChatToolHandler(): Map<
253 string,
254 (args: Record<string, unknown>, authContext?: MCPAuthContext) => Promise<string>
255> {
256 const handlers = new Map<
257 string,
258 (args: Record<string, unknown>, authContext?: MCPAuthContext) => Promise<string>
259 >();
260 handlers.set(CHAT_TOOL.name, handleChatTool);
261 return handlers;
262}

Callers 1

createAllHandlersFunction · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected