Model Context Protocol module exposing the in-editor MCP server interface for plugin integrations.
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})`); Copy
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})`);
Model Context Protocol module exposing the in-editor MCP server interface for plugin integrations.
Example