Skip to main content
A workspace is the agent’s execution environment. It supplies the resources the agent acts with, and owns the lifecycle of everything living inside it (MCP server processes, dynamically added skills, offloaded files): AgentScope ships six workspace implementations, one per execution environment. All of them expose the same interface, so the same agent code runs against any backend:

Interface

Every implementation derives from WorkspaceBase, whose methods fall into four roles: For the sandboxed backends (Docker, E2B, Daytona, K8s, OpenSandbox), MCP servers run inside the isolated environment; the host reaches them through an in-workspace gateway, covered in MCP Gateway.

Next Steps

Run Workspace

Create a workspace on any backend and wire it into an agent.

Manage Resources

Add and remove MCP servers and skills at runtime.

MCP Gateway

How sandboxed workspaces expose their MCP servers to the host.

Workspace Manager

Allocate and isolate workspaces per user, agent, or session in a service.