@iborymagic/aseprite-mcp 0.3.2 → 0.3.3

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 CHANGED
@@ -3,21 +3,14 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
4
  import { createToolHandlers as createAsepriteToolHandlers, createToolSchemas as createAsepriteToolSchemas } from "./aseprite/tools.js";
5
5
  import { createToolHandlers as createLuaToolHandlers, createToolSchemas as createLuaToolSchemas } from "./lua/tools.js";
6
- import { createToolHandlers as createCharacterPipelineToolHandlers, createToolSchemas as createCharacterPipelineToolSchemas } from "./pipeline/tools.js";
7
- import { createToolHandlers as createGeneratorToolHandlers, createToolSchemas as createGeneratorToolSchemas } from "./generator/tools.js";
8
- import { StableDiffusionWebuiGenerator } from "./generator/image-generator.js";
9
6
  const server = new McpServer({
10
7
  name: "aseprite-mcp",
11
8
  version: "0.1.0"
12
9
  });
13
10
  const asepriteToolSchemas = createAsepriteToolSchemas();
14
11
  const luaToolSchemas = createLuaToolSchemas();
15
- const characterPipelineToolSchemas = createCharacterPipelineToolSchemas();
16
- const generatorToolSchemas = createGeneratorToolSchemas();
17
12
  const asepriteToolHandlers = createAsepriteToolHandlers();
18
13
  const luaToolHandlers = createLuaToolHandlers();
19
- const characterPipelineToolHandlers = createCharacterPipelineToolHandlers();
20
- const generatorToolHandlers = createGeneratorToolHandlers();
21
14
  server.registerTool("aseprite_check_environment", { description: "Check the environment of Aseprite" }, asepriteToolHandlers.aseprite_check_environment);
22
15
  server.registerTool("aseprite_export_sheet", {
23
16
  description: "Export Aseprite file to sprite sheet image",
@@ -40,35 +33,6 @@ server.registerTool("aseprite_run_lua_script", {
40
33
  description: "Run a raw Lua script (advanced / unsafe).",
41
34
  inputSchema: luaToolSchemas.aseprite_run_lua_script,
42
35
  }, luaToolHandlers.aseprite_run_lua_script);
43
- server.registerTool("character_pipeline_analyze", {
44
- description: "Analyze a character sprite",
45
- inputSchema: characterPipelineToolSchemas.character_pipeline_analyze,
46
- }, characterPipelineToolHandlers.character_pipeline_analyze);
47
- server.registerTool("character_pipeline_normalize", {
48
- description: "Normalize a character sprite",
49
- inputSchema: characterPipelineToolSchemas.character_pipeline_normalize,
50
- }, characterPipelineToolHandlers.character_pipeline_normalize);
51
- server.registerTool("character_pipeline_export", {
52
- description: "Export a character sprite",
53
- inputSchema: characterPipelineToolSchemas.character_pipeline_export,
54
- }, characterPipelineToolHandlers.character_pipeline_export);
55
- server.registerTool("character_pipeline_build", {
56
- description: "Build a character sprite",
57
- inputSchema: characterPipelineToolSchemas.character_pipeline_build,
58
- }, characterPipelineToolHandlers.character_pipeline_build);
59
- const generator = new StableDiffusionWebuiGenerator("http://127.0.0.1:7860");
60
- server.registerTool("character_generate_concept", {
61
- description: "Generate a character concept",
62
- inputSchema: generatorToolSchemas.character_generate_concept,
63
- }, async (params) => generatorToolHandlers.character_generate_concept(params, generator));
64
- server.registerTool("character_import_from_concept", {
65
- description: "Import a character from a concept",
66
- inputSchema: generatorToolSchemas.character_import_from_concept,
67
- }, generatorToolHandlers.character_import_from_concept);
68
- server.registerTool("character_generate_full", {
69
- description: "Generate a full character",
70
- inputSchema: generatorToolSchemas.character_generate_full,
71
- }, async (params) => generatorToolHandlers.character_generate_full(params, generator));
72
36
  async function main() {
73
37
  const transport = new StdioServerTransport();
74
38
  await server.connect(transport);
@@ -53,25 +53,6 @@ export const LUA_TEMPLATES = [
53
53
  params: ["inputFile", "tag", "outputDir"],
54
54
  optionalParams: ["filenamePrefix"],
55
55
  scriptPath: path.join(__dirname, "templates", "export_tag_frames.lua")
56
- },
57
- {
58
- id: "character_normalize",
59
- description: "Normalizes frame durations inside all tags to a single target duration (in seconds).",
60
- params: ["inputFile", "saveOutput", "targetMs"],
61
- optionalParams: ["autoCrop"],
62
- scriptPath: path.join(__dirname, "templates", "character_normalize.lua")
63
- },
64
- {
65
- id: "character_export",
66
- description: "Exports a character sprite",
67
- params: ["inputFile", "exportDir", "sheetType", "format"],
68
- scriptPath: path.join(__dirname, "templates", "character_export.lua")
69
- },
70
- {
71
- id: "character_build",
72
- description: "Builds a character sprite",
73
- params: ["inputFile", "tempOutput", "exportDir", "normalizeOption", "exportOption"],
74
- scriptPath: path.join(__dirname, "templates", "character_build.lua")
75
56
  }
76
57
  ];
77
58
  export function findLuaTemplate(id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iborymagic/aseprite-mcp",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "MCP server for using Aseprite API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -34,5 +34,9 @@
34
34
  "bugs": {
35
35
  "url": "https://github.com/iborymagic/aseprite-mcp/issues"
36
36
  },
37
+ "keywords": [
38
+ "mcp",
39
+ "aseprite"
40
+ ],
37
41
  "license": "MIT"
38
42
  }