v2 ESlint fixes (#1403)
Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com>
This commit is contained in:
parent
9296459ac0
commit
9fc7e28f48
3 changed files with 1672 additions and 1346 deletions
|
|
@ -21,4 +21,3 @@ Most servers use:
|
|||
- `@modelcontextprotocol/server` for the MCP server implementation
|
||||
- one middleware package for framework/runtime integration (this folder)
|
||||
- (optionally) additional platform/framework dependencies (Express, Hono, etc.)
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export function hostHeaderValidation(allowedHostnames: string[]): RequestHandler
|
|||
res.status(403).json({
|
||||
jsonrpc: '2.0',
|
||||
error: {
|
||||
code: -32000,
|
||||
code: -32_000,
|
||||
message: result.message
|
||||
},
|
||||
id: null
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export function hostHeaderValidation(allowedHostnames: string[]): MiddlewareHand
|
|||
{
|
||||
jsonrpc: '2.0',
|
||||
error: {
|
||||
code: -32000,
|
||||
code: -32_000,
|
||||
message: result.message
|
||||
},
|
||||
id: null
|
||||
|
|
|
|||
Loading…
Reference in a new issue