McpHttpServerDefinition

McpHttpServerDefinition represents an MCP server available using the Streamable HTTP transport.

Online Documentation

Constructors

Link copied to clipboard
constructor(label: String, uri: Uri, headers: ReadonlyRecord<ERROR CLASS: Symbol not found for JsString, ERROR CLASS: Symbol not found for JsString> = definedExternally, version: String = definedExternally)

Properties

Link copied to clipboard
var headers: ReadonlyRecord<ERROR CLASS: Symbol not found for JsString, ERROR CLASS: Symbol not found for JsString>

Optional additional heads included with each request to the server.

Link copied to clipboard

The human-readable name of the server.

Link copied to clipboard
var uri: Uri

The URI of the server. The editor will make a POST request to this URI to begin each session.

Link copied to clipboard

Optional version identification for the server. If this changes, the editor will indicate that tools have changed and prompt to refresh them.