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
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ memo-cli 提供现代化的终端用户界面,包含以下特性:
## 内置工具概览

- **文件系统**:`read` / `write` / `edit` / `glob` / `grep`,提供偏移、上下文、全局替换等能力。
- **系统执行**:`bash` 直接运行 Shell;`run_bun` 在沙箱里执行 JS/TS(bubblewrap 或 `sandbox-exec`,可配置网络)
- **系统执行**:`bash` 直接运行 Shell。
- **网络获取**:`webfetch` 支持 http/https/data,10 秒超时、512 KB 限制,自动清洗 HTML。
- **辅助工具**:`save_memory`(写入 `~/.memo/memo.md`)、`todo` 管理、`time` 查询。
- **MCP 外部工具**:支持 stdio 或 Streamable HTTP,工具名前会加 `<server>_` 前缀自动注入系统提示词。
Expand Down Expand Up @@ -278,7 +278,6 @@ memo-cli/

## 安全特性

- `run_bun` 依赖 bubblewrap 或 `sandbox-exec`,并可控制网络访问。
- `webfetch`、`bash` 等工具限制超时时间、输出大小与允许路径,降低风险。
- MCP 工具统一通过配置注入,避免在提示词中硬编码密钥。

Expand Down
2 changes: 1 addition & 1 deletion docs/design/memo-cli-ui-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

### 2.3 工具与 MCP

- 内置工具:bash/run_bun/read/write/edit/glob/grep/webfetch/save_memory/time/todo。
- 内置工具:bash/read/write/edit/glob/grep/webfetch/save_memory/time/todo。
- MCP 外部工具来自 config.mcp*servers,自动注入 prompt,命名为 <server>*<tool>。
- 工具返回以文本为主,UI 需做扁平化展示。

Expand Down
45 changes: 0 additions & 45 deletions docs/tool/run_bun.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/core/src/runtime/prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
- **read**: `{"file_path": "/abs/...", "offset": 0, "limit": 200}`
- **write**: `{"file_path": "/abs/...", "content": "..."}`
- **edit**: `{"file_path": "/abs/...", "old_string": "...", "new_string": "...", "replace_all": false}`
- **run_bun**: `{"code": "..."}`
- **glob**: `{"pattern": "**/*.ts", "path": "/curr/dir"}`
- **grep**: `{"pattern": "string", "path": "/dir", "glob": "*.ts", "-i": false, "-C": 2}`
- **webfetch**: `{"url": "..."}`
Expand Down
3 changes: 0 additions & 3 deletions packages/tools/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ import { timeTool } from '@memo/tools/tools/time'
import { readTool } from '@memo/tools/tools/read'
import { writeTool } from '@memo/tools/tools/write'

import { runBunTool } from '@memo/tools/tools/run_bun'

/** 对外暴露的工具集合,供 Agent 通过 tool name 查找。 */
export const TOOLKIT: Record<ToolName, McpTool<any>> = {
bash: bashTool,
run_bun: runBunTool,
read: readTool,
write: writeTool,
edit: editTool,
Expand Down
78 changes: 0 additions & 78 deletions packages/tools/src/tools/run_bun.test.ts

This file was deleted.

Loading