Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ AGENTS.md
mcp-publisher.exe

# Internal planning/review artifacts. Keep product docs in README/docs instead.
docs/design/
*-PLAN.md
*_PLAN.md
*-REPORT.md
Expand All @@ -33,6 +34,7 @@ mcp-publisher.exe
# DevFlow engine
.progress/
.npm-cache-review/
.tmp-npm-cache/

# Agent registry & profiles
.agents/
Expand Down
2 changes: 0 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
!bin/**
!src/
!src/**
!plugins/kiro/
!plugins/kiro/**
!README.md
!LICENSE
!.npmignore
2 changes: 1 addition & 1 deletion MCP-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ xmemo-mcp
| 客户端 | 支持方式 | 配置命令 |
|--------|----------|----------|
| **Kimi Code** | Streamable HTTP + Bearer Token(`XMEMO_KEY`) | `xmemo setup kimi-code` |
| **Kiro** | `mcp-remote` + Bearer Token(`XMEMO_KEY` | `xmemo setup kiro` |
| **Kiro** | 原生 HTTP OAuth(默认);`--auth key` 使用 `XMEMO_KEY` | `xmemo setup kiro` |
| **Claude Desktop** | `mcp-remote` + Bearer Token(`XMEMO_KEY`) | `xmemo setup claude-desktop` |
| **Cursor** | Streamable HTTP + Bearer Token(`XMEMO_KEY`) | `xmemo setup cursor` |
| **Copilot CLI** | Local Proxy + Bearer Token | `xmemo setup copilot` |
Expand Down
19 changes: 17 additions & 2 deletions MCP-SETUP-GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,28 @@ set XMEMO_AGENT_INSTANCE_ID=random-guid-here

配置文件:`~/.kiro/settings/mcp.json`

Kiro 使用 `mcp-remote` 连接 Hosted MCP,并从 `XMEMO_KEY` 读取 Bearer Token。推荐运行
Kiro 默认使用原生 HTTP OAuth,配置不包含固定 Authorization,也不再启动 `mcp-remote`

```bash
xmemo setup kiro
# 或选择 Key;启动 Kiro 的进程需要继承 XMEMO_KEY
xmemo setup kiro --auth key
```

不要把 Kiro 与 MCP OAuth 客户端混为一谈:`xmemo login` 可以通过浏览器获取 CLI 凭据,但 Kiro 的 MCP 请求仍由环境变量认证。
OAuth 默认只请求 `memory:read` 和 `knowledge:read`。需要写入时,在 Kiro OAuth 配置中加入对应 write scope 并重新授权。Key 模式使用 `Bearer ${XMEMO_KEY}`;Key 权限由服务端签发时确定。`xmemo login` 的 CLI 凭据不会自动导入 Kiro。

已有配置出现反复弹出授权页面、认证成功后仍超时,可先离线检查,再修复:

```bash
xmemo doctor --client kiro --json
xmemo doctor --client kiro --fix
# 明确保留 Key 认证时:
xmemo doctor --client kiro --fix --auth key
```

检查默认不修改文件;`--fix` 对识别出的旧代理或认证冲突先创建同目录备份,再替换 XMemo 连接,保留其他 MCP、Power 配置、审批和禁用设置。可用 `--config <path>` 指定配置。未知自定义命令、无效 JSON、非 HTTPS MCP 地址不会自动修复。

修复后重新加载 Kiro;OAuth 需要完成正常授权,Key 需要启动环境中的凭证。doctor 不读取 OAuth 缓存、不终止代理进程、不访问服务、不验证真实认证和刷新;旧代理仍运行时重新启动 Kiro。原来的 `${env:XMEMO_KEY}` 代理环境赋值可能成为字面文本,其固定 Authorization 又会覆盖 OAuth 令牌,造成重复认证。

---

Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ xmemo setup cursor --dry-run
| **Antigravity** | `xmemo setup antigravity` | Hosted MCP + OAuth |
| **OpenClaw** | `xmemo setup openclaw` | Native memory plugin + Skill |
| **Hermes** | `xmemo setup hermes` | Native memory provider |
| **Kiro** | `xmemo setup kiro` | Hosted MCP + Bearer Token |
| **Kiro** | `xmemo setup kiro` | Native HTTP OAuth; `--auth key` for API Key |
| **Grok** | `xmemo setup grok` | Hosted MCP |
| **Other MCP clients** | `xmemo mcp config --client generic` | Generated template |

Expand Down Expand Up @@ -492,7 +492,6 @@ bin/
docs/assets/
src/
skills/
plugins/kiro/
plugins/xmemo/
README.md
LICENSE
Expand All @@ -504,6 +503,7 @@ Not published:
.github/
docs/analysis/
docs/architecture/
docs/design/
test/
coverage/
server code
Expand Down Expand Up @@ -582,3 +582,12 @@ it connects to.
## License

[MIT](./LICENSE) © 2025–2026 Yonro

### Repairing an existing Kiro MCP configuration

Run `xmemo doctor --client kiro --json` to inspect local configuration without network requests.
Use `xmemo doctor --client kiro --fix` to migrate recognized legacy proxy configurations to native
HTTP OAuth, or add `--auth key` for native HTTP with `Bearer ${XMEMO_KEY}`. Repairs create a
backup, retain unrelated servers and client preferences, and never copy credentials into the
replacement. Reload Kiro and verify a real tool call afterwards; a configuration pass is not an
authentication or token-refresh result. Fresh installs use `xmemo setup kiro [--auth oauth|key]`.
60 changes: 0 additions & 60 deletions docs/design/MOS_01_CLOUD_SKILL_SAFE_WRITE_HANDOFF.md

This file was deleted.

167 changes: 0 additions & 167 deletions docs/design/XMEMO_CLI_SERVICE_CLIENT_BASELINE_2026-09-03.md

This file was deleted.

Loading
Loading