mirror of
https://github.com/alibaba/higress.git
synced 2026-02-25 05:01:19 +08:00
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
- Register for an E2B account Resigter Entry. Each new account will receive 100 credits for free.
- Generate API Key in Dashboard Manage API-KEY
Configure MCP Client
On the user's MCP Client interface, add E2BDev MCP Server configuration.
"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
- Parameters:
-
execute_code_sandbox: Execute code in sandbox
- Parameters:
- sandbox_id: Sandbox ID, obtained from create_sandbox
- code: Python code to execute
- Returns: Execution result
- Parameters:
-
kill_sandbox: Terminate sandbox environment
- Parameters:
- sandbox_id: Sandbox ID to terminate
- Returns: Termination result
- Parameters: