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
| File | Lines | Importance | Exports |
|---|---|---|---|
| services/mcp/client.ts | 3349 | high | McpAuthError, McpToolCallError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, isMcpSessionExpiredError, clearMcpAuthCache |
| services/mcp/auth.ts | 2466 | high | normalizeOAuthErrorBody, AuthenticationCancelledError, getServerKey, hasMcpDiscoveryButNoToken |
| services/mcp/config.ts | 1579 | high | getEnterpriseMcpFilePath, unwrapCcrProxyUrl, getMcpServerSignature, dedupPluginMcpServers |
| components/mcp/ElicitationDialog.tsx | 1169 | high | ElicitationDialog |
| services/mcp/useManageMCPConnections.ts | 1142 | high | useManageMCPConnections |
| utils/plugins/mcpbHandler.ts | 969 | high | UserConfigValues, UserConfigSchema, McpbLoadResult, McpbNeedsConfigResult |
| components/mcp/MCPRemoteServerMenu.tsx | 649 | high | MCPRemoteServerMenu |
| utils/plugins/mcpPluginIntegration.ts | 635 | high | loadPluginMcpServers, UnconfiguredChannel, getUnconfiguredChannels, addPluginScopeToServers |
| tools/MCPTool/classifyForCollapse.ts | 605 | high | classifyMcpToolForCollapse |
| services/mcp/utils.ts | 576 | high | filterToolsByServer, commandBelongsToServer, filterCommandsByServer, filterMcpPromptsByServer |
| services/mcp/xaa.ts | 512 | high | XaaTokenExchangeError, ProtectedResourceMetadata, discoverProtectedResource, AuthorizationServerMetadata |
| components/mcp/MCPListPanel.tsx | 504 | high | MCPListPanel |
| services/mcp/xaaIdpLogin.ts | 488 | high | isXaaEnabled, XaaIdpSettings, getXaaIdpSettings, IdpLoginOptions |
| tools/MCPTool/UI.tsx | 403 | high | renderToolUseMessage, renderToolUseProgressMessage, renderToolResultMessage, tryFlattenJson |
| components/mcp/MCPSettings.tsx | 398 | high | MCPSettings |
| cli/handlers/mcp.tsx | 362 | high | mcpServeHandler, mcpRemoveHandler, mcpListHandler, mcpGetHandler |
| utils/mcp/elicitationValidation.ts | 337 | high | ValidationResult, isEnumSchema, isMultiSelectEnumSchema, getMultiSelectValues |
| services/mcp/channelNotification.ts | 317 | high | ChannelMessageNotificationSchema, CHANNEL_PERMISSION_METHOD, ChannelPermissionNotificationSchema, CHANNEL_PERMISSION_REQUEST_METHOD |
| services/mcp/elicitationHandler.ts | 314 | high | ElicitationWaitingState, ElicitationRequestEvent, registerElicitationHandler, runElicitationHooks |
| commands/mcp/addCommand.ts | 281 | high | registerMcpAddCommand |
| commands/mcp/xaaIdpCommand.ts | 267 | high | registerMcpXaaIdpCommand |
| services/mcp/types.ts | 259 | high | ConfigScopeSchema, ConfigScope, TransportSchema, Transport |
| services/mcp/channelPermissions.ts | 241 | high | isChannelPermissionRelayEnabled, ChannelPermissionResponse, ChannelPermissionCallbacks, PERMISSION_REPLY_RE |
| tools/McpAuthTool/McpAuthTool.ts | 216 | high | McpAuthOutput, createMcpAuthTool |
| components/mcp/McpParsingWarnings.tsx | 213 | high | McpParsingWarnings |
| components/mcp/MCPToolDetailView.tsx | 212 | high | MCPToolDetailView |
| utils/mcpValidation.ts | 209 | high | MCP_TOKEN_COUNT_THRESHOLD_FACTOR, IMAGE_TOKEN_ESTIMATE, getMaxMcpOutputTokens, MCPToolResult |
| components/MCPServerDesktopImportDialog.tsx | 203 | high | MCPServerDesktopImportDialog |
| utils/mcpOutputStorage.ts | 190 | high | getFormatDescription, getLargeOutputInstructions, extensionForMimeType, isBinaryContentType |
| components/mcp/MCPAgentServerMenu.tsx | 183 | high | MCPAgentServerMenu |
| components/mcp/MCPStdioServerMenu.tsx | 177 | high | MCPStdioServerMenu |
| components/mcp/MCPReconnect.tsx | 167 | high | MCPReconnect |
| services/mcp/claudeai.ts | 165 | high | fetchClaudeAIMcpConfigsIfEligible, clearClaudeAIMcpConfigsCache, markClaudeAiMcpConnected, hasClaudeAiMcpEverConnected |
| tools/ReadMcpResourceTool/ReadMcpResourceTool.ts | 159 | high | inputSchema, outputSchema, Output, ReadMcpResourceTool |
| components/mcp/MCPToolListView.tsx | 141 | high | MCPToolListView |
| services/mcp/headersHelper.ts | 139 | high | getMcpHeadersFromHelper, getMcpServerHeaders |
| services/mcp/SdkControlTransport.ts | 137 | high | SendMcpMessageCallback, SdkControlClientTransport, SdkControlServerTransport |
| components/MCPServerMultiselectDialog.tsx | 133 | high | MCPServerMultiselectDialog |
| tools/ListMcpResourcesTool/ListMcpResourcesTool.ts | 124 | high | Output, ListMcpResourcesTool |
| components/MCPServerApprovalDialog.tsx | 115 | high | MCPServerApprovalDialog |
| services/mcp/vscodeSdkMcp.ts | 113 | high | LogEventNotificationSchema, notifyVscodeFileUpdated, setupVscodeSdkMcp |
| services/mcp/mcpStringUtils.ts | 107 | high | mcpInfoFromString, getMcpPrefix, buildMcpToolName, getToolNameForPermissionCheck |
| commands/mcp/mcp.tsx | 85 | high | call |
| services/mcp/oauthPort.ts | 79 | high | buildRedirectUri, findAvailablePort |
| tools/MCPTool/MCPTool.ts | 78 | high | inputSchema, outputSchema, Output, MCPTool |
| services/mcp/channelAllowlist.ts | 77 | high | ChannelAllowlistEntry, getChannelAllowlist, isChannelsEnabled, isChannelAllowlisted |
| services/mcp/MCPConnectionManager.tsx | 73 | high | useMcpReconnect, useMcpToggleEnabled, MCPConnectionManager |
| services/mcp/officialRegistry.ts | 73 | high | prefetchOfficialMcpUrls, isOfficialMcpUrl, resetOfficialMcpUrlsForTesting |
| services/mcp/InProcessTransport.ts | 64 | high | createLinkedTransportPair |
| components/mcp/CapabilitiesSection.tsx | 61 | high | CapabilitiesSection |
| components/mcp/utils/reconnectHelpers.tsx | 49 | high | ReconnectResult, handleReconnectResult, handleReconnectError |
| services/mcpServerApproval.tsx | 41 | high | handleMcpjsonServerApprovals |
| services/mcp/envExpansion.ts | 39 | high | expandEnvVarsInString |
| tools/ReadMcpResourceTool/UI.tsx | 37 | high | renderToolUseMessage, userFacingName, renderToolResultMessage |
| tools/ListMcpResourcesTool/UI.tsx | 29 | high | renderToolUseMessage, renderToolResultMessage |
| services/mcp/normalization.ts | 24 | high | normalizeNameForMCP |
| tools/ListMcpResourcesTool/prompt.ts | 21 | high | LIST_MCP_RESOURCES_TOOL_NAME, DESCRIPTION, PROMPT |
| tools/ReadMcpResourceTool/prompt.ts | 17 | high | DESCRIPTION, PROMPT |
| components/MCPServerDialogCopy.tsx | 15 | high | MCPServerDialogCopy |
| commands/mcp/index.ts | 13 | high | — |
| components/mcp/index.ts | 10 | high | MCPAgentServerMenu, MCPListPanel, MCPReconnect, MCPRemoteServerMenu |
| tools/MCPTool/prompt.ts | 4 | high | PROMPT, DESCRIPTION |
| utils/claudeInChrome/mcpServer.ts | 294 | medium | createChromeContext, runClaudeInChromeMcpServer |
| utils/mcpWebSocketTransport.ts | 201 | medium | WebSocketTransport |
| entrypoints/mcp.ts | 197 | medium | startMCPServer |
| utils/mcpInstructionsDelta.ts | 131 | medium | McpInstructionsDelta, ClientSideInstruction, isMcpInstructionsDeltaEnabled, getMcpInstructionsDelta |
| utils/mcp/dateTimeParser.ts | 122 | medium | DateTimeParseResult, parseNaturalLanguageDateTime, looksLikeISO8601 |
| migrations/migrateEnableAllProjectMcpServersToSettings.ts | 119 | medium | migrateEnableAllProjectMcpServersToSettings |
| utils/computerUse/mcpServer.ts | 107 | medium | createComputerUseMcpServerForCli, runComputerUseMcpServer |
| hooks/notifs/useMcpConnectivityStatus.tsx | 88 | medium | useMcpConnectivityStatus |
| skills/mcpSkillBuilders.ts | 45 | medium | MCPSkillBuilders, registerMCPSkillBuilders, getMCPSkillBuilders |