methods

Version

Controls the optional MCP methods accepted by mcpProtection.

initialize and ping are always allowed. Unsupported MCP methods are always rejected.

Syntax

methods:
notifications: <boolean>
toolsCall: <boolean>
toolsList: <boolean>
methods:
  notifications: <boolean>
  toolsCall: <boolean>
  toolsList: <boolean>

Attributes

NameRequiredDefaultDescriptionExamples
notificationsfalsetrueEnables MCP methods whose names start with notifications/.-
toolsCallfalsetrueEnables the MCP tools/call method.-
toolsListfalsetrueEnables the MCP tools/list method.-

Can be used in