Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e01f058e3e | ||
|
|
6fc15e5ebe |
@@ -6,6 +6,13 @@ This project follows a simple changelog format inspired by [Keep a Changelog](ht
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.1.4] - 2026-05-11
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed CI test expectations after expanding the documented `core` and `full` tool profiles.
|
||||||
|
- Aligned the latest release line with the current tested `main` branch state.
|
||||||
|
|
||||||
## [0.1.3] - 2026-05-11
|
## [0.1.3] - 2026-05-11
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "funplay-cocos-mcp",
|
"name": "funplay-cocos-mcp",
|
||||||
"package_version": 2,
|
"package_version": 2,
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"description": "Embedded MCP server for Cocos Creator with scene script execution, project resources, prompts, and file/scene tools.",
|
"description": "Embedded MCP server for Cocos Creator with scene script execution, project resources, prompts, and file/scene tools.",
|
||||||
"author": "Funplay",
|
"author": "Funplay",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -19,15 +19,19 @@ function createRegistry(profile, projectPath = path.resolve('/tmp/funplay-cocos-
|
|||||||
|
|
||||||
test('core profile exposes the documented focused tool set', () => {
|
test('core profile exposes the documented focused tool set', () => {
|
||||||
const tools = createRegistry('core').listTools();
|
const tools = createRegistry('core').listTools();
|
||||||
assert.equal(tools.length, 19);
|
assert.equal(tools.length, 22);
|
||||||
assert.equal(tools.some((tool) => tool.name === 'execute_javascript'), true);
|
assert.equal(tools.some((tool) => tool.name === 'execute_javascript'), true);
|
||||||
|
assert.equal(tools.some((tool) => tool.name === 'get_editor_state'), true);
|
||||||
|
assert.equal(tools.some((tool) => tool.name === 'set_selection'), true);
|
||||||
assert.equal(tools.some((tool) => tool.name === 'write_file'), false);
|
assert.equal(tools.some((tool) => tool.name === 'write_file'), false);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('full profile exposes all built-in tools', () => {
|
test('full profile exposes all built-in tools', () => {
|
||||||
const tools = createRegistry('full').listTools();
|
const tools = createRegistry('full').listTools();
|
||||||
assert.equal(tools.length, 67);
|
assert.equal(tools.length, 70);
|
||||||
assert.equal(tools.some((tool) => tool.name === 'write_file'), true);
|
assert.equal(tools.some((tool) => tool.name === 'write_file'), true);
|
||||||
|
assert.equal(tools.some((tool) => tool.name === 'get_editor_state'), true);
|
||||||
|
assert.equal(tools.some((tool) => tool.name === 'set_selection'), true);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('file tools reject writes outside the project root', async () => {
|
test('file tools reject writes outside the project root', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user