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

Function getAddieRouter

server/src/routes/addie-admin.ts:64–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62// Lazy-initialized router (needs API key from env)
63let addieRouter: AddieRouter | null = null;
64function getAddieRouter(): AddieRouter {
65 if (!addieRouter) {
66 const apiKey = process.env.ANTHROPIC_API_KEY;
67 if (!apiKey) {
68 throw new Error("ANTHROPIC_API_KEY not configured");
69 }
70 addieRouter = new AddieRouter(apiKey);
71 }
72 return addieRouter;
73}
74
75/**
76 * Helper to parse and validate a numeric ID parameter

Callers 1

createAddieAdminRouterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected