Tools và MCP
Tools giúp Bestie đọc file, search local context, đọc logs, gọi MCP server đã cho phép và báo tiến độ rõ ràng. Nhưng tools phải có phân loại, permission và receipts.
Internal tools
Phần tiêu đề “Internal tools”Bestie có internal read tools cho terminal và Telegram, ví dụ:
- đọc file
- list folder
- search text
- gom Markdown bundle
- đọc logs
- xem memories
- xem git status/diff/log ở chế độ read-only
Local read tools thường có thể allow. Write, patch, exec và URL reads nên để ask hoặc deny nếu chưa chắc.
Policy ví dụ
Phần tiêu đề “Policy ví dụ”{ "internalTools": { "policies": { "internal.write_file": "ask", "internal.edit_file": "ask", "internal.apply_patch": "ask", "internal.exec": "ask", "internal.list_processes": "allow", "internal.read_url": "ask" } }}MCP tool cần được classify local trước. Foundation hiện tại chỉ nên gọi tool thuộc category read.
bestie mcp listbestie mcp show dry-runbestie mcp test dry-run --connectbestie mcp tools dry-run --connectbestie mcp classify dry-run read_file --category readbestie mcp call dry-run read_file --read --json '{"path":"README.md"}'Checklist an toàn
Phần tiêu đề “Checklist an toàn”- Classify từng MCP tool.
- Bắt đầu bằng read-only.
- Secrets để trong env, không để trong config.
- Redact secrets khỏi logs/errors.
- Ask trước local write, external write, destructive, public và payment actions.