Lybic Docs

Lybic MCP Servers

MCP Servers are a standard way to expose Lybic agent to LLMs.

MCP servers are stateful, each one can be attached by one sandbox at a time. That means you should use one MCP server per agent per session, and you can create as many MCP servers as you want in Lybic dashboard or from API/SDK. DO NOT use one MCP server for multiple agents or use one MCP server concurrently.

Upon creation or initialization, Lybic will create a new sandbox for each MCP server and attach it to the MCP server. Each sandbox can live for 24 hours, and will be deleted after that. Besides, if a sandbox is not used for a while, it can be deleted automatically per MCP server configuration.

If no sandbox attached to the MCP server when calling computer use tools, a new sandbox will be created automatically and attached to the MCP server.

MCP Server configuration

You can configure the MCP server behavior by setting the following parameters in dashboard or API:

  • Max Sandbox Lifetime: The maximum lifetime of a sandbox. After that, the sandbox will be deleted, regardless of the MCP server is still in use or not.
  • Max Sandbox Idle Time: The maximum idle time of a sandbox. If a sandbox is not used in the MCP server for a while, it will be deleted automatically.
  • Sandbox Auto Creation: Whether to create a new sandbox automatically when old sandbox is deleted. If not, new sandboxes will be created when calling computer use tools.
  • Expose Recreate Tool: Whether to expose recreate tool to LLMs. If yes, LLMs can recreate the sandbox by calling the tool.
  • Expose Restart Tool: Whether to expose sandbox restart tool to LLMs. If yes, LLMs can restart the sandbox by calling the tool.
  • Expose Delete Tool: Whether to expose sandbox delete tool to LLMs. If yes, LLMs can delete the sandbox by calling the tool.

Default MCP Server

Lybic provides a default MCP server for each project for convenience. It cannot be deleted or modified, you can disable it if you don't need it.

It's ideal to use default MCP server for prototype, quick testing, and single session applications.

Default MCP server is configured with the following parameters:

  • Max Sandbox Lifetime: 24 hours
  • Max Sandbox Idle Time: 1 hour
  • Sandbox Auto Creation: No
  • Expose Recreate Tool: No
  • Expose Restart Tool: No
  • Expose Delete Tool: No