fix(mcp): auto-redirect to active session when no sessionId provided (#634)

Fixes #633 - browser showing infinite loading spinner when accessing
the MCP server URL without the session parameter.

When users access http://localhost:6002 directly (without ?mcp=xxx),
the page now auto-redirects to the most recent active session instead
of showing "No session" with an infinite loading spinner.
This commit is contained in:
Dayuan Jiang
2026-01-24 11:03:58 +09:00
committed by GitHub
parent b0313eb2dc
commit 0ed06360aa
2 changed files with 23 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@next-ai-drawio/mcp-server",
"version": "0.1.13",
"version": "0.1.14",
"description": "MCP server for Next AI Draw.io - AI-powered diagram generation with real-time browser preview",
"type": "module",
"main": "dist/index.js",