HostedMcpServerToolApprovalMode class sealed

Approval mode for hosted MCP server tools.

This is an experimental feature.

Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

requireSpecific({List<String>? allowedTools, List<String>? deniedTools}) HostedMcpServerToolRequireSpecificApprovalMode
Require approval for specific tools.

Constants

alwaysRequire → const HostedMcpServerToolAlwaysRequireApprovalMode
Always require approval.
neverRequire → const HostedMcpServerToolNeverRequireApprovalMode
Never require approval.