Architecture

MCP

Model Context Protocol-related files, servers, transports, and integration surfaces.

71
Matched files
10
Top dirs
23,118
Lines in slice
333
Exports found
Heuristic
Classification style

Beginner explanation

This architecture page groups files that seem to solve the same type of problem. It is a good way to understand the repo as a system rather than as a list of folders.

Beginner mental model

Read the first few high-importance files here, then follow their related-file links.

Expert explanation

This slice is assembled with path heuristics, which makes it strong for navigation and code reading but not a replacement for runtime tracing. Use it to discover likely boundaries, then validate by reading imports, exports, and orchestrator files.

Related files

FileLinesImportanceExports
services/mcp/client.ts3349highMcpAuthError, McpToolCallError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, isMcpSessionExpiredError, clearMcpAuthCache
services/mcp/auth.ts2466highnormalizeOAuthErrorBody, AuthenticationCancelledError, getServerKey, hasMcpDiscoveryButNoToken
services/mcp/config.ts1579highgetEnterpriseMcpFilePath, unwrapCcrProxyUrl, getMcpServerSignature, dedupPluginMcpServers
components/mcp/ElicitationDialog.tsx1169highElicitationDialog
services/mcp/useManageMCPConnections.ts1142highuseManageMCPConnections
utils/plugins/mcpbHandler.ts969highUserConfigValues, UserConfigSchema, McpbLoadResult, McpbNeedsConfigResult
components/mcp/MCPRemoteServerMenu.tsx649highMCPRemoteServerMenu
utils/plugins/mcpPluginIntegration.ts635highloadPluginMcpServers, UnconfiguredChannel, getUnconfiguredChannels, addPluginScopeToServers
tools/MCPTool/classifyForCollapse.ts605highclassifyMcpToolForCollapse
services/mcp/utils.ts576highfilterToolsByServer, commandBelongsToServer, filterCommandsByServer, filterMcpPromptsByServer
services/mcp/xaa.ts512highXaaTokenExchangeError, ProtectedResourceMetadata, discoverProtectedResource, AuthorizationServerMetadata
components/mcp/MCPListPanel.tsx504highMCPListPanel
services/mcp/xaaIdpLogin.ts488highisXaaEnabled, XaaIdpSettings, getXaaIdpSettings, IdpLoginOptions
tools/MCPTool/UI.tsx403highrenderToolUseMessage, renderToolUseProgressMessage, renderToolResultMessage, tryFlattenJson
components/mcp/MCPSettings.tsx398highMCPSettings
cli/handlers/mcp.tsx362highmcpServeHandler, mcpRemoveHandler, mcpListHandler, mcpGetHandler
utils/mcp/elicitationValidation.ts337highValidationResult, isEnumSchema, isMultiSelectEnumSchema, getMultiSelectValues
services/mcp/channelNotification.ts317highChannelMessageNotificationSchema, CHANNEL_PERMISSION_METHOD, ChannelPermissionNotificationSchema, CHANNEL_PERMISSION_REQUEST_METHOD
services/mcp/elicitationHandler.ts314highElicitationWaitingState, ElicitationRequestEvent, registerElicitationHandler, runElicitationHooks
commands/mcp/addCommand.ts281highregisterMcpAddCommand
commands/mcp/xaaIdpCommand.ts267highregisterMcpXaaIdpCommand
services/mcp/types.ts259highConfigScopeSchema, ConfigScope, TransportSchema, Transport
services/mcp/channelPermissions.ts241highisChannelPermissionRelayEnabled, ChannelPermissionResponse, ChannelPermissionCallbacks, PERMISSION_REPLY_RE
tools/McpAuthTool/McpAuthTool.ts216highMcpAuthOutput, createMcpAuthTool
components/mcp/McpParsingWarnings.tsx213highMcpParsingWarnings
components/mcp/MCPToolDetailView.tsx212highMCPToolDetailView
utils/mcpValidation.ts209highMCP_TOKEN_COUNT_THRESHOLD_FACTOR, IMAGE_TOKEN_ESTIMATE, getMaxMcpOutputTokens, MCPToolResult
components/MCPServerDesktopImportDialog.tsx203highMCPServerDesktopImportDialog
utils/mcpOutputStorage.ts190highgetFormatDescription, getLargeOutputInstructions, extensionForMimeType, isBinaryContentType
components/mcp/MCPAgentServerMenu.tsx183highMCPAgentServerMenu
components/mcp/MCPStdioServerMenu.tsx177highMCPStdioServerMenu
components/mcp/MCPReconnect.tsx167highMCPReconnect
services/mcp/claudeai.ts165highfetchClaudeAIMcpConfigsIfEligible, clearClaudeAIMcpConfigsCache, markClaudeAiMcpConnected, hasClaudeAiMcpEverConnected
tools/ReadMcpResourceTool/ReadMcpResourceTool.ts159highinputSchema, outputSchema, Output, ReadMcpResourceTool
components/mcp/MCPToolListView.tsx141highMCPToolListView
services/mcp/headersHelper.ts139highgetMcpHeadersFromHelper, getMcpServerHeaders
services/mcp/SdkControlTransport.ts137highSendMcpMessageCallback, SdkControlClientTransport, SdkControlServerTransport
components/MCPServerMultiselectDialog.tsx133highMCPServerMultiselectDialog
tools/ListMcpResourcesTool/ListMcpResourcesTool.ts124highOutput, ListMcpResourcesTool
components/MCPServerApprovalDialog.tsx115highMCPServerApprovalDialog
services/mcp/vscodeSdkMcp.ts113highLogEventNotificationSchema, notifyVscodeFileUpdated, setupVscodeSdkMcp
services/mcp/mcpStringUtils.ts107highmcpInfoFromString, getMcpPrefix, buildMcpToolName, getToolNameForPermissionCheck
commands/mcp/mcp.tsx85highcall
services/mcp/oauthPort.ts79highbuildRedirectUri, findAvailablePort
tools/MCPTool/MCPTool.ts78highinputSchema, outputSchema, Output, MCPTool
services/mcp/channelAllowlist.ts77highChannelAllowlistEntry, getChannelAllowlist, isChannelsEnabled, isChannelAllowlisted
services/mcp/MCPConnectionManager.tsx73highuseMcpReconnect, useMcpToggleEnabled, MCPConnectionManager
services/mcp/officialRegistry.ts73highprefetchOfficialMcpUrls, isOfficialMcpUrl, resetOfficialMcpUrlsForTesting
services/mcp/InProcessTransport.ts64highcreateLinkedTransportPair
components/mcp/CapabilitiesSection.tsx61highCapabilitiesSection
components/mcp/utils/reconnectHelpers.tsx49highReconnectResult, handleReconnectResult, handleReconnectError
services/mcpServerApproval.tsx41highhandleMcpjsonServerApprovals
services/mcp/envExpansion.ts39highexpandEnvVarsInString
tools/ReadMcpResourceTool/UI.tsx37highrenderToolUseMessage, userFacingName, renderToolResultMessage
tools/ListMcpResourcesTool/UI.tsx29highrenderToolUseMessage, renderToolResultMessage
services/mcp/normalization.ts24highnormalizeNameForMCP
tools/ListMcpResourcesTool/prompt.ts21highLIST_MCP_RESOURCES_TOOL_NAME, DESCRIPTION, PROMPT
tools/ReadMcpResourceTool/prompt.ts17highDESCRIPTION, PROMPT
components/MCPServerDialogCopy.tsx15highMCPServerDialogCopy
commands/mcp/index.ts13high
components/mcp/index.ts10highMCPAgentServerMenu, MCPListPanel, MCPReconnect, MCPRemoteServerMenu
tools/MCPTool/prompt.ts4highPROMPT, DESCRIPTION
utils/claudeInChrome/mcpServer.ts294mediumcreateChromeContext, runClaudeInChromeMcpServer
utils/mcpWebSocketTransport.ts201mediumWebSocketTransport
entrypoints/mcp.ts197mediumstartMCPServer
utils/mcpInstructionsDelta.ts131mediumMcpInstructionsDelta, ClientSideInstruction, isMcpInstructionsDeltaEnabled, getMcpInstructionsDelta
utils/mcp/dateTimeParser.ts122mediumDateTimeParseResult, parseNaturalLanguageDateTime, looksLikeISO8601
migrations/migrateEnableAllProjectMcpServersToSettings.ts119mediummigrateEnableAllProjectMcpServersToSettings
utils/computerUse/mcpServer.ts107mediumcreateComputerUseMcpServerForCli, runComputerUseMcpServer
hooks/notifs/useMcpConnectivityStatus.tsx88mediumuseMcpConnectivityStatus
skills/mcpSkillBuilders.ts45mediumMCPSkillBuilders, registerMCPSkillBuilders, getMCPSkillBuilders