@akiojin/unity-mcp-server 2.42.0 → 2.42.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akiojin/unity-mcp-server",
3
- "version": "2.42.0",
3
+ "version": "2.42.1",
4
4
  "description": "MCP server and Unity Editor bridge — enables AI assistants to control Unity for AI-assisted workflows",
5
5
  "type": "module",
6
6
  "main": "src/core/server.js",
@@ -50,7 +50,7 @@
50
50
  "author": "Akio Jinsenji <akio-jinsenji@cloud-creative-studios.com>",
51
51
  "license": "MIT",
52
52
  "dependencies": {
53
- "@modelcontextprotocol/sdk": "^0.6.1",
53
+ "@modelcontextprotocol/sdk": "^1.24.0",
54
54
  "better-sqlite3": "^9.4.3",
55
55
  "find-up": "^6.3.0"
56
56
  },
@@ -154,9 +154,9 @@ export class LspRpcClient {
154
154
  const msg = String((e && e.message) || e);
155
155
  const recoverable = /timed out|LSP process exited/i.test(msg);
156
156
  if (recoverable && attempt === 1) {
157
- // Auto-reinit and retry once
157
+ // Auto-reinit and retry once with grace period for proper LSP shutdown
158
158
  try {
159
- await this.mgr.stop(0);
159
+ await this.mgr.stop(3000);
160
160
  } catch {}
161
161
  this.proc = null;
162
162
  this.initialized = false;