@akiojin/unity-mcp-server 2.43.1 → 2.43.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/core/server.js +35 -34
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akiojin/unity-mcp-server",
3
- "version": "2.43.1",
3
+ "version": "2.43.2",
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",
@@ -261,40 +261,41 @@ export async function startServer(options = {}) {
261
261
  process.on('SIGTERM', stopWatch);
262
262
 
263
263
  // Auto-initialize code index if DB doesn't exist
264
- (async () => {
265
- try {
266
- const { CodeIndex } = await import('./codeIndex.js');
267
- const index = new CodeIndex(unityConnection);
268
- const ready = await index.isReady();
269
-
270
- if (!ready) {
271
- if (index.disabled) {
272
- logger.warning(
273
- `[startup] Code index disabled: ${index.disableReason || 'SQLite native binding missing'}. Skipping auto-build.`
274
- );
275
- return;
276
- }
277
- logger.info('[startup] Code index DB not ready. Starting auto-build...');
278
- const { CodeIndexBuildToolHandler } = await import(
279
- '../handlers/script/CodeIndexBuildToolHandler.js'
280
- );
281
- const builder = new CodeIndexBuildToolHandler(unityConnection);
282
- const result = await builder.execute({});
283
-
284
- if (result.success) {
285
- logger.info(
286
- `[startup] Code index auto-build started: jobId=${result.jobId}. Use code_index_status to check progress.`
287
- );
288
- } else {
289
- logger.warning(`[startup] Code index auto-build failed: ${result.message}`);
290
- }
291
- } else {
292
- logger.info('[startup] Code index DB already exists. Skipping auto-build.');
293
- }
294
- } catch (e) {
295
- logger.warning(`[startup] Code index auto-init failed: ${e.message}`);
296
- }
297
- })();
264
+ // DISABLED: Investigating Issue #168 - npx timeout with Claude Code
265
+ // (async () => {
266
+ // try {
267
+ // const { CodeIndex } = await import('./codeIndex.js');
268
+ // const index = new CodeIndex(unityConnection);
269
+ // const ready = await index.isReady();
270
+
271
+ // if (!ready) {
272
+ // if (index.disabled) {
273
+ // logger.warning(
274
+ // `[startup] Code index disabled: ${index.disableReason || 'SQLite native binding missing'}. Skipping auto-build.`
275
+ // );
276
+ // return;
277
+ // }
278
+ // logger.info('[startup] Code index DB not ready. Starting auto-build...');
279
+ // const { CodeIndexBuildToolHandler } = await import(
280
+ // '../handlers/script/CodeIndexBuildToolHandler.js'
281
+ // );
282
+ // const builder = new CodeIndexBuildToolHandler(unityConnection);
283
+ // const result = await builder.execute({});
284
+
285
+ // if (result.success) {
286
+ // logger.info(
287
+ // `[startup] Code index auto-build started: jobId=${result.jobId}. Use code_index_status to check progress.`
288
+ // );
289
+ // } else {
290
+ // logger.warning(`[startup] Code index auto-build failed: ${result.message}`);
291
+ // }
292
+ // } else {
293
+ // logger.info('[startup] Code index DB already exists. Skipping auto-build.');
294
+ // }
295
+ // } catch (e) {
296
+ // logger.warning(`[startup] Code index auto-init failed: ${e.message}`);
297
+ // }
298
+ // })();
298
299
 
299
300
  // Handle shutdown
300
301
  process.on('SIGINT', async () => {