MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getServerCommandArray

Function getServerCommandArray

source code/services/mcp/config.ts:139–146  ·  view source on GitHub ↗

* Extract command array from server config (stdio servers only) * Returns null for non-stdio servers

(config: McpServerConfig)

Source from the content-addressed store, hash-verified

137 * Returns null for non-stdio servers
138 */
139function getServerCommandArray(config: McpServerConfig): string[] | null {
140 // Non-stdio servers don't have commands
141 if (config.type !== undefined && config.type !== 'stdio') {
142 return null
143 }
144 const stdioConfig = config as McpStdioServerConfig
145 return [stdioConfig.command, ...(stdioConfig.args ?? [])]
146}
147
148/**
149 * Check if two command arrays match exactly

Callers 3

getMcpServerSignatureFunction · 0.85
isMcpServerDeniedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected