LensStudio:Mcp
ModuleModel 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
| Class | Description |
|---|---|
| IMcpServer | Plugin component interface for the editor MCP server, exposing connection details and runtime status. |