@mebular/mcp 0.3.4 → 0.3.5

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/bin/mebular.mjs CHANGED
@@ -2192,6 +2192,34 @@ async function main() {
2192
2192
  return;
2193
2193
  }
2194
2194
  case 'serve': {
2195
+ // D6:`serve --help`/`-h` 是纯文本查询,必须在读配置、写 heartbeat、取 <home>/lock、
2196
+ // 绑定端口之前短路——否则空 home 会留下 store/heartbeat 副作用,且会被在跑的守护挡住。
2197
+ if (flags.help !== undefined || argv.slice(1).includes('-h')) {
2198
+ console.log(
2199
+ [
2200
+ '用法:mebular serve [--host HOST] [--port PORT] [--auth none|bearer|oauth]',
2201
+ ' [--tls-key FILE] [--tls-cert FILE] [--tokens-file FILE]',
2202
+ '',
2203
+ '启动 Streamable HTTP MCP 守护(单实例:同一 MEBULAR_HOME 只允许一个 serve)。',
2204
+ '',
2205
+ '选项:',
2206
+ ' --host HOST 监听地址(默认 config.json 的 mcp.http.host,否则 127.0.0.1)',
2207
+ ' --port PORT 监听端口(默认 config.json 的 mcp.http.port,否则 7331)',
2208
+ ' --auth MODE 鉴权:none | bearer | oauth(默认 config.json)',
2209
+ ' --tls-key FILE TLS 私钥;与 --tls-cert 同时提供才启用 HTTPS',
2210
+ ' --tls-cert FILE TLS 证书',
2211
+ ' --tokens-file FILE bearer token 文件(默认 <home>/auth/tokens.json)',
2212
+ ' -h, --help 显示本帮助并退出(不读配置、不写 store/heartbeat、不占端口)',
2213
+ '',
2214
+ '环境变量:',
2215
+ ' MEBULAR_HOME=<dir> 家目录(默认 ~/.mebular);每个 home 有独立 config/store/锁/heartbeat,',
2216
+ ' 多实例隔离请用 MEBULAR_HOME(serve 没有 --dir 选项)',
2217
+ ' MEBULAR_TOKEN=<tok> 访问运行中守护 admin API 的 bearer token',
2218
+ ].join('\n'),
2219
+ );
2220
+ process.exit(0);
2221
+ return;
2222
+ }
2195
2223
  const { startServeServer } = await import('../src/server.mjs');
2196
2224
  const { loadConfigFile } = await import('../src/config.mjs');
2197
2225
  const home = homeDir();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mebular/mcp",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Mebular MCP server (stdio + Streamable HTTP): exposes Mebular memory and task capabilities to any MCP client. | Mebular MCP server(stdio + Streamable HTTP):把 Mebular 的记忆与任务能力暴露给任意 MCP client。",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -29,10 +29,10 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@mebular/core": "^0.3.4",
33
- "@mebular/memory-runtime": "^0.3.4",
32
+ "@mebular/core": "^0.3.5",
33
+ "@mebular/memory-runtime": "^0.3.5",
34
34
  "@modelcontextprotocol/server": "^2.3.1",
35
35
  "zod": "^4.6.7",
36
- "@mebular/fleet": "^0.3.4"
36
+ "@mebular/fleet": "^0.3.5"
37
37
  }
38
38
  }
package/src/version.mjs CHANGED
@@ -5,4 +5,4 @@
5
5
  // scripts/bump-version.mjs 只改这一处,scripts/verify-release-version.mjs
6
6
  // 校验它等于发布版本;不要在其它文件再写版本字面量。
7
7
 
8
- export const APP_VERSION = '0.3.4';
8
+ export const APP_VERSION = '0.3.5';