@mebular/mcp 0.1.0 → 0.1.1
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/package.json +3 -3
- package/scripts/publish-manifest.mjs +2 -2
- package/src/client.mjs +1 -1
- package/src/serve.mjs +1 -1
- package/src/server.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mebular/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Mebular MCP server(stdio + Streamable HTTP):把 Mebular 记忆能力暴露给任意 MCP client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@mebular/core": "^0.1.
|
|
27
|
+
"@mebular/core": "^0.1.1",
|
|
28
28
|
"@modelcontextprotocol/server": "^2.3.1",
|
|
29
29
|
"zod": "^4.6.7",
|
|
30
|
-
"@mebular/fleet": "^0.1.
|
|
30
|
+
"@mebular/fleet": "^0.1.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// G6.5 / D41:發布期改寫 @mebular/core 依賴。
|
|
3
3
|
//
|
|
4
4
|
// 開發期以 `file:../..` 本地連結(根包非 workspace 成員、本環境 npm 不支援 `workspace:`);
|
|
5
|
-
// `npm pack`/`npm publish` 的 prepack 階段改為 `^0.1.
|
|
5
|
+
// `npm pack`/`npm publish` 的 prepack 階段改為 `^0.1.1`,postpack 還原。
|
|
6
6
|
//
|
|
7
7
|
// 用法:node scripts/publish-manifest.mjs set|restore
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
14
14
|
const pkgDir = join(dirname(fileURLToPath(import.meta.url)), '..');
|
|
15
15
|
const pkgFile = join(pkgDir, 'package.json');
|
|
16
16
|
const backupFile = `${pkgFile}.packbak`;
|
|
17
|
-
const PUBLISH_RANGE = '^0.1.
|
|
17
|
+
const PUBLISH_RANGE = '^0.1.1';
|
|
18
18
|
|
|
19
19
|
const action = process.argv[2];
|
|
20
20
|
|
package/src/client.mjs
CHANGED
|
@@ -39,7 +39,7 @@ export async function callToolViaHttp({ endpoint, token, name, args, timeoutMs =
|
|
|
39
39
|
jsonrpc: '2.0',
|
|
40
40
|
id: 1,
|
|
41
41
|
method: 'initialize',
|
|
42
|
-
params: { protocolVersion: '2024-11-05', capabilities: {}, clientInfo: { name: 'mebular-cli', version: '0.1.
|
|
42
|
+
params: { protocolVersion: '2024-11-05', capabilities: {}, clientInfo: { name: 'mebular-cli', version: '0.1.1' } },
|
|
43
43
|
}, null, timeoutMs);
|
|
44
44
|
const sessionId = init.sessionId;
|
|
45
45
|
await rpc(url, token, { jsonrpc: '2.0', method: 'notifications/initialized' }, sessionId, timeoutMs);
|
package/src/serve.mjs
CHANGED
|
@@ -221,7 +221,7 @@ function settleWithin(promise, ms) {
|
|
|
221
221
|
|
|
222
222
|
// /healthz、/app/embed/info 与 <home>/runtime.json 共用的对外版本号与 embed 协议版本。
|
|
223
223
|
// 单一真源:不要在 buildEmbedInfo / runtime 写入处再写字面量。
|
|
224
|
-
export const APP_VERSION = '0.1.
|
|
224
|
+
export const APP_VERSION = '0.1.1';
|
|
225
225
|
export const EMBED_PROTOCOL = 1;
|
|
226
226
|
|
|
227
227
|
// ---------- 控制台静态托管(D1) ----------
|
package/src/server.mjs
CHANGED
|
@@ -26,7 +26,7 @@ const MEMORY_POLICY = `# Mebular 记忆使用规约(memory_policy)
|
|
|
26
26
|
6. 无结果别编:召回为空就如实说明,不要臆造记忆。`;
|
|
27
27
|
|
|
28
28
|
export function buildServer(service, options = {}) {
|
|
29
|
-
const server = new McpServer({ name: 'mebular', version: '0.1.
|
|
29
|
+
const server = new McpServer({ name: 'mebular', version: '0.1.1' });
|
|
30
30
|
registerTools(server, service, options);
|
|
31
31
|
server.registerPrompt(
|
|
32
32
|
'memory_policy',
|