API ReferenceEditor.Mcp

McpServerclass

A Model Context Protocol server embedded in the editor process, letting AI agents like Claude Code drive the editor. Speaks the streamable HTTP transport (plain JSON responses, no server initiated streams). Binds loopback only and dies with the editor - it must never be reachable from beyond this machine.

objectMcpServer
Namespace
Editor.Mcp
Assembly
Sandbox.Tools
Declaration
public static abstract sealed class Editor.Mcp.McpServer

Properties3

Showing 3 properties

public static bool Editor.Mcp.McpServer.IsRunning { get; set; }PUBLICSTATICGETSET

Returns:bool

public static int Editor.Mcp.McpServer.Port { get; set; }PUBLICSTATICGETSET

The port we're listening on. Meaningless when not running.

Returns:int

public static string Editor.Mcp.McpServer.Url { get; set; }PUBLICSTATICGETSET

The url MCP clients should connect to, null when not running.

Returns:string

On this page