在 opencode 0.9.12 中,您可以創建自定義工具 只需一個導出函數的文件,放在 `.opencode/tool/mytool.ts` 它就可以在 opencode 內部原生運行 - 無需 mcp,無需開銷