MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / initializeHubRuntime

Function initializeHubRuntime

packages/mcp-server/src/hub.ts:607–616  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

605 mcp.server.setNotificationHandler(ClientEventSchema, (notification) =>
606 agentClients.event(ownerId, notification)
607 )
608 mcp.server.setRequestHandler(ClientHookRequestSchema, (request) =>
609 agentClients.clientHook(request.params)
610 )
611
612 const registered: string[] = []
613 for (const tool of TOOL_DEFINITIONS) {
614 if ('exposed' in tool && tool.exposed === false) continue
615 registerTool(mcp, tool, ownerId)
616 registered.push(tool.name)
617 }
618 log.info({ tools: registered }, 'Registered tools.')
619

Callers 1

startHubRuntimeFunction · 0.85

Calls 7

ensureDirFunction · 0.90
probeSocketPathFunction · 0.85
exitExistingHubFunction · 0.85
acquireHubLockFunction · 0.85
cleanSocketPathFunction · 0.85
scheduleAssetCleanupFunction · 0.85
startMethod · 0.80

Tested by

no test coverage detected