mirror of
https://github.com/alibaba/higress.git
synced 2026-05-26 13:47:27 +08:00
update github & e2bdev mcp descriptions (#2107)
This commit is contained in:
39
plugins/wasm-go/mcp-servers/mcp-e2bdev/README_ZH.md
Normal file
39
plugins/wasm-go/mcp-servers/mcp-e2bdev/README_ZH.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# E2BDev MCP Server
|
||||
|
||||
基于E2B Code Interpreter API 的MCP服务器实现,提供沙盒环境管理功能,沙盒环境中可执行Python代码。
|
||||
|
||||
## 使用教程
|
||||
|
||||
### 获取 API-KEY
|
||||
1. 注册E2B账号 [注册入口](https://e2b.dev/auth/sign-up),每位新用户有$100的免费额度。
|
||||
2. 在DashBoard中生成 API Key [生成 API Key](https://e2b.dev/dashboard?tab=keys)
|
||||
|
||||
### 配置 MCP Client
|
||||
|
||||
在用户的 MCP Client 界面,添加 E2BDev MCP Server 配置。
|
||||
|
||||
```json
|
||||
"mcpServers": {
|
||||
"e2bdev": {
|
||||
"url": "http://mcp.higress.ai/mcp-e2bdev/{generate_key}",
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### 工具使用
|
||||
|
||||
- **create_sandbox**: 创建E2B沙盒环境
|
||||
- 参数:
|
||||
- timeout: 沙盒超时时间(秒),超时后沙盒将被终止
|
||||
- 返回: 沙盒ID
|
||||
|
||||
- **execute_code_sandbox**: 在沙盒中执行代码
|
||||
- 参数:
|
||||
- sandbox_id: 沙盒ID,从create_sandbox获取
|
||||
- code: 要执行的Python代码
|
||||
- 返回: 执行结果
|
||||
|
||||
- **kill_sandbox**: 终止沙盒环境
|
||||
- 参数:
|
||||
- sandbox_id: 要终止的沙盒ID
|
||||
- 返回: 终止结果
|
||||
Reference in New Issue
Block a user