codexmate 0.0.12 → 0.0.13

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 CHANGED
@@ -33,7 +33,7 @@ One tool to switch Codex/Claude Code providers & models and manage/browse local
33
33
  - Lightweight Web UI instead of heavy clients
34
34
  - Unified session browser (view/export/resume when available)
35
35
  - Session management: list/filter/export/delete local sessions; keyword search supports Codex and Claude
36
- - New in 0.0.9: Claude sessions are searchable by keywords (e.g., `claude code`, `claude-code`, numeric tokens)
36
+ - New in 0.0.10: Claude sessions are searchable by keywords (e.g., `claude code`, `claude-code`, numeric tokens)
37
37
 
38
38
  ## Feature Overview
39
39
 
@@ -169,8 +169,30 @@ npm link
169
169
  | `codexmate add-model <model>` | Add a model |
170
170
  | `codexmate delete-model <model>` | Delete a model |
171
171
  | `codexmate run` | Start the Web UI |
172
+ | `codexmate mcp [serve] [--transport stdio] [--allow-write\|--read-only]` | Start MCP server over stdio (default read-only) |
172
173
  | `codexmate export-session --source <codex|claude> (--session-id <ID>|--file <PATH>) [--output <PATH>] [--max-messages <N|all|Infinity>]` | Export a session to Markdown |
173
174
 
175
+ ## MCP (stdio)
176
+
177
+ - Transport: `stdio` only
178
+ - Default mode: read-only tool set
179
+ - Write tools: enable by `--allow-write` or `CODEXMATE_MCP_ALLOW_WRITE=1`
180
+ - Sensitive fields in `codexmate.claude.settings.get` are returned as masked values
181
+
182
+ ```bash
183
+ # Read-only (recommended for external agents)
184
+ codexmate mcp serve --read-only
185
+
186
+ # Enable write tools explicitly
187
+ codexmate mcp serve --allow-write
188
+ ```
189
+
190
+ Provided MCP domains:
191
+
192
+ - `tools`: status/provider/model/session/auth/proxy and config operations
193
+ - `resources`: status/providers/sessions snapshots
194
+ - `prompts`: built-in diagnose/switch/export templates
195
+
174
196
  ## Web UI
175
197
 
176
198
  Start the Web UI (auto opens browser):
@@ -371,7 +393,7 @@ Note: 7-Zip is optional. If missing, the built-in JS library is used. `--max` on
371
393
 
372
394
  ## Release (GitHub Actions)
373
395
 
374
- Create a tag that matches `package.json` (for example `v0.0.8`). Then run the `release` workflow in GitHub Actions and input that tag. It will create a GitHub Release and attach the `npm pack` `.tgz` artifact.
396
+ Create a tag that matches `package.json` (for example `v0.0.9`). Then run the `release` workflow in GitHub Actions and input that tag. It will create a GitHub Release and attach the `npm pack` `.tgz` artifact.
375
397
 
376
398
  ## License
377
399
 
package/README.zh-CN.md CHANGED
@@ -33,7 +33,7 @@ Codex Mate 让 Codex 与 Claude Code 的提供商/模型切换变成“一条命
33
33
  - 可视化 Web 操作,降低命令行负担
34
34
  - 配置变更可回溯、有备份
35
35
  - Codex + Claude Code 统一会话浏览(查看/导出/可用时复制恢复命令)
36
- - 0.0.9 新增:Claude 会话支持关键词搜索(含 `claude code` / `claude-code` / 数字关键词)
36
+ - 0.0.10 新增:Claude 会话支持关键词搜索(含 `claude code` / `claude-code` / 数字关键词)
37
37
 
38
38
  ## 概览
39
39
 
@@ -175,8 +175,30 @@ npm link
175
175
  | `codexmate add-model <模型名称>` | 添加模型 |
176
176
  | `codexmate delete-model <模型名称>` | 删除模型 |
177
177
  | `codexmate run` | 启动 Web 界面 |
178
+ | `codexmate mcp [serve] [--transport stdio] [--allow-write\|--read-only]` | 启动 MCP stdio 服务(默认只读) |
178
179
  | `codexmate export-session --source <codex|claude> (--session-id <ID>|--file <PATH>) [--output <PATH>] [--max-messages <N|all|Infinity>]` | 导出指定会话为 Markdown |
179
180
 
181
+ ## MCP(stdio)
182
+
183
+ - 传输方式:仅支持 `stdio`
184
+ - 默认模式:只读工具集
185
+ - 写入工具开启方式:`--allow-write` 或 `CODEXMATE_MCP_ALLOW_WRITE=1`
186
+ - `codexmate.claude.settings.get` 的敏感字段默认脱敏返回
187
+
188
+ ```bash
189
+ # 只读(推荐给外部 Agent 接入)
190
+ codexmate mcp serve --read-only
191
+
192
+ # 显式开启写工具
193
+ codexmate mcp serve --allow-write
194
+ ```
195
+
196
+ 当前提供的 MCP 能力:
197
+
198
+ - `tools`:状态/提供商/模型/会话/认证/代理/配置等操作
199
+ - `resources`:status/providers/sessions 快照资源
200
+ - `prompts`:诊断/安全切换/会话导出模板
201
+
180
202
  ## Web 界面
181
203
 
182
204
  启动 Web 界面(自动打开浏览器):
@@ -377,7 +399,7 @@ codexmate unzip ./backup.zip D:/restored
377
399
 
378
400
  ## 发布(GitHub Actions)
379
401
 
380
- 创建与 `package.json` 版本一致的标签(例如 `v0.0.8`)。然后在 GitHub Actions 中手动运行 `release` 工作流并输入该标签,系统会创建 GitHub Release,并附带 `npm pack` 生成的 `.tgz` 产物。
402
+ 创建与 `package.json` 版本一致的标签(例如 `v0.0.9`)。然后在 GitHub Actions 中手动运行 `release` 工作流并输入该标签,系统会创建 GitHub Release,并附带 `npm pack` 生成的 `.tgz` 产物。
381
403
 
382
404
  ## 许可证
383
405