MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / invalidRequest

Function invalidRequest

packages/web/src/ee/features/chat/mcp/actions.ts:118–124  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

116}
117
118function invalidRequest(message: string): ServiceError {
119 return {
120 statusCode: StatusCodes.BAD_REQUEST,
121 errorCode: ErrorCode.INVALID_REQUEST_BODY,
122 message,
123 };
124}
125
126function assertHttpsAuthUrlInProduction(): ServiceError | undefined {
127 if (env.NODE_ENV !== 'production') {

Callers 2

prepareMcpServerCreateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected