@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.
- package/README.md +60 -52
- package/dist/errors.d.ts +3 -12
- package/dist/errors.js +2 -6
- package/dist/index.js +2 -10
- package/dist/logger.d.ts +1 -18
- package/dist/logger.js +0 -7
- package/dist/model-cache.d.ts +1 -20
- package/dist/model-cache.js +1 -20
- package/dist/openrouter-api.d.ts +4 -18
- package/dist/openrouter-api.js +4 -20
- package/dist/tool-definitions.d.ts +1 -0
- package/dist/tool-definitions.js +708 -0
- package/dist/tool-handlers/analyze-audio.d.ts +0 -5
- package/dist/tool-handlers/analyze-image.d.ts +0 -6
- package/dist/tool-handlers/analyze-image.js +1 -8
- package/dist/tool-handlers/analyze-video.d.ts +0 -5
- package/dist/tool-handlers/analyze-video.js +0 -7
- package/dist/tool-handlers/async-chat.d.ts +17 -13
- package/dist/tool-handlers/async-chat.js +42 -65
- package/dist/tool-handlers/audio-utils.d.ts +1 -4
- package/dist/tool-handlers/audio-utils.js +4 -14
- package/dist/tool-handlers/cache.d.ts +2 -18
- package/dist/tool-handlers/cache.js +1 -19
- package/dist/tool-handlers/chat-completion.d.ts +2 -30
- package/dist/tool-handlers/chat-completion.js +13 -33
- package/dist/tool-handlers/chat-request.d.ts +25 -0
- package/dist/tool-handlers/chat-request.js +38 -0
- package/dist/tool-handlers/completion-utils.d.ts +1 -18
- package/dist/tool-handlers/completion-utils.js +0 -2
- package/dist/tool-handlers/fetch-utils.d.ts +2 -18
- package/dist/tool-handlers/fetch-utils.js +3 -51
- package/dist/tool-handlers/generate-audio.js +11 -21
- package/dist/tool-handlers/generate-image-dedicated.js +16 -70
- package/dist/tool-handlers/generate-image-input.d.ts +0 -1
- package/dist/tool-handlers/generate-image-input.js +2 -18
- package/dist/tool-handlers/generate-image.js +8 -15
- package/dist/tool-handlers/generate-video.d.ts +1 -7
- package/dist/tool-handlers/generate-video.js +24 -109
- package/dist/tool-handlers/health-check.d.ts +1 -9
- package/dist/tool-handlers/health-check.js +1 -12
- package/dist/tool-handlers/image-source.d.ts +14 -0
- package/dist/tool-handlers/image-source.js +23 -0
- package/dist/tool-handlers/image-utils.d.ts +5 -0
- package/dist/tool-handlers/image-utils.js +23 -0
- package/dist/tool-handlers/openai-withresponse.d.ts +1 -10
- package/dist/tool-handlers/openai-withresponse.js +0 -7
- package/dist/tool-handlers/openrouter-errors.d.ts +2 -18
- package/dist/tool-handlers/openrouter-errors.js +2 -34
- package/dist/tool-handlers/path-safety.d.ts +10 -15
- package/dist/tool-handlers/path-safety.js +30 -55
- package/dist/tool-handlers/provider-routing.d.ts +0 -9
- package/dist/tool-handlers/provider-routing.js +1 -14
- package/dist/tool-handlers/rerank.js +0 -2
- package/dist/tool-handlers/search-models.d.ts +0 -6
- package/dist/tool-handlers/speech-to-text.js +3 -21
- package/dist/tool-handlers/structured-output.d.ts +1 -4
- package/dist/tool-handlers/structured-output.js +2 -16
- package/dist/tool-handlers/text-to-speech.js +8 -26
- package/dist/tool-handlers/video-utils.d.ts +1 -6
- package/dist/tool-handlers/video-utils.js +2 -17
- package/dist/tool-handlers.js +4 -734
- package/dist/tool-icons.d.ts +0 -6
- package/dist/tool-icons.js +1 -8
- package/dist/version.d.ts +1 -15
- package/dist/version.js +1 -15
- package/package.json +3 -2
package/dist/tool-icons.d.ts
CHANGED
|
@@ -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;
|
package/dist/tool-icons.js
CHANGED
|
@@ -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.
|
|
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
|
-
"
|
|
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",
|