mirror of
https://github.com/alibaba/higress.git
synced 2026-02-26 13:40:49 +08:00
41 lines
1.2 KiB
Markdown
41 lines
1.2 KiB
Markdown
# E2BDev MCP Server
|
|
|
|
An implementation of the Model Context Protocol (MCP) server that integrates E2B Code Interpreter API, providing sandbox environment management capabilities, which enables execution of Python code.
|
|
|
|
|
|
## Usage Guide
|
|
|
|
### Get API-KEY
|
|
1. Register for an E2B account [Resigter Entry](https://e2b.dev/auth/sign-up). Each new account will receive 100 credits for free.
|
|
2. Generate API Key in Dashboard [Manage API-KEY](https://e2b.dev/dashboard?tab=keys)
|
|
|
|
### Configure MCP Client
|
|
|
|
On the user's MCP Client interface, add E2BDev MCP Server configuration.
|
|
|
|
```json
|
|
"mcpServers": {
|
|
"e2bdev": {
|
|
"url": "https://mcp.higress.ai/mcp-e2bdev/{generate_key}",
|
|
}
|
|
}
|
|
```
|
|
|
|
### Tools
|
|
|
|
- **create_sandbox**: Create E2B sandbox environment
|
|
- Parameters:
|
|
- timeout: Sandbox timeout in seconds, sandbox will be terminated after timeout
|
|
- Returns: Sandbox ID
|
|
|
|
- **execute_code_sandbox**: Execute code in sandbox
|
|
- Parameters:
|
|
- sandbox_id: Sandbox ID, obtained from create_sandbox
|
|
- code: Python code to execute
|
|
- Returns: Execution result
|
|
|
|
- **kill_sandbox**: Terminate sandbox environment
|
|
- Parameters:
|
|
- sandbox_id: Sandbox ID to terminate
|
|
- Returns: Termination result
|