Skip to content

feat: 加入受控 Agent Memory、MCP 与小说子智能体 - #21

Closed
gugao-bug wants to merge 1 commit into
uu201:mainfrom
gugao-bug:feat/controlled-agent-capabilities
Closed

gugao-bug wants to merge 1 commit into
uu201:mainfrom
gugao-bug:feat/controlled-agent-capabilities

Conversation

@gugao-bug

Copy link
Copy Markdown

变更内容

  • 增加项目级长期记忆:自动召回、去重、重要度调整与删除
  • 增加受控 HTTP MCP:默认禁用、连接测试、逐工具白名单与密钥隔离
  • 增加只读小说子智能体:最多 3 个任务、并发 2 个,仅接收显式材料
  • 在全局助手页面和侧栏加入统一的“智能体能力”管理界面
  • 保留 Runtime v2 Surface 权限矩阵,不开放命令执行、stdio MCP、插件运行时或全磁盘访问

安全边界

  • 远程 MCP 仅允许 HTTPS,本机允许 localhost、127.0.0.1 和 ::1 的 HTTP
  • 禁止 MCP 自动重定向,调用结果和工具说明均标记为不可信外部数据
  • MCP 服务器默认关闭,必须测试并逐项选择白名单工具后才能启用
  • API Key 只保存在主进程 SQLite,不返回渲染层
  • 模型仅在用户明确要求“记住/以后遵守/不要再犯”时写入长期记忆
  • 子智能体无工具、项目写权限和记忆写权限

验证

  • pnpm test:137/137 通过
  • pnpm run typecheck:通过
  • pnpm run build:通过
  • git diff --check:通过

@gugao-bug

Copy link
Copy Markdown
Author

按需求撤回本次 Agent Memory、MCP 与小说子智能体能力扩展;七猫榜单接入将通过独立 PR 提交。

@gugao-bug gugao-bug closed this Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant