在 opencode 0.9.12 中,您可以创建自定义工具 只需一个导出函数的文件,放在 `.opencode/tool/mytool.ts` 它就可以在 opencode 内部原生运行 - 无需 mcp,无需开销