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

Function boundLength

src/ui-server/api/respond.ts:202–207  ·  view source on GitHub ↗
(raw: string, name: string)

Source from the content-addressed store, hash-verified

200}
201
202function boundLength(raw: string, name: string): string {
203 if (raw.length > MAX_QUERY_LENGTH) {
204 throw badRequest(`Parameter "${name}" is too long (max ${MAX_QUERY_LENGTH} characters).`);
205 }
206 return raw;
207}

Callers 2

textParamFunction · 0.85
optionalTextParamFunction · 0.85

Calls 1

badRequestFunction · 0.85

Tested by

no test coverage detected