MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isCodeGraphServerCommandLine

Function isCodeGraphServerCommandLine

src/mcp/process-identity.ts:125–128  ·  view source on GitHub ↗
(commandLine: string)

Source from the content-addressed store, hash-verified

123 * arguments.
124 */
125export function isCodeGraphServerCommandLine(commandLine: string): boolean {
126 const args = commandLine.replace(/["']/g, ' ').split(/\s+/);
127 return /codegraph/i.test(commandLine) && args.includes('serve') && args.some((a) => a === '--mcp' || a.startsWith('--mcp='));
128}
129
130/** Whether an executable could be a JavaScript runtime that runs CodeGraph. */
131function mayRunCodeGraph(name: string): boolean {

Callers 2

classifyLockHolderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected