@stabgan/openrouter-mcp-multimodal 4.0.1 → 4.5.0

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 (46) hide show
  1. package/README.md +40 -7
  2. package/dist/errors.d.ts +26 -8
  3. package/dist/errors.js +17 -12
  4. package/dist/logger.d.ts +11 -0
  5. package/dist/logger.js +26 -0
  6. package/dist/model-cache.d.ts +4 -0
  7. package/dist/model-cache.js +6 -0
  8. package/dist/openrouter-api.d.ts +22 -2
  9. package/dist/openrouter-api.js +21 -2
  10. package/dist/tool-handlers/analyze-audio.d.ts +9 -4
  11. package/dist/tool-handlers/analyze-audio.js +29 -15
  12. package/dist/tool-handlers/analyze-image.d.ts +10 -4
  13. package/dist/tool-handlers/analyze-image.js +37 -9
  14. package/dist/tool-handlers/analyze-video.d.ts +9 -4
  15. package/dist/tool-handlers/analyze-video.js +31 -19
  16. package/dist/tool-handlers/cache.d.ts +33 -0
  17. package/dist/tool-handlers/cache.js +54 -0
  18. package/dist/tool-handlers/chat-completion.d.ts +18 -4
  19. package/dist/tool-handlers/chat-completion.js +39 -11
  20. package/dist/tool-handlers/completion-utils.d.ts +29 -0
  21. package/dist/tool-handlers/completion-utils.js +76 -17
  22. package/dist/tool-handlers/generate-audio.d.ts +2 -0
  23. package/dist/tool-handlers/generate-audio.js +18 -1
  24. package/dist/tool-handlers/generate-image.d.ts +2 -0
  25. package/dist/tool-handlers/generate-image.js +15 -0
  26. package/dist/tool-handlers/generate-video.d.ts +43 -0
  27. package/dist/tool-handlers/generate-video.js +46 -3
  28. package/dist/tool-handlers/get-model-info.d.ts +1 -6
  29. package/dist/tool-handlers/get-model-info.js +2 -1
  30. package/dist/tool-handlers/health-check.d.ts +23 -0
  31. package/dist/tool-handlers/health-check.js +32 -0
  32. package/dist/tool-handlers/openai-withresponse.d.ts +16 -0
  33. package/dist/tool-handlers/openai-withresponse.js +16 -0
  34. package/dist/tool-handlers/rerank.d.ts +17 -0
  35. package/dist/tool-handlers/rerank.js +52 -0
  36. package/dist/tool-handlers/search-models.d.ts +18 -7
  37. package/dist/tool-handlers/search-models.js +25 -2
  38. package/dist/tool-handlers/structured-output.d.ts +13 -0
  39. package/dist/tool-handlers/structured-output.js +24 -0
  40. package/dist/tool-handlers/validate-model.d.ts +4 -6
  41. package/dist/tool-handlers/validate-model.js +3 -8
  42. package/dist/tool-handlers.d.ts +1 -0
  43. package/dist/tool-handlers.js +417 -165
  44. package/dist/version.d.ts +16 -0
  45. package/dist/version.js +16 -0
  46. package/package.json +1 -1
@@ -0,0 +1,16 @@
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.5.0";
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
+ */
16
+ export declare const MCP_PROTOCOL_VERSION = "2025-06-18";
@@ -0,0 +1,16 @@
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.5.0';
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
+ */
16
+ 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.0.1",
3
+ "version": "4.5.0",
4
4
  "mcpName": "io.github.stabgan/openrouter-multimodal",
5
5
  "description": "MCP server for OpenRouter with text chat, image analysis + generation, audio analysis + generation, video analysis, and video generation (Veo 3.1 / Sora 2 Pro / Seedance / Wan)",
6
6
  "type": "module",