@akiojin/unity-mcp-server 4.2.0 → 4.2.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 +1 -1
- package/src/handlers/addressables/AddressablesAnalyzeToolHandler.js +2 -2
- package/src/handlers/addressables/AddressablesBuildToolHandler.js +2 -2
- package/src/handlers/addressables/AddressablesManageToolHandler.js +2 -2
- package/src/handlers/input/InputSystemControlToolHandler.js +1 -1
- package/src/handlers/input/InputTouchToolHandler.js +2 -2
- package/src/handlers/package/PackageManagerToolHandler.js +2 -2
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import { BaseToolHandler } from '../base/BaseToolHandler.js';
|
|
|
7
7
|
export default class AddressablesAnalyzeToolHandler extends BaseToolHandler {
|
|
8
8
|
constructor(unityConnection) {
|
|
9
9
|
super(
|
|
10
|
-
'
|
|
10
|
+
'analyze_addressables',
|
|
11
11
|
'Analyze Unity Addressables for duplicates, dependencies, and unused assets',
|
|
12
12
|
{
|
|
13
13
|
type: 'object',
|
|
@@ -68,7 +68,7 @@ export default class AddressablesAnalyzeToolHandler extends BaseToolHandler {
|
|
|
68
68
|
await this.unityConnection.connect();
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
const result = await this.unityConnection.sendCommand('
|
|
71
|
+
const result = await this.unityConnection.sendCommand('analyze_addressables', {
|
|
72
72
|
action,
|
|
73
73
|
...parameters
|
|
74
74
|
});
|
|
@@ -6,7 +6,7 @@ import { BaseToolHandler } from '../base/BaseToolHandler.js';
|
|
|
6
6
|
*/
|
|
7
7
|
export default class AddressablesBuildToolHandler extends BaseToolHandler {
|
|
8
8
|
constructor(unityConnection) {
|
|
9
|
-
super('
|
|
9
|
+
super('build_addressables', 'Build Unity Addressables content or clean build cache', {
|
|
10
10
|
type: 'object',
|
|
11
11
|
properties: {
|
|
12
12
|
action: {
|
|
@@ -75,7 +75,7 @@ export default class AddressablesBuildToolHandler extends BaseToolHandler {
|
|
|
75
75
|
const timeout = 300000; // 5 minutes
|
|
76
76
|
|
|
77
77
|
const result = await this.unityConnection.sendCommand(
|
|
78
|
-
'
|
|
78
|
+
'build_addressables',
|
|
79
79
|
{
|
|
80
80
|
action,
|
|
81
81
|
...parameters
|
|
@@ -7,7 +7,7 @@ import { BaseToolHandler } from '../base/BaseToolHandler.js';
|
|
|
7
7
|
export default class AddressablesManageToolHandler extends BaseToolHandler {
|
|
8
8
|
constructor(unityConnection) {
|
|
9
9
|
super(
|
|
10
|
-
'
|
|
10
|
+
'manage_addressables',
|
|
11
11
|
'Manage Unity Addressables assets and groups - add, remove, organize entries and groups',
|
|
12
12
|
{
|
|
13
13
|
type: 'object',
|
|
@@ -141,7 +141,7 @@ export default class AddressablesManageToolHandler extends BaseToolHandler {
|
|
|
141
141
|
await this.unityConnection.connect();
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
const result = await this.unityConnection.sendCommand('
|
|
144
|
+
const result = await this.unityConnection.sendCommand('manage_addressables', {
|
|
145
145
|
action,
|
|
146
146
|
...parameters
|
|
147
147
|
});
|
|
@@ -5,7 +5,7 @@ import { BaseToolHandler } from '../base/BaseToolHandler.js';
|
|
|
5
5
|
*/
|
|
6
6
|
export class InputSystemControlToolHandler extends BaseToolHandler {
|
|
7
7
|
constructor(unityConnection) {
|
|
8
|
-
super('
|
|
8
|
+
super('control_input_system', 'Main handler for Input System operations', {
|
|
9
9
|
type: 'object',
|
|
10
10
|
properties: {
|
|
11
11
|
operation: {
|
|
@@ -127,7 +127,7 @@ function validateTouchAction(params, context = 'action') {
|
|
|
127
127
|
*/
|
|
128
128
|
export class InputTouchToolHandler extends BaseToolHandler {
|
|
129
129
|
constructor(unityConnection) {
|
|
130
|
-
super('
|
|
130
|
+
super('simulate_touch', 'Touch input (tap/swipe/pinch/multi) with batching.', {
|
|
131
131
|
type: 'object',
|
|
132
132
|
properties: {
|
|
133
133
|
...actionProperties,
|
|
@@ -181,7 +181,7 @@ export class InputTouchToolHandler extends BaseToolHandler {
|
|
|
181
181
|
const hasBatch = Array.isArray(params.actions) && params.actions.length > 0;
|
|
182
182
|
const payload = hasBatch ? { actions: params.actions } : params;
|
|
183
183
|
|
|
184
|
-
const result = await this.unityConnection.sendCommand('
|
|
184
|
+
const result = await this.unityConnection.sendCommand('simulate_touch', payload);
|
|
185
185
|
return result;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
@@ -7,7 +7,7 @@ import { BaseToolHandler } from '../base/BaseToolHandler.js';
|
|
|
7
7
|
|
|
8
8
|
export default class PackageManagerToolHandler extends BaseToolHandler {
|
|
9
9
|
constructor(unityConnection) {
|
|
10
|
-
super('
|
|
10
|
+
super('manage_packages', 'Manage Unity packages - search, install, remove, and list packages', {
|
|
11
11
|
type: 'object',
|
|
12
12
|
properties: {
|
|
13
13
|
action: {
|
|
@@ -84,7 +84,7 @@ export default class PackageManagerToolHandler extends BaseToolHandler {
|
|
|
84
84
|
await this.unityConnection.connect();
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
const result = await this.unityConnection.sendCommand('
|
|
87
|
+
const result = await this.unityConnection.sendCommand('manage_packages', {
|
|
88
88
|
action,
|
|
89
89
|
...parameters
|
|
90
90
|
});
|