McpHttpServerConfig class final
A remote MCP server reached over HTTP.
- Inheritance
-
- Object
- McpServerConfig
- McpHttpServerConfig
Constructors
-
McpHttpServerConfig({required String name, required String url, McpHttpTransportKind transport = McpHttpTransportKind.streamableHttp, Map<
String, String> headers = const {}}) -
Creates a remote server config.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
-
headers
→ Map<
String, String> -
Extra HTTP headers (e.g.
Authorization).final - name → String
-
The server name (the
mcp.serverskey).finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transport → McpHttpTransportKind
-
The wire transport (streamable HTTP or legacy SSE).
final
- url → String
-
The MCP endpoint URL.
final
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 -
Value equality: the settings flow's live reload diffs sections by
comparing server entries (issue #396) — a byte-equal entry keeps its
live connection, a changed one reconnects.
override