mcp-image-previewer 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/ui/main.slint +18 -0
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.1",
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
+ }