@iborymagic/aseprite-mcp 0.4.6 → 0.4.9
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/build/index.js +9 -2
- package/package.json +6 -3
package/build/index.js
CHANGED
|
@@ -10,12 +10,19 @@ let version;
|
|
|
10
10
|
try {
|
|
11
11
|
const __filename = fileURLToPath(import.meta.url);
|
|
12
12
|
const __dirname = path.dirname(__filename);
|
|
13
|
-
const packageJsonPath = path.join(__dirname, "
|
|
13
|
+
const packageJsonPath = path.join(__dirname, "../package.json");
|
|
14
14
|
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf8"));
|
|
15
15
|
version = packageJson.version;
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
|
-
|
|
18
|
+
try {
|
|
19
|
+
const packageJsonPath = path.join(process.cwd(), "package.json");
|
|
20
|
+
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf8"));
|
|
21
|
+
version = packageJson.version;
|
|
22
|
+
}
|
|
23
|
+
catch (error) {
|
|
24
|
+
version = "unknown";
|
|
25
|
+
}
|
|
19
26
|
}
|
|
20
27
|
const server = new McpServer({
|
|
21
28
|
name: "aseprite-mcp",
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iborymagic/aseprite-mcp",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "MCP server for using Aseprite API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"aseprite-mcp": "
|
|
7
|
+
"aseprite-mcp": "build/index.js"
|
|
8
|
+
},
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=18.0.0"
|
|
8
11
|
},
|
|
9
12
|
"files": [
|
|
10
13
|
"build"
|
|
@@ -14,7 +17,7 @@
|
|
|
14
17
|
},
|
|
15
18
|
"scripts": {
|
|
16
19
|
"build": "tsc && npm run copy:lua",
|
|
17
|
-
"copy:lua": "cp -R src/lua/templates build/lua/templates",
|
|
20
|
+
"copy:lua": "rm -rf build/lua/templates && cp -R src/lua/templates build/lua/templates",
|
|
18
21
|
"start": "node build/index.js",
|
|
19
22
|
"dev": "npm run build && npm run start",
|
|
20
23
|
"test": "vitest"
|