ToolPermissionContext
This content is for v0.1. Switch to the latest version for up-to-date documentation.
Defined in: mcp.ts:99
Per-session tool permission context. Deny-list based: tools matching deny_names or deny_prefixes are blocked. Allow-list optional: if allow_names is set, only those tools are permitted (deny-lists still take precedence).
Properties
Section titled “Properties”allow_names?
Section titled “allow_names?”
optionalallow_names?:string[]
Defined in: mcp.ts:102
deny_names?
Section titled “deny_names?”
optionaldeny_names?:string[]
Defined in: mcp.ts:100
deny_prefixes?
Section titled “deny_prefixes?”
optionaldeny_prefixes?:string[]
Defined in: mcp.ts:101
reason?
Section titled “reason?”
optionalreason?:string
Defined in: mcp.ts:103