mcp-image-previewer 0.1.0 → 0.1.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/README.md CHANGED
@@ -14,13 +14,6 @@ An MCP (Model Context Protocol) server that previews base64-encoded images in a
14
14
 
15
15
  - Node.js 18+
16
16
 
17
- ## Installation
18
-
19
- ```bash
20
- npm install
21
- npm run build
22
- ```
23
-
24
17
  ## Usage
25
18
 
26
19
  Add to your MCP client configuration:
@@ -29,8 +22,8 @@ Add to your MCP client configuration:
29
22
  {
30
23
  "mcpServers": {
31
24
  "image-previewer": {
32
- "command": "node",
33
- "args": ["/path/to/mcp-image-previewer/dist/index.js"]
25
+ "command": "npx",
26
+ "args": ["mcp-image-previewer"]
34
27
  }
35
28
  }
36
29
  }
@@ -57,12 +50,20 @@ Show or hide the preview window.
57
50
 
58
51
  #### `stay_on_top`
59
52
 
60
- Set whether the preview window stays on top of other windows.
53
+ Set whether the preview window stays on top of other windows (X11/Windows only).
61
54
 
62
55
  | Parameter | Type | Required | Description |
63
56
  |-----------|---------|----------|-------------|
64
57
  | `enabled` | boolean | Yes | `true` to enable, `false` to disable |
65
58
 
59
+ ## Development
60
+
61
+ ```bash
62
+ npm install
63
+ npm run build
64
+ npm start
65
+ ```
66
+
66
67
  ## License
67
68
 
68
69
  MIT
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-image-previewer",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "MCP server for previewing base64-encoded images from other MCP servers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/ui/main.slint ADDED
@@ -0,0 +1,18 @@
1
+ export component MainWindow inherits Window {
2
+ in-out property <image> current-image;
3
+ in property <string> image-info: "";
4
+ in property <bool> stay-on-top: false;
5
+
6
+ title: image-info != "" ? "MCP Image Previewer — " + image-info : "MCP Image Previewer";
7
+ always-on-top: stay-on-top;
8
+ background: #1e1e1e;
9
+ preferred-width: 800px;
10
+ preferred-height: 600px;
11
+
12
+ VerticalLayout {
13
+ Image {
14
+ source: current-image;
15
+ image-fit: contain;
16
+ }
17
+ }
18
+ }