Skip to main content

mcp server for agentsphere sandbox

Project description

agentsphere-mcp-server

Introduction

agent-sphere is a cloud-based secure isolated sandbox infrastructure that provides AI with a stable, fast, and secure runtime environment.

agentsphere-mcp-server is an MCP Server designed for AI to connect and operate agent-sphere sandboxes.

Official Website: https://www.agentsphere.run/home

MCP Tools Description

This MCP Server provides the following 4 tools for AI usage:

1. exec_command

Function: Execute Linux system commands in the sandbox

Parameters:

  • cmd (string): The command to execute

Return Value: Execution result containing stdout, stderr, and success fields

2. get_preview_link

Function: Get the access URL for web services in the sandbox

Parameters:

  • port (int): Port number

Return Value: Result containing the accessible URL

3. upload_files_to_sandbox

Function: Upload local files or folders to a specified directory in the sandbox

Parameters:

  • local_path (string): Absolute path of local file or folder
  • target_path (string, optional): Target directory path in the sandbox, defaults to /user_uploaded_files/

Return Value: Result containing the list of successfully uploaded files or error information

4. find_file_path

Function: Search for files or directories by name and return their absolute paths

Parameters:

  • filename (string): The filename to search for (supports wildcards like .py, project, etc.)
  • search_path (string, optional): Starting search path or shortcut option
    • Specific paths: e.g., "/Users/username/Desktop/Projects"
    • Shortcut options: "desktop" (default), "documents", "downloads", "home"

Return Value: Search results containing a list of found files/directories with complete paths, types, sizes, and modification times

Usage

MCP Server Configuration

To configure this server in Efflux, Cursor, or other MCP clients, add the following configuration to your MCP configuration file:

{
  "mcpServers": {
    "agentsphere": {
      "command": "uvx",
      "args": ["agentsphere-mcp-server"],
      "env": {
        "AGENTSPHERE_API_KEY": "your_api_key_here"
      }
    }
  }
}

Note:

  • Replace your_api_key_here with your AgentSphere API key
  • Please ensure uv is installed (uv is a modern Python dependency and project manager: https://docs.astral.sh/uv/getting-started/installation/)
  • Please ensure network connectivity. Users in mainland China are recommended to enable global proxy to ensure proper functionality

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentsphere_mcp_server-1.6.0.tar.gz (48.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentsphere_mcp_server-1.6.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file agentsphere_mcp_server-1.6.0.tar.gz.

File metadata

File hashes

Hashes for agentsphere_mcp_server-1.6.0.tar.gz
Algorithm Hash digest
SHA256 da55da409d2925110d630a5f6e74c71397363609d64f84b2fd7839c91e120bef
MD5 c7dc50f8b61b0d6d39f261419c5391ef
BLAKE2b-256 b6f177912444dbbe2bce0cc4ff49b59a94e3f9ab9db0549238f43616f3e04612

See more details on using hashes here.

File details

Details for the file agentsphere_mcp_server-1.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentsphere_mcp_server-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3e04b3c12d652653bed3890c93308f6eed8ce7dce35e3f19f2ef94be3ad7a91
MD5 8653a9f29ec494c48366847d3623ac96
BLAKE2b-256 cfaba6694a55402644fa0530aa2769e2acab9a47ddee7a10f87c8cc9e6028d39

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page