MCPcopy Create free account
hub / github.com/apache/maka / stripTrailing

Function stripTrailing

packages/runtime/src/test-connection.ts:458–460  ·  view source on GitHub ↗
(u: string)

Source from the content-addressed store, hash-verified

456}
457
458function stripTrailing(u: string): string {
459 return u.replace(/\/+$/, '');
460}
461
462function classifyHttpStatus(statusCode: number): ConnectionTestResult['errorClass'] {
463 if (statusCode === 401 || statusCode === 403) return 'auth';

Callers 4

probeOpenAIResponsesFunction · 0.70
probeCohereFunction · 0.70
probeOpenAIFunction · 0.70
probeGoogleFunction · 0.70

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected