@tinify-ai/mcp-server 1.0.3 → 1.0.4

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
@@ -4,7 +4,7 @@
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
5
5
  [![MCP](https://img.shields.io/badge/MCP-Compatible-brightgreen.svg)](https://modelcontextprotocol.io)
6
6
 
7
- MCP server for [Tinify](https://tinify.ai) image optimization. AI-powered upscaling, resizing/cropping, compression, and SEO tag generation — all in one tool.
7
+ MCP server for [tinify.ai](https://tinify.ai) image optimization. AI-powered upscaling, resizing/cropping, compression, and SEO tag generation — all in one tool.
8
8
 
9
9
  ## Quick Start
10
10
 
@@ -15,7 +15,7 @@ Add to your MCP client config:
15
15
  "mcpServers": {
16
16
  "tinify": {
17
17
  "command": "npx",
18
- "args": ["-y", "@tinify-ai/mcp-server"]
18
+ "args": ["-y", "@tinify-ai/mcp-server@latest"]
19
19
  }
20
20
  }
21
21
  }
@@ -35,7 +35,7 @@ Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) o
35
35
  "mcpServers": {
36
36
  "tinify": {
37
37
  "command": "npx",
38
- "args": ["-y", "@tinify-ai/mcp-server"]
38
+ "args": ["-y", "@tinify-ai/mcp-server@latest"]
39
39
  }
40
40
  }
41
41
  }
@@ -46,7 +46,7 @@ Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) o
46
46
  <summary><strong>Claude Code</strong></summary>
47
47
 
48
48
  ```bash
49
- claude mcp add tinify -- npx -y @tinify-ai/mcp-server
49
+ claude mcp add tinify -- npx -y @tinify-ai/mcp-server@latest
50
50
  ```
51
51
  </details>
52
52
 
@@ -60,7 +60,7 @@ Add to `.cursor/mcp.json` in your project root:
60
60
  "mcpServers": {
61
61
  "tinify": {
62
62
  "command": "npx",
63
- "args": ["-y", "@tinify-ai/mcp-server"]
63
+ "args": ["-y", "@tinify-ai/mcp-server@latest"]
64
64
  }
65
65
  }
66
66
  }
@@ -77,7 +77,7 @@ Edit `~/.codeium/windsurf/mcp_config.json`:
77
77
  "mcpServers": {
78
78
  "tinify": {
79
79
  "command": "npx",
80
- "args": ["-y", "@tinify-ai/mcp-server"]
80
+ "args": ["-y", "@tinify-ai/mcp-server@latest"]
81
81
  }
82
82
  }
83
83
  }
@@ -94,7 +94,7 @@ Optimizes an image with smart defaults: AI-powered upscaling, resizing/cropping,
94
94
  |-----------|------|----------|---------|-------------|
95
95
  | `input` | string | Yes | — | Local file path or remote URL |
96
96
  | `output_path` | string | No | auto | Where to save the result |
97
- | `output_format` | string | No | original | jpeg, png, webp, or original |
97
+ | `output_format` | string | No | original | jpg, png, webp, avif, or original |
98
98
  | `output_width_px` | int | No | — | Target width in pixels |
99
99
  | `output_height_px` | int | No | — | Target height in pixels |
100
100
  | `output_upscale_factor` | float | No | — | Scale factor (2.0, 4.0) |
@@ -141,9 +141,15 @@ Structured metadata is also returned with `seo_keywords`, `seo_filename`, and fu
141
141
 
142
142
  | Format | Input | Output |
143
143
  |--------|-------|--------|
144
- | JPEG | Yes | Yes |
144
+ | JPG | Yes | Yes |
145
145
  | PNG | Yes | Yes |
146
146
  | WebP | Yes | Yes |
147
+ | AVIF | Yes | Yes |
148
+ | HEIC/HEIF | Yes* | No |
149
+ | TIFF | Yes* | No |
150
+ | BMP | Yes* | No |
151
+
152
+ *Automatically converted to JPG at upload time.
147
153
 
148
154
  Max file size: 50 MB.
149
155
 
@@ -179,7 +185,7 @@ Need more credits? See plans at [tinify.ai](https://tinify.ai/#pricing).
179
185
  **Server not appearing in tool list:**
180
186
  - Restart your MCP client after editing the config
181
187
  - Ensure Node.js >= 18 is installed: `node --version`
182
- - Try running directly: `npx -y @tinify-ai/mcp-server` (should start without errors)
188
+ - Try running directly: `npx -y @tinify-ai/mcp-server@latest` (should start without errors)
183
189
 
184
190
  **"Insufficient credits" error:**
185
191
  - Free tier allows 20 credits/day (resets daily)
@@ -1,5 +1,5 @@
1
1
  export interface ProcessingSettings {
2
- output_format?: "original" | "jpeg" | "png" | "webp";
2
+ output_format?: "original" | "jpg" | "png" | "webp" | "avif";
3
3
  output_upscale_factor?: number;
4
4
  output_width?: number;
5
5
  output_height?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../../src/api/process.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;IACrD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,kBAAkB,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACpC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,UAAU,OAAO;IACf,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAiCrF"}
1
+ {"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../../src/api/process.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IAC7D,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,kBAAkB,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACpC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,UAAU,OAAO;IACf,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAiCrF"}
package/dist/index.js CHANGED
File without changes
@@ -1,7 +1,7 @@
1
1
  export interface OptimizeImageParams {
2
2
  input: string;
3
3
  output_path?: string;
4
- output_format?: "original" | "jpeg" | "png" | "webp";
4
+ output_format?: "original" | "jpg" | "png" | "webp" | "avif";
5
5
  output_width_px?: number;
6
6
  output_height_px?: number;
7
7
  output_upscale_factor?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"optimize.d.ts","sourceRoot":"","sources":["../../src/tools/optimize.ts"],"names":[],"mappings":"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G,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IAC7D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACpC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,CA8F9B"}
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@tinify-ai/mcp-server",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "MCP server for Tinify image optimization — one tool, max optimization",
5
5
  "type": "module",
6
6
  "bin": {
7
- "tinify-ai-mcp-server": "dist/index.js"
7
+ "tinify-ai-mcp-server": "dist/index.js",
8
+ "mcp-server": "dist/index.js"
8
9
  },
9
10
  "main": "dist/index.js",
10
11
  "files": [
@@ -17,6 +18,7 @@
17
18
  "start": "node dist/index.js",
18
19
  "test": "vitest run",
19
20
  "test:watch": "vitest",
21
+ "test:live": "node scripts/live-test.mjs",
20
22
  "typecheck": "tsc --noEmit",
21
23
  "prepublishOnly": "npm run test && npm run build"
22
24
  },