feat(mcp/parity): 三端经稳定 helper 入口连项目专用地址(P1 + P3) #24
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/agent-client-parity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目标
蓝图
agent-client-parity的 P1 + P3:Codex、Claude、DSH 三端在子项目目录里都连到项目专用地址(/mcp/projects/<project_id>),并统一经稳定 helper 入口取认证;项目内配置不再写本机 exe 路径。改动
%LOCALAPPDATA%\lian-jing\bin\lianjing-mcp-header.cmd,炼境每次启动时重写,指向当前 exe(%转义;非 ASCII 路径加chcp 65001).codex/config.toml的 helper 改为稳定入口;verify_onboarding把仍带本机路径的旧 helper 报为 Legacy,供升级claudeCLI(cwd=项目目录),本机现状以claude mcp get的回答为准,规则如下:~/.dsh/cordis.patch.yml托管块内嵌炼境登记的「项目根 → project_id」白名单。从启动目录向上精确匹配到项目根才用项目地址,未命中则回退全局;控制面项目以 null 作为停止哨兵;手写同名配置不覆盖.lian-jing/context.json新增mcp_scope: "global"(炼境自身),不写 Claude local 条目,不进 DSH 白名单MCP_OP_LOCK)#[tauri::command(async)]自验(agent_verify)
cargo test --locked:243 passed / 5 ignored;pnpm typecheck:通过read_project_test_account(name=LJ_PROBE_NONEXISTENT)判定认证,返回「开发需求未登记」即视为通过。Codex、Claude、DSH 的 B/C/D/E/F 全部通过;基线时 Claude、DSH 的 C/E/F 失败,Claude 的 B 也失败claude mcp get均显示 Local 且 ✔ Connected没验什么
chcp 65001分支):未实测claude mcp get输出格式:解析依赖 claude 2.x 当前格式;格式变化时会退化为只告警、不写入人终验建议(约 3 分钟)
claude mcp get lian-jing:Scope 应为 Local,URL 为项目地址,状态 ✔ Connected🤖 Generated with Claude Code