@akiojin/unity-mcp-server 2.29.0 → 2.30.0
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/README.md +1 -1
- package/package.json +1 -1
- package/src/core/config.js +2 -2
- package/src/core/unityConnection.js +2 -2
package/README.md
CHANGED
package/package.json
CHANGED
package/src/core/config.js
CHANGED
|
@@ -18,7 +18,7 @@ function merge(a, b) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* Base configuration for Unity
|
|
21
|
+
* Base configuration for Unity MCP Server Server
|
|
22
22
|
*/
|
|
23
23
|
const envUnityHost =
|
|
24
24
|
process.env.UNITY_UNITY_HOST ||
|
|
@@ -57,7 +57,7 @@ const baseConfig = {
|
|
|
57
57
|
// Logging settings
|
|
58
58
|
logging: {
|
|
59
59
|
level: process.env.LOG_LEVEL || 'info',
|
|
60
|
-
prefix: '[Unity
|
|
60
|
+
prefix: '[Unity MCP Server]',
|
|
61
61
|
},
|
|
62
62
|
|
|
63
63
|
// Write queue removed: all edits go through structured Roslyn tools.
|
|
@@ -192,7 +192,7 @@ export class UnityConnection extends EventEmitter {
|
|
|
192
192
|
// Check if this is an unframed Unity debug log
|
|
193
193
|
if (data.length > 0 && !this.messageBuffer.length) {
|
|
194
194
|
const dataStr = data.toString('utf8');
|
|
195
|
-
if (dataStr.startsWith('[Unity
|
|
195
|
+
if (dataStr.startsWith('[Unity MCP Server]') || dataStr.startsWith('[Unity]')) {
|
|
196
196
|
logger.debug(`[Unity] Received unframed debug log: ${dataStr.trim()}`);
|
|
197
197
|
// Don't process unframed logs as messages
|
|
198
198
|
return;
|
|
@@ -316,7 +316,7 @@ export class UnityConnection extends EventEmitter {
|
|
|
316
316
|
|
|
317
317
|
// Check if this looks like a Unity log message
|
|
318
318
|
const messageStr = messageData.toString();
|
|
319
|
-
if (messageStr.includes('[Unity
|
|
319
|
+
if (messageStr.includes('[Unity MCP Server]')) {
|
|
320
320
|
logger.debug('[Unity] Received Unity log message instead of JSON response');
|
|
321
321
|
// Don't treat this as a critical error
|
|
322
322
|
}
|