Integration used in related research projects including Xmaster and Browse Master for academic paper access
Recommended for containerized deployment to provide security and isolation for code execution
Provides Google Search capabilities through Serper's API service for web search functionality
Code Execution Server
This repository provides a basic implementation of a code execution server, designed primarily for Xmaster (paper, code) and Browse Master (paper code). The full implementation is used in SciMaster.
Due to the proprietary nature of the full code, this repository only includes an open-source framework and the basic components required for code execution. It also includes a simple network search tool implementation.
⚠️ Warning: This is a basic code execution server without virtualization or safety protections. For added security, consider running it within Docker or Apptainer containers as necessary.
🛠️ Setup
Environment
Clone this repository and navigate to the project directory and install the required dependencies:
Tools
- setup the serper key in
configs/web_agent.json
- setup the models' api key in
configs/llm_call.json
🚀 Deploy the Code Execution Server
Step 1: Start the API Server
We will first start the API server used by the tools. This API server proxies all search-related services, including:
- Serper's Google Search Service
- A series of Model APIs
Navigate to the api_proxy directory and start the API server:
Step 2: Deploy the Server
Deploy the server by running the following script in the MCP
directory:
📝 Usage
Sending a Request
To send a request to the server, use the following curl
command:
⚡ Benchmarking
For benchmarking, you can run the following command to test the server's performance:
Example output:
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables execution of code in a sandbox environment with integrated web search capabilities. Provides a basic framework for running code safely, primarily designed for AI agents and research applications.
Related MCP Servers
- AsecurityFlicenseAqualityCreate sandboxed local development environments directly from Github and execute tests, see coverage and more! Supports Python, Node, Bun and many test runners.Last updated -425
- -securityAlicense-qualityThe sessionless code interpreter. Securely run AI-generated code in stateful sandboxes that run forever.Last updated -6219MIT License
- -securityFlicense-qualityA local server that provides powerful code analysis and search capabilities for software projects, helping AI assistants and development tools understand codebases for tasks like code generation and refactoring.Last updated -3