get_browser_connection_url
Retrieve the URL to connect a browser-based 3D visualization application for real-time scene manipulation through WebSocket communication.
Instructions
Get the URL to open in your browser to connect the 3D visualization app. Use this when users ask how to connect or how to open the 3D app.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:2812-2853 (registration)Tool registration and handler for get_browser_connection_url - provides a URL with session ID for connecting the browser-based 3D visualization app to the MCP server// Register tool: get_browser_connection_url mcpServer.registerTool( 'get_browser_connection_url', { title: 'Get Browser Connection URL', description: 'Get the URL to open in your browser to connect the 3D visualization app. Use this when users ask how to connect or how to open the 3D app.', inputSchema: {} }, async () => { // In STDIO mode, use the unique STDIO session ID generated at startup // In HTTP mode, get session ID from context let sessionId; if (isStdioMode) { sessionId = STDIO_SESSION_ID; } else { sessionId = sessionContext.getStore(); } if (!sessionId) { return { content: [ { type: 'text', text: 'Error: No active session found. Please ensure the MCP connection is properly initialized.' } ], isError: true }; } const connectionUrl = `${BROWSER_URL}?sessionId=${sessionId}`; return { content: [ { type: 'text', text: `To connect your browser to the 3D visualization app, open this URL:\n\n${connectionUrl}\n\nCopy and paste this URL into your web browser to begin interacting with the 3D scene.` } ] }; } );