Skip to main content

LensStudio:Mcp

Module

Model Context Protocol module exposing the in-editor MCP server interface for plugin integrations.

Example

const { IMcpServer } = await import('LensStudio:Mcp');
const server = this.pluginSystem.findInterface(IMcpServer) as IMcpServer;

if (Editor.isNull(server) || !server.isRunning()) {
console.log('MCP server not running');
return;
}
console.log(`MCP server: ${server.getServerUrl()} (token len=${server.getServerToken().length})`);

Classes

ClassDescription
IMcpServerPlugin component interface for the editor MCP server, exposing connection details and runtime status.