MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / isLikelyMcpProcessCommand

Function isLikelyMcpProcessCommand

src/server/mcp-lifecycle.ts:180–193  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

178}
179
180function isLikelyMcpProcessCommand(command: string): boolean {
181 const normalized = command.toLowerCase();
182 if (!/(^|\s)mcp(\s|$)/.test(normalized)) {
183 return false;
184 }
185 if (/(^|\s)daemon(\s|$)/.test(normalized)) {
186 return false;
187 }
188 return (
189 normalized.includes('xcodebuildmcp') ||
190 normalized.includes('build/cli.js') ||
191 normalized.includes('/cli.js')
192 );
193}
194
195function isBrokenPipeLikeError(error: unknown): boolean {
196 if (!(error instanceof Error)) {

Callers 1

sampleMcpPeerProcessesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected