McpHttpServerConfig class final

An HTTP MCP server. Mirrors McpHttpServerConfig.

Inheritance

Constructors

McpHttpServerConfig({required String url, Map<String, String>? headers, List<McpServerToolPolicy>? tools, bool? alwaysLoad})
McpHttpServerConfig.fromJson(Map<String, dynamic> json)
Parses from wire JSON.
factory

Properties

alwaysLoad → bool?
Whether the server's tools are always loaded.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>?
Request headers.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tools → List<McpServerToolPolicy>?
Per-tool permission policies.
final
type → String
The server type discriminator.
no setteroverride
url → String
The HTTP endpoint URL.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes to wire JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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