@modelbay/mcp 0.2.1 → 0.3.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.
- package/dist/generate.mjs +1 -1
- package/dist/routing.mjs +11 -1
- package/package.json +2 -2
package/dist/generate.mjs
CHANGED
|
@@ -100,7 +100,7 @@ function buildRoute(meta, nativeOp, capability) {
|
|
|
100
100
|
function buildExtraTool(name) {
|
|
101
101
|
return {
|
|
102
102
|
name,
|
|
103
|
-
description: "列出本平台声明的模型 ID
|
|
103
|
+
description: "列出本平台声明的模型 ID、能力、生命周期提示与各渠道的上下文窗口 / 最大输出(从 ModelDeclaration 派生),不联网、不计费。",
|
|
104
104
|
inputSchema: {
|
|
105
105
|
type: "object",
|
|
106
106
|
title: "listDeclaredModelsArguments",
|
package/dist/routing.mjs
CHANGED
|
@@ -106,7 +106,17 @@ function localResult(handler, args, set, models) {
|
|
|
106
106
|
title: model.title,
|
|
107
107
|
capabilities: model.capabilities,
|
|
108
108
|
status: model.lifecycle.status,
|
|
109
|
-
notice: lifecycleNotice(model)
|
|
109
|
+
notice: lifecycleNotice(model),
|
|
110
|
+
channels: model.channels.map((entry) => {
|
|
111
|
+
const contextWindow = entry.contextWindow ?? model.contextWindow;
|
|
112
|
+
const maxOutputTokens = entry.maxOutputTokens ?? model.maxOutputTokens;
|
|
113
|
+
return {
|
|
114
|
+
channel: entry.channel,
|
|
115
|
+
id: entry.id,
|
|
116
|
+
...contextWindow !== void 0 ? { contextWindow } : {},
|
|
117
|
+
...maxOutputTokens !== void 0 ? { maxOutputTokens } : {}
|
|
118
|
+
};
|
|
119
|
+
})
|
|
110
120
|
})) });
|
|
111
121
|
}
|
|
112
122
|
case "voices": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modelbay/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "MCP server for Volcengine Ark, Alibaba Bailian, MiniMax, Doubao Speech and OpenAI: image, video, speech, music and chat tools for Claude Code, Codex, Cursor and Claude Desktop",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"zod": "^4.6"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"modelbay": "0.
|
|
58
|
+
"modelbay": "0.3.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@modelbay/ark": "0.1.0",
|