MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getServerCommandArray

Function getServerCommandArray

src/services/mcp/config.ts:137–144  ·  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

135 * Returns null for non-stdio servers
136 */
137function getServerCommandArray(config: McpServerConfig): string[] | null {
138 // Non-stdio servers don't have commands
139 if (config.type !== undefined && config.type !== 'stdio') {
140 return null
141 }
142 const stdioConfig = config as McpStdioServerConfig
143 return [stdioConfig.command, ...(stdioConfig.args ?? [])]
144}
145
146/**
147 * 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