@stabgan/openrouter-mcp-multimodal 4.6.1 → 4.6.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.
Files changed (66) hide show
  1. package/README.md +60 -52
  2. package/dist/errors.d.ts +3 -12
  3. package/dist/errors.js +2 -6
  4. package/dist/index.js +2 -10
  5. package/dist/logger.d.ts +1 -18
  6. package/dist/logger.js +0 -7
  7. package/dist/model-cache.d.ts +1 -20
  8. package/dist/model-cache.js +1 -20
  9. package/dist/openrouter-api.d.ts +4 -18
  10. package/dist/openrouter-api.js +4 -20
  11. package/dist/tool-definitions.d.ts +1 -0
  12. package/dist/tool-definitions.js +708 -0
  13. package/dist/tool-handlers/analyze-audio.d.ts +0 -5
  14. package/dist/tool-handlers/analyze-image.d.ts +0 -6
  15. package/dist/tool-handlers/analyze-image.js +1 -8
  16. package/dist/tool-handlers/analyze-video.d.ts +0 -5
  17. package/dist/tool-handlers/analyze-video.js +0 -7
  18. package/dist/tool-handlers/async-chat.d.ts +17 -13
  19. package/dist/tool-handlers/async-chat.js +42 -65
  20. package/dist/tool-handlers/audio-utils.d.ts +1 -4
  21. package/dist/tool-handlers/audio-utils.js +4 -14
  22. package/dist/tool-handlers/cache.d.ts +2 -18
  23. package/dist/tool-handlers/cache.js +1 -19
  24. package/dist/tool-handlers/chat-completion.d.ts +2 -30
  25. package/dist/tool-handlers/chat-completion.js +13 -33
  26. package/dist/tool-handlers/chat-request.d.ts +25 -0
  27. package/dist/tool-handlers/chat-request.js +38 -0
  28. package/dist/tool-handlers/completion-utils.d.ts +1 -18
  29. package/dist/tool-handlers/completion-utils.js +0 -2
  30. package/dist/tool-handlers/fetch-utils.d.ts +2 -18
  31. package/dist/tool-handlers/fetch-utils.js +3 -51
  32. package/dist/tool-handlers/generate-audio.js +11 -21
  33. package/dist/tool-handlers/generate-image-dedicated.js +16 -70
  34. package/dist/tool-handlers/generate-image-input.d.ts +0 -1
  35. package/dist/tool-handlers/generate-image-input.js +2 -18
  36. package/dist/tool-handlers/generate-image.js +8 -15
  37. package/dist/tool-handlers/generate-video.d.ts +1 -7
  38. package/dist/tool-handlers/generate-video.js +24 -109
  39. package/dist/tool-handlers/health-check.d.ts +1 -9
  40. package/dist/tool-handlers/health-check.js +1 -12
  41. package/dist/tool-handlers/image-source.d.ts +14 -0
  42. package/dist/tool-handlers/image-source.js +23 -0
  43. package/dist/tool-handlers/image-utils.d.ts +5 -0
  44. package/dist/tool-handlers/image-utils.js +23 -0
  45. package/dist/tool-handlers/openai-withresponse.d.ts +1 -10
  46. package/dist/tool-handlers/openai-withresponse.js +0 -7
  47. package/dist/tool-handlers/openrouter-errors.d.ts +2 -18
  48. package/dist/tool-handlers/openrouter-errors.js +2 -34
  49. package/dist/tool-handlers/path-safety.d.ts +10 -15
  50. package/dist/tool-handlers/path-safety.js +30 -55
  51. package/dist/tool-handlers/provider-routing.d.ts +0 -9
  52. package/dist/tool-handlers/provider-routing.js +1 -14
  53. package/dist/tool-handlers/rerank.js +0 -2
  54. package/dist/tool-handlers/search-models.d.ts +0 -6
  55. package/dist/tool-handlers/speech-to-text.js +3 -21
  56. package/dist/tool-handlers/structured-output.d.ts +1 -4
  57. package/dist/tool-handlers/structured-output.js +2 -16
  58. package/dist/tool-handlers/text-to-speech.js +8 -26
  59. package/dist/tool-handlers/video-utils.d.ts +1 -6
  60. package/dist/tool-handlers/video-utils.js +2 -17
  61. package/dist/tool-handlers.js +4 -734
  62. package/dist/tool-icons.d.ts +0 -6
  63. package/dist/tool-icons.js +1 -8
  64. package/dist/version.d.ts +1 -15
  65. package/dist/version.js +1 -15
  66. package/package.json +3 -2
@@ -1,9 +1,3 @@
1
- /**
2
- * Tool icons for MCP 2025-11-25+ clients that render icons in the tool list.
3
- * Each icon is a minimal SVG data URI — no external hosting needed.
4
- *
5
- * Clients that don't support icons simply ignore the `icons` field.
6
- */
7
1
  export type ToolIcon = Array<{
8
2
  src: string;
9
3
  mimeType: string;
@@ -1,14 +1,7 @@
1
- /**
2
- * Tool icons for MCP 2025-11-25+ clients that render icons in the tool list.
3
- * Each icon is a minimal SVG data URI — no external hosting needed.
4
- *
5
- * Clients that don't support icons simply ignore the `icons` field.
6
- */
7
- /** Encode an SVG string as a data URI. */
1
+ /** MCP tool icons — inline SVG data URIs; ignored by clients that don't support them. */
8
2
  function svgDataUri(svg) {
9
3
  return `data:image/svg+xml,${encodeURIComponent(svg.trim())}`;
10
4
  }
11
- // Minimal 24x24 SVG icons using simple shapes
12
5
  const ICONS = {
13
6
  chat: svgDataUri(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#6366f1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>`),
14
7
  chatAsync: svgDataUri(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#8b5cf6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><circle cx="17" cy="7" r="3" fill="#8b5cf6"/></svg>`),
package/dist/version.d.ts CHANGED
@@ -1,16 +1,2 @@
1
- /**
2
- * Single source of truth for our server version. Exposed via
3
- * `_meta.server_version` on every successful tool response and returned
4
- * by the `health_check` tool.
5
- *
6
- * Bumped in lockstep with package.json / server.json / smithery.yaml /
7
- * scripts/build-manifest.mjs during release prep.
8
- */
9
- export declare const SERVER_VERSION = "4.6.1";
10
- /**
11
- * MCP protocol version our SDK speaks. Hardcoded to match the version
12
- * bundled with `@modelcontextprotocol/sdk`; update when upgrading the
13
- * SDK major. Surfaced by `health_check` so ops can confirm spec level
14
- * at runtime.
15
- */
1
+ export declare const SERVER_VERSION = "4.6.2";
16
2
  export declare const MCP_PROTOCOL_VERSION = "2025-06-18";
package/dist/version.js CHANGED
@@ -1,16 +1,2 @@
1
- /**
2
- * Single source of truth for our server version. Exposed via
3
- * `_meta.server_version` on every successful tool response and returned
4
- * by the `health_check` tool.
5
- *
6
- * Bumped in lockstep with package.json / server.json / smithery.yaml /
7
- * scripts/build-manifest.mjs during release prep.
8
- */
9
- export const SERVER_VERSION = '4.6.1';
10
- /**
11
- * MCP protocol version our SDK speaks. Hardcoded to match the version
12
- * bundled with `@modelcontextprotocol/sdk`; update when upgrading the
13
- * SDK major. Surfaced by `health_check` so ops can confirm spec level
14
- * at runtime.
15
- */
1
+ export const SERVER_VERSION = '4.6.2';
16
2
  export const MCP_PROTOCOL_VERSION = '2025-06-18';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stabgan/openrouter-mcp-multimodal",
3
- "version": "4.6.1",
3
+ "version": "4.6.2",
4
4
  "mcpName": "io.github.stabgan/openrouter-multimodal",
5
5
  "description": "MCP server for OpenRouter — chat with 300+ LLMs, analyze images/audio/video, generate images (dedicated API), TTS/STT, video generation (Veo 3.1 / Seedance / Wan), async completions, response caching",
6
6
  "type": "module",
@@ -30,7 +30,8 @@
30
30
  "test:smoke:uvx:git": "MCP_UVX_FROM_GIT=1 node scripts/smoke-uvx-mcp.mjs",
31
31
  "test:smoke": "npm run test:smoke:npm && npm run test:smoke:docker && npm run test:smoke:uvx:local",
32
32
  "test:all": "npm test && npm run test:regression && npm run test:integration",
33
- "ci": "npm run lint && npm run format:check && npm run build && npm run test:all"
33
+ "version:check": "node scripts/check-version-sync.mjs",
34
+ "ci": "npm run lint && npm run format:check && npm run version:check && npm run build && npm run test:all"
34
35
  },
35
36
  "keywords": [
36
37
  "mcp",