HostedMcpServerTool class

A tool representing a hosted MCP server.

This is an experimental feature.

Inheritance

Constructors

HostedMcpServerTool({required String serverName, Uri? serverAddress, String? authorizationToken, String? serverDescription, List<String>? allowedTools, HostedMcpServerToolApprovalMode? approvalMode, Map<String, String>? headers})
Creates a new HostedMcpServerTool.

Properties

additionalProperties AdditionalPropertiesDictionary?
Additional properties.
getter/setter pairinherited
allowedTools List<String>?
The list of allowed tool names.
final
approvalMode HostedMcpServerToolApprovalMode?
The approval mode for tool calls.
final
authorizationToken String?
The authorization token.
final
description String?
A description of the tool.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
Additional HTTP headers.
final
name String
The name of the tool.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverAddress Uri?
The address of the MCP server.
final
serverDescription String?
A description of the MCP server.
final
serverName String
The name of the MCP server.
final

Methods

getService<T>({Object? key}) → T?
Gets a service of the specified type.
inherited
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