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<JsString, JsString> = definedExternally, version: String = definedExternally)

Properties

Link copied to clipboard
external var headers: ReadonlyRecord<JsString, JsString>

Optional additional heads included with each request to the server.

Link copied to clipboard
external val label: String

The human-readable name of the server.

Link copied to clipboard
external 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
external var version: String?

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