浏览文件
msi.go
24 行 · 1.1 KB历史下载| 1 | // SPDX-FileCopyrightText: Copyright The Lima Authors |
| 2 | // SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | // Package msi provides the "MCP Sandbox Interface" (tentative) |
| 5 | // that should be reusable for other projects too. |
| 6 | // |
| 7 | // MCP Sandbox Interface defines MCP (Model Context Protocol) tools |
| 8 | // that can be used for reading, writing, and executing local files |
| 9 | // with an appropriate sandboxing technology. The sandboxing technology |
| 10 | // can be more secure and/or efficient than the default tools provided |
| 11 | // by an AI agent. |
| 12 | // |
| 13 | // MCP Sandbox Interface was inspired by Gemini CLI's built-in tools. |
| 14 | // https://github.com/google-gemini/gemini-cli/tree/v0.1.12/docs/tools |
| 15 | // |
| 16 | // Notable differences from Gemini CLI's built-in tools: |
| 17 | // - the output format is JSON, not a plain text |
| 18 | // - the output of [SearchFileContent] always corresponds to `git grep -n --no-index` |
| 19 | // - [RunShellCommandParams].Command is a string slice, not a string |
| 20 | // - [RunShellCommandParams].Directory is an absolute path, not a relative path |
| 21 | // - [RunShellCommandParams].Directory must not be empty |
| 22 | // |
| 23 | // Eventually, this package may be split to a separate repository. |
| 24 | package msi |

