MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / methodNotAllowed

Function methodNotAllowed

mcp/src/http-server.ts:166–170  ·  view source on GitHub ↗
(_req: Request, res: Response)

Source from the content-addressed store, hash-verified

164}
165
166function methodNotAllowed(_req: Request, res: Response): void {
167 res
168 .status(405)
169 .json(jsonRpcError(null, -32000, "Method not allowed: the e2a MCP server is stateless"));
170}
171
172// resourceMetadataURL returns the value the `WWW-Authenticate` header
173// should advertise. Honors publicUrl when set (local-dev http), falls

Callers

nothing calls this directly

Calls 1

jsonRpcErrorFunction · 0.85

Tested by

no test coverage detected