MCP server registration and tool availability
Overview
The provided source does not contain the MCP config-loading, client-connection, or tool-merging code paths needed to answer this question precisely .
Steps
- The whitelist exposes only a single MCP-related symbol,
setAppStateinentrypoints/mcp.ts, which is a no-op stub and not part of the registration pipeline . - The closest visible touchpoint is the headless run loop, which reads already-populated MCP clients from app state by combining
appState.mcp.clients,sdkClients, anddynamicMcpState.clientseach turn . - Those combined clients are then passed into
buildAllTools(appState)so MCP tools merge with base tools before the turn executes, butbuildAllToolsitself is not in the whitelist . QueryEngine.submitMessagelikewise consumesmcpClientsfrom its config and forwards them into system-prompt assembly and the per-turn tool list, but does not itself load configs or connect clients .- The config-file loader, MCP client connection logic, and tool-merge function (e.g.
buildAllTools,useManageMCPConnections, MCP config parsing) are not present in the supplied whitelist or source, so the full flow from config file → client connect → tool merge cannot be traced here .
State touched
(The actual MCP client/config/tool state — appState.mcp, dynamicMcpState, SdkMcpState — is referenced by schema but not exposed as [state:...] tokens in the whitelist .)
Decisions
None available in the provided context .