跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

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.
24package msi