@cyanheads/pixoo-mcp-server 1.2.0 → 1.2.2
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/AGENTS.md +10 -7
- package/CLAUDE.md +10 -7
- package/Dockerfile +30 -10
- package/README.md +65 -86
- package/changelog/1.2.x/1.2.1.md +35 -0
- package/changelog/1.2.x/1.2.2.md +40 -0
- package/dist/mcp-server/resources/definitions/pixoo-design-guide.resource.d.ts.map +1 -1
- package/dist/mcp-server/resources/definitions/pixoo-design-guide.resource.js +4 -1
- package/dist/mcp-server/resources/definitions/pixoo-design-guide.resource.js.map +1 -1
- package/dist/mcp-server/tools/definitions/pixoo-compose-scene.tool.d.ts +173 -13
- package/dist/mcp-server/tools/definitions/pixoo-compose-scene.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/pixoo-compose-scene.tool.js +129 -28
- package/dist/mcp-server/tools/definitions/pixoo-compose-scene.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/pixoo-design-brief.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/pixoo-design-brief.tool.js +15 -7
- package/dist/mcp-server/tools/definitions/pixoo-design-brief.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/pixoo-display-text.tool.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/pixoo-display-text.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/pixoo-display-text.tool.js +27 -12
- package/dist/mcp-server/tools/definitions/pixoo-display-text.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/pixoo-push-image.tool.d.ts +30 -1
- package/dist/mcp-server/tools/definitions/pixoo-push-image.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/pixoo-push-image.tool.js +105 -26
- package/dist/mcp-server/tools/definitions/pixoo-push-image.tool.js.map +1 -1
- package/dist/mcp-server/tools/finish-schema.d.ts +28 -0
- package/dist/mcp-server/tools/finish-schema.d.ts.map +1 -0
- package/dist/mcp-server/tools/finish-schema.js +42 -0
- package/dist/mcp-server/tools/finish-schema.js.map +1 -0
- package/dist/renderer/finish.d.ts +34 -0
- package/dist/renderer/finish.d.ts.map +1 -0
- package/dist/renderer/finish.js +62 -0
- package/dist/renderer/finish.js.map +1 -0
- package/dist/renderer/icons.d.ts +14 -4
- package/dist/renderer/icons.d.ts.map +1 -1
- package/dist/renderer/icons.js +30 -22
- package/dist/renderer/icons.js.map +1 -1
- package/dist/renderer/keyframes.d.ts +40 -4
- package/dist/renderer/keyframes.d.ts.map +1 -1
- package/dist/renderer/keyframes.js +100 -53
- package/dist/renderer/keyframes.js.map +1 -1
- package/dist/renderer/remote-image.d.ts +13 -7
- package/dist/renderer/remote-image.d.ts.map +1 -1
- package/dist/renderer/remote-image.js +17 -21
- package/dist/renderer/remote-image.js.map +1 -1
- package/dist/renderer/scene-renderer.d.ts +45 -6
- package/dist/renderer/scene-renderer.d.ts.map +1 -1
- package/dist/renderer/scene-renderer.js +328 -159
- package/dist/renderer/scene-renderer.js.map +1 -1
- package/dist/renderer/text-engine.d.ts +24 -5
- package/dist/renderer/text-engine.d.ts.map +1 -1
- package/dist/renderer/text-engine.js +51 -28
- package/dist/renderer/text-engine.js.map +1 -1
- package/package.json +7 -6
- package/server.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-image.d.ts","sourceRoot":"","sources":["../../src/renderer/remote-image.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"remote-image.d.ts","sourceRoot":"","sources":["../../src/renderer/remote-image.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAUtD,yEAAyE;AACzE,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAqD7F"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @fileoverview Remote image fetch — downloads an https image
|
|
3
|
-
* toolkit's
|
|
4
|
-
*
|
|
2
|
+
* @fileoverview Remote image fetch — downloads an https image's encoded bytes into
|
|
3
|
+
* memory for the toolkit's image loaders. Shared by the scene renderer's image elements
|
|
4
|
+
* and the pixoo_push_image tool.
|
|
5
5
|
* @module renderer/remote-image
|
|
6
6
|
*/
|
|
7
|
-
import * as os from 'node:os';
|
|
8
|
-
import * as path from 'node:path';
|
|
9
7
|
import { notFound } from '@cyanheads/mcp-ts-core/errors';
|
|
10
8
|
import { fetchWithTimeout } from '@cyanheads/mcp-ts-core/utils';
|
|
11
9
|
/** Wall-clock budget for a remote image fetch, headers through body. */
|
|
@@ -17,8 +15,9 @@ export function isRemoteSource(source) {
|
|
|
17
15
|
return source.startsWith('https://') || source.startsWith('http://');
|
|
18
16
|
}
|
|
19
17
|
/**
|
|
20
|
-
* Fetch an https image and
|
|
21
|
-
*
|
|
18
|
+
* Fetch an https image and return its bytes as served, undecoded. Nothing is written to
|
|
19
|
+
* disk: the caller passes the bytes to the toolkit's loader, where a body that is not an image
|
|
20
|
+
* fails to decode.
|
|
22
21
|
*
|
|
23
22
|
* Private and loopback addresses are deliberately reachable: this server drives a
|
|
24
23
|
* LAN device, so a NAS or local web server is a legitimate image host.
|
|
@@ -27,15 +26,20 @@ export function isRemoteSource(source) {
|
|
|
27
26
|
* down instead of reading on to the deadline or the byte cap.
|
|
28
27
|
*
|
|
29
28
|
* @throws {McpError} NotFound with `reason: 'asset_not_found'` for a non-https URL,
|
|
30
|
-
* an unreachable or non-2xx endpoint, or a response over {@link MAX_IMAGE_BYTES}.
|
|
29
|
+
* an unreachable or non-2xx endpoint, or a response over {@link MAX_IMAGE_BYTES}. The
|
|
30
|
+
* message names the failure; the recovery is the calling tool's declared one.
|
|
31
31
|
* @throws {McpError} RequestCancelled when `ctx.signal` aborts while the body streams.
|
|
32
|
+
* @throws {McpError} Timeout when the body outlasts {@link FETCH_TIMEOUT_MS}, or when the
|
|
33
|
+
* `ctx.signal` abort is a caller-side deadline (a `TimeoutError` reason). A tool handler
|
|
34
|
+
* still answers the deadline as RequestCancelled: the handler factory settles any throw
|
|
35
|
+
* after the request's signal fired as a cancellation.
|
|
32
36
|
*/
|
|
33
|
-
export async function
|
|
37
|
+
export async function fetchRemoteImageBytes(source, ctx) {
|
|
34
38
|
if (!source.startsWith('https://')) {
|
|
35
39
|
throw notFound(`Only https URLs are supported. Received: "${source}".`, {
|
|
36
40
|
reason: 'asset_not_found',
|
|
37
41
|
url: source,
|
|
38
|
-
|
|
42
|
+
...ctx.recoveryFor('asset_not_found'),
|
|
39
43
|
});
|
|
40
44
|
}
|
|
41
45
|
// A throw here after the signal fired still reaches the caller as a cancellation:
|
|
@@ -43,18 +47,14 @@ export async function fetchRemoteImageToTempPng(source, ctx) {
|
|
|
43
47
|
const resp = await fetchWithTimeout(source, FETCH_TIMEOUT_MS, ctx, {
|
|
44
48
|
signal: ctx.signal,
|
|
45
49
|
}).catch((err) => {
|
|
46
|
-
throw notFound(`Failed to fetch image from "${source}": ${err instanceof Error ? err.message : String(err)}`, {
|
|
47
|
-
reason: 'asset_not_found',
|
|
48
|
-
url: source,
|
|
49
|
-
recovery: { hint: 'Check the URL is reachable and returns an image, then retry.' },
|
|
50
|
-
});
|
|
50
|
+
throw notFound(`Failed to fetch image from "${source}": ${err instanceof Error ? err.message : String(err)}`, { reason: 'asset_not_found', url: source, ...ctx.recoveryFor('asset_not_found') });
|
|
51
51
|
});
|
|
52
52
|
/** Both size gates fail the same way; only the field naming the measurement differs. */
|
|
53
53
|
const tooLarge = (bytes, field) => notFound(`Image response too large (${bytes} bytes; limit: ${MAX_IMAGE_BYTES}).`, {
|
|
54
54
|
reason: 'asset_not_found',
|
|
55
55
|
url: source,
|
|
56
56
|
[field]: bytes,
|
|
57
|
-
|
|
57
|
+
...ctx.recoveryFor('asset_not_found'),
|
|
58
58
|
});
|
|
59
59
|
// content-length is advisory: it bails before the body is read, but the byte
|
|
60
60
|
// count taken while streaming is the gate that actually holds.
|
|
@@ -79,10 +79,6 @@ export async function fetchRemoteImageToTempPng(source, ctx) {
|
|
|
79
79
|
chunks.push(value);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
const { default: sharp } = await import('sharp');
|
|
84
|
-
const tmpPath = path.join(os.tmpdir(), `pixoo-img-${Date.now()}-${Math.random().toString(36).slice(2)}.png`);
|
|
85
|
-
await sharp(buf).png().toFile(tmpPath);
|
|
86
|
-
return tmpPath;
|
|
82
|
+
return Buffer.concat(chunks, received);
|
|
87
83
|
}
|
|
88
84
|
//# sourceMappingURL=remote-image.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-image.js","sourceRoot":"","sources":["../../src/renderer/remote-image.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"remote-image.js","sourceRoot":"","sources":["../../src/renderer/remote-image.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,wEAAwE;AACxE,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEhC,0DAA0D;AAC1D,MAAM,eAAe,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAEzC,yEAAyE;AACzE,MAAM,UAAU,cAAc,CAAC,MAAc;IAC3C,OAAO,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACvE,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,MAAc,EAAE,GAAY;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IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;QAC1B,MAAM,QAAQ,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,MAAM,GAAiB,EAAE,CAAC;IAChC,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC;IACtC,IAAI,MAAM,EAAE,CAAC;QACX,SAAS,CAAC;YACR,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;YAC5C,IAAI,IAAI;gBAAE,MAAM;YAChB,QAAQ,IAAI,KAAK,CAAC,UAAU,CAAC;YAC7B,IAAI,QAAQ,GAAG,eAAe,EAAE,CAAC;gBAC/B,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC;gBACtB,MAAM,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;YACzC,CAAC;YACD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
* @module renderer/scene-renderer
|
|
4
4
|
*/
|
|
5
5
|
import type { Context } from '@cyanheads/mcp-ts-core';
|
|
6
|
-
import { Canvas, downsampleSprite, type PixooSize } from '@cyanheads/pixoo-toolkit';
|
|
6
|
+
import { type BlendMode, Canvas, downsampleSprite, type PixooSize } from '@cyanheads/pixoo-toolkit';
|
|
7
|
+
import { type Finish } from './finish.js';
|
|
7
8
|
import { type EffectName, type KeyframeMap } from './keyframes.js';
|
|
8
|
-
import { type LayoutEntry, type SemanticX, type SemanticY, type TextStyle } from './text-engine.js';
|
|
9
|
+
import { type FontVariant, type LayoutEntry, type SemanticX, type SemanticY, type TextStyle } from './text-engine.js';
|
|
9
10
|
import { type PaletteName, type ThemeName } from './themes.js';
|
|
10
11
|
/** Background specification. */
|
|
11
12
|
export type BackgroundSpec = string | {
|
|
@@ -27,6 +28,8 @@ export interface EffectSpec {
|
|
|
27
28
|
/** Base element properties. */
|
|
28
29
|
interface BaseElement {
|
|
29
30
|
animate?: KeyframeMap;
|
|
31
|
+
/** How the element's pixels combine with what lies beneath (default `normal`, source-over). */
|
|
32
|
+
blend?: BlendMode;
|
|
30
33
|
dx?: number;
|
|
31
34
|
dy?: number;
|
|
32
35
|
effect?: EffectSpec;
|
|
@@ -36,7 +39,7 @@ interface BaseElement {
|
|
|
36
39
|
/** Text element. */
|
|
37
40
|
export interface TextElement extends BaseElement {
|
|
38
41
|
color?: string;
|
|
39
|
-
font?:
|
|
42
|
+
font?: FontVariant;
|
|
40
43
|
style?: TextStyle;
|
|
41
44
|
text: string;
|
|
42
45
|
type: 'text';
|
|
@@ -66,6 +69,8 @@ export interface RectElement extends BaseElement {
|
|
|
66
69
|
to: string;
|
|
67
70
|
};
|
|
68
71
|
h: number;
|
|
72
|
+
/** `borderColor` border thickness in whole pixels, growing inward (default 1). */
|
|
73
|
+
strokeWidth?: number;
|
|
69
74
|
type: 'rect';
|
|
70
75
|
w: number;
|
|
71
76
|
x: number;
|
|
@@ -73,16 +78,24 @@ export interface RectElement extends BaseElement {
|
|
|
73
78
|
}
|
|
74
79
|
/** Circle element. */
|
|
75
80
|
export interface CircleElement extends BaseElement {
|
|
81
|
+
/** Shade the outline's pixels by coverage (default false). Outline only. */
|
|
82
|
+
antialias?: boolean;
|
|
76
83
|
color?: string;
|
|
77
84
|
cx: number;
|
|
78
85
|
cy: number;
|
|
79
86
|
fill?: boolean;
|
|
80
87
|
radius: number;
|
|
88
|
+
/** Outline thickness in whole pixels, centered on the circle (default 1). Outline only. */
|
|
89
|
+
strokeWidth?: number;
|
|
81
90
|
type: 'circle';
|
|
82
91
|
}
|
|
83
92
|
/** Line element. */
|
|
84
93
|
export interface LineElement extends BaseElement {
|
|
94
|
+
/** Shade the line's pixels by coverage (default false). */
|
|
95
|
+
antialias?: boolean;
|
|
85
96
|
color?: string;
|
|
97
|
+
/** Thickness in whole pixels, centered on the line (default 1). */
|
|
98
|
+
strokeWidth?: number;
|
|
86
99
|
type: 'line';
|
|
87
100
|
x0: number;
|
|
88
101
|
x1: number;
|
|
@@ -132,6 +145,8 @@ export interface PixelsElement extends BaseElement {
|
|
|
132
145
|
}
|
|
133
146
|
/** Image element. */
|
|
134
147
|
export interface ImageElement extends BaseElement {
|
|
148
|
+
/** Palette finish applied to the loaded image before it is drawn. */
|
|
149
|
+
finish?: Finish;
|
|
135
150
|
fit?: 'contain' | 'cover' | 'fill';
|
|
136
151
|
h?: number;
|
|
137
152
|
kernel?: 'nearest' | 'lanczos3' | 'mitchell';
|
|
@@ -154,21 +169,45 @@ export interface SpriteElement extends BaseElement {
|
|
|
154
169
|
y?: number;
|
|
155
170
|
}
|
|
156
171
|
export type SceneElement = TextElement | IconElement | RectElement | CircleElement | LineElement | ProgressElement | SparklineElement | BitmapElement | PixelsElement | ImageElement | SpriteElement;
|
|
172
|
+
/** A sprite sheet downsampled to its cell grid. */
|
|
173
|
+
type SpriteSheet = Awaited<ReturnType<typeof downsampleSprite>>;
|
|
157
174
|
/**
|
|
158
175
|
* Pre-loaded asset cache for images and sprites. Images are keyed by element: the
|
|
159
|
-
* loader bakes
|
|
160
|
-
*
|
|
176
|
+
* loader bakes an image's fit, kernel, size, and position into its canvas, and a
|
|
177
|
+
* `finish` is applied to a copy of it, so elements share a canvas only when they share
|
|
178
|
+
* a source, all of those, and a finish. Sprites are keyed by {@link spriteKey}.
|
|
161
179
|
*/
|
|
162
180
|
export interface AssetCache {
|
|
163
181
|
images: Map<ImageElement, Canvas>;
|
|
164
|
-
sprites: Map<string,
|
|
182
|
+
sprites: Map<string, SpriteSheet>;
|
|
165
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* The message for an image source that was read but did not decode: the source as the
|
|
186
|
+
* caller passed it, then the decoder's reason. Only the reason's first line is kept —
|
|
187
|
+
* libvips repeats itself across several lines on a corrupt header.
|
|
188
|
+
*/
|
|
189
|
+
export declare function decodeFailureMessage(label: string, source: string, err: unknown): string;
|
|
166
190
|
/**
|
|
167
191
|
* Preload all async assets referenced in elements. Images load onto a `size` canvas,
|
|
168
192
|
* the scene's own, so an image with no `w`/`h` fits the display.
|
|
169
193
|
*
|
|
194
|
+
* Each distinct load runs once per call, however many elements share it: a URL is
|
|
195
|
+
* fetched once, a sprite sheet decodes once per grid, and an image decodes once per
|
|
196
|
+
* placement — source, fit, kernel, position, and size, all of which `loadImage` bakes
|
|
197
|
+
* into its canvas. `loadImage` decodes and places in one call, so a source placed two
|
|
198
|
+
* ways decodes twice. An image's `finish` runs once per placement and finish, on the
|
|
199
|
+
* placement's canvas, which it never mutates: elements differing only in `finish` share
|
|
200
|
+
* the decode and nothing after it.
|
|
201
|
+
*
|
|
170
202
|
* `ctx` is threaded through so a remote image fetch correlates to the originating
|
|
171
203
|
* request in logs and traces, and stops when that request is cancelled.
|
|
204
|
+
*
|
|
205
|
+
* @throws {McpError} NotFound with `reason: 'asset_not_found'` for a missing or
|
|
206
|
+
* unreadable path, a sprite path given as a URL, or a URL that cannot be fetched.
|
|
207
|
+
* @throws {McpError} InvalidParams with `reason: 'invalid_image'` for an image source
|
|
208
|
+
* or sprite sheet that was read but did not decode.
|
|
209
|
+
* @throws {Error} The toolkit's `Unknown color` error for an unresolvable `finish`
|
|
210
|
+
* palette entry.
|
|
172
211
|
*/
|
|
173
212
|
export declare function preloadAssets(elements: SceneElement[], ctx: Context, size: PixooSize): Promise<AssetCache>;
|
|
174
213
|
/** Apply a background spec to a canvas. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene-renderer.d.ts","sourceRoot":"","sources":["../../src/renderer/scene-renderer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtD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