MCPcopy
hub / github.com/codeaashu/claude-code / getConnectedIdeClient

Function getConnectedIdeClient

src/utils/ide.ts:1251–1264  ·  view source on GitHub ↗
(
  mcpClients?: MCPServerConnection[],
)

Source from the content-addressed store, hash-verified

1249 * @returns The connected IDE client, or undefined if not found
1250 */
1251export function getConnectedIdeClient(
1252 mcpClients?: MCPServerConnection[],
1253): ConnectedMCPServer | undefined {
1254 if (!mcpClients) {
1255 return undefined
1256 }
1257
1258 const ideClient = mcpClients.find(
1259 client => client.type === 'connected' && client.name === 'ide',
1260 )
1261
1262 // Type guard to ensure we return the correct type
1263 return ideClient?.type === 'connected' ? ideClient : undefined
1264}
1265
1266/**
1267 * Notifies the IDE that a new prompt has been submitted.

Callers 8

REPLFunction · 0.85
handleQueryStartMethod · 0.85
showDiffFunction · 0.85
closeTabInIDEFunction · 0.85
showDiffInIDEFunction · 0.85
useIdeLoggingFunction · 0.85
useIdeAtMentionedFunction · 0.85
useIdeSelectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected