Skip to main content
Glama

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
NameRequiredDescriptionDefault

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.` } ] }; } );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aidenlab/hello3dmcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server