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

Function initializeMCPServer

server/src/mcp/server.ts:232–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230 * This just pre-creates handlers and verifies readiness.
231 */
232export async function initializeMCPServer(): Promise<void> {
233 logger.info('MCP: Initializing unified server...');
234
235 // Initialize knowledge search if not already done (e.g., in tests or standalone mode)
236 if (!isKnowledgeReady()) {
237 await initializeKnowledgeSearch();
238 }
239
240 // Pre-create handlers
241 getHandlers();
242
243 logger.info({ ready: isKnowledgeReady() }, 'MCP: Unified server ready');
244}
245
246/**
247 * Check if MCP server is ready

Callers

nothing calls this directly

Calls 3

isKnowledgeReadyFunction · 0.85
getHandlersFunction · 0.85

Tested by

no test coverage detected