@ikijs/mcp 0.38.0 → 0.38.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/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @ikijs/mcp
|
|
2
2
|
|
|
3
|
-
> Part of [Iki](https://github.com/zeikar/iki), the open Live2D alternative that
|
|
3
|
+
> Part of [Iki](https://github.com/zeikar/iki), the open Live2D alternative that rigs itself — free and MIT-licensed, with an open `.iki` format and a [Claude Code / Codex plugin](https://github.com/zeikar/iki/tree/main/plugin) that draws and rigs characters.
|
|
4
4
|
|
|
5
5
|
A stdio [MCP](https://modelcontextprotocol.io/) server that exposes `.iki` model tools to AI agents (Claude, LLMs, and any MCP-compatible client): read/validate a model, and auto-rig one from role-named PNG layers, composed from generated parts or cut in place out of one finished picture.
|
|
6
6
|
|
|
@@ -123,6 +123,8 @@ Cuts one finished, front-facing character picture (PNG, JPEG or WebP) into the r
|
|
|
123
123
|
- **Checks** — each `{ id, level, pass, value, limit, hint }`, the hint naming the landmark to move: `stack` (fail; the layers stacked against the picture, the share of pixels off by more than 24 levels outside the mouth's box, limit 0.003, the box counted apart), `seeds` (fail; a seed or sample on the backdrop or the wrong class), `opening.L|R` (fail when the eye box clips the eye, the box it suggests leaving 2 to 4 px to spare; warn when it is loose, or when the paint it cuts runs on past it as a stroke the tool cannot tell from a lash wing; a stroke crossing into the box apart from the eye is left out of the eye), `iris.L|R` (warn; the ellipse against the disc found by the iris's own colour, overlap limit 0.7), `eye.L|R` (warn; an eye with under 0.06 white is cut as drawn closed), `brow.L|R` (warn; a band with no brow), `browBand.L|R` (warn; the share of the brow's ink left outside its band, limit 0.05, saying which way to move the line or how far to widen it), `mouth` (fail; nothing drawn in the mouth box and no lip set), `fills.<region>` (warn; the share of a fill made up over 40 px from its paint, limit 0.25, or no limit for the fills made up by construction), `frontHairWidth` (warn; `hair_front` wider than the face clamps the turn; the side locks are not counted), `sideHair.L|R` (warn, per polygon given; one problem each: a polygon holding no hair, a lock whose top row has no `hair_front` right above it, naming the columns and how far up the front hair ends, or a lock reaching into its declared eye box on the eye's rows past the box's 4 px of spare and its own 4 px outline, and a polygon whose hair the front hair or the other side's polygon took, each saying which way to move the polygon) and `pockets` (warn; the gaps between strands keyed as backdrop on their own and the backdrop-coloured regions the border's flood cannot reach, each named at a point `backgroundSeeds` accepts, counted together; a region near the backdrop's colour where `backgroundSeeds` accepts no point is said to be pale paint that needs nothing, and not counted). `passed` is false while a fail-level check fails.
|
|
124
124
|
- **Result** — `{ ok: true, outputDir, canvas, layers, customParts, previews, checks, measure, passed }`, `measure` being `measure_layers`' warnings on the written directory that a cut can act on (what the rig refuses, a lash whose top row is off its sclera's, a missing optional role, the side locks' root and lean checks naming the landmark to move) and, with a lip set, its opening's facts; the checks whose only remedy is re-laying-out or regenerating a generated part (art edges, eye aspect, iris size and place, an eyewhite to mirror, a speck nose, the lip set's own art, a `hair_side.png` drawing two locks, a side lock over its eye's corner, which the cut checks against the declared eye box) are left out. The text is the written files one per line, one `CHECK <id>: pass|WARN|FAIL <value> (limit <limit>) <hint>` line per check, the `MEASURE:` lines, and last `CUT pass` or `CUT FAIL: <failed check ids>`. A refusal writes nothing; a write that fails once writing has begun comes back as `write: … the cut stopped part-way …`: the files written before it replace an earlier cut's of the same name and the rest of the earlier cut's files are still there (a role this cut does not write is removed only after every file is written), so the directory is a mix of the two until the cut is run again.
|
|
125
125
|
|
|
126
|
+
A worked example, cut from one picture with its landmarks and rigged on every corpus run: [`corpus/twin-picture`](https://github.com/zeikar/iki/tree/main/corpus/twin-picture).
|
|
127
|
+
|
|
126
128
|
## Usage
|
|
127
129
|
|
|
128
130
|
Run directly with npx (no install needed):
|
|
@@ -12557,7 +12557,7 @@ function formatBakeChecks(bakes) {
|
|
|
12557
12557
|
);
|
|
12558
12558
|
}
|
|
12559
12559
|
function createIkiMcpServer() {
|
|
12560
|
-
const server = new McpServer({ name: "iki", version: "0.38.
|
|
12560
|
+
const server = new McpServer({ name: "iki", version: "0.38.1" });
|
|
12561
12561
|
server.registerTool(
|
|
12562
12562
|
"validate_iki",
|
|
12563
12563
|
{
|
|
@@ -13240,4 +13240,4 @@ export {
|
|
|
13240
13240
|
formatCutReport,
|
|
13241
13241
|
createIkiMcpServer
|
|
13242
13242
|
};
|
|
13243
|
-
//# sourceMappingURL=chunk-
|
|
13243
|
+
//# sourceMappingURL=chunk-SZHJO77J.mjs.map
|
package/dist/cli.js
CHANGED
|
@@ -12502,7 +12502,7 @@ function formatBakeChecks(bakes) {
|
|
|
12502
12502
|
);
|
|
12503
12503
|
}
|
|
12504
12504
|
function createIkiMcpServer() {
|
|
12505
|
-
const server = new import_mcp.McpServer({ name: "iki", version: "0.38.
|
|
12505
|
+
const server = new import_mcp.McpServer({ name: "iki", version: "0.38.1" });
|
|
12506
12506
|
server.registerTool(
|
|
12507
12507
|
"validate_iki",
|
|
12508
12508
|
{
|
package/dist/cli.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -12541,7 +12541,7 @@ function formatBakeChecks(bakes) {
|
|
|
12541
12541
|
);
|
|
12542
12542
|
}
|
|
12543
12543
|
function createIkiMcpServer() {
|
|
12544
|
-
const server = new import_mcp.McpServer({ name: "iki", version: "0.38.
|
|
12544
|
+
const server = new import_mcp.McpServer({ name: "iki", version: "0.38.1" });
|
|
12545
12545
|
server.registerTool(
|
|
12546
12546
|
"validate_iki",
|
|
12547
12547
|
{
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikijs/mcp",
|
|
3
|
-
"version": "0.38.
|
|
4
|
-
"description": "MCP server that lets AI agents build 2D puppet characters: compose AI-drawn part images, check their geometry and auto-rig them into an open .iki model — Iki, the free Live2D alternative.",
|
|
3
|
+
"version": "0.38.1",
|
|
4
|
+
"description": "MCP server that lets AI agents build 2D puppet characters: compose AI-drawn part images, or cut one finished illustration into layers, check their geometry and auto-rig them into an open .iki model — Iki, the free Live2D alternative.",
|
|
5
5
|
"keywords": [
|
|
6
|
+
"ai-rigging",
|
|
6
7
|
"iki",
|
|
7
8
|
"mcp",
|
|
8
9
|
"model-context-protocol",
|
|
@@ -14,6 +15,8 @@
|
|
|
14
15
|
"2d-animation",
|
|
15
16
|
"puppet",
|
|
16
17
|
"auto-rig",
|
|
18
|
+
"illustration",
|
|
19
|
+
"image-to-rig",
|
|
17
20
|
"rigging",
|
|
18
21
|
"character-generation",
|
|
19
22
|
"ai-character",
|
|
@@ -41,14 +44,14 @@
|
|
|
41
44
|
"!dist/metafile-*.json"
|
|
42
45
|
],
|
|
43
46
|
"dependencies": {
|
|
44
|
-
"@ikijs/editor": "^0.34.
|
|
45
|
-
"@ikijs/format": "^0.11.
|
|
47
|
+
"@ikijs/editor": "^0.34.1",
|
|
48
|
+
"@ikijs/format": "^0.11.1",
|
|
46
49
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
47
50
|
"sharp": "^0.33.5",
|
|
48
51
|
"zod": "^3.25"
|
|
49
52
|
},
|
|
50
53
|
"devDependencies": {
|
|
51
|
-
"@ikijs/engine": "^0.12.
|
|
54
|
+
"@ikijs/engine": "^0.12.1",
|
|
52
55
|
"tsup": "^8.5.0",
|
|
53
56
|
"typescript": "^5.9.2"
|
|
54
57
|
},
|
|
File without changes
|