Lybic Docs

Create MCP server

Creates a new MCP server.

POST
/api/orgs/{orgId}/mcp-servers

Path Parameters

orgIdstring

The organization ID

namestring

Name of the MCP server.

projectId?string

Project to which the MCP server belongs to.

sandboxMaxLifetimeSeconds?number

The maximum lifetime of a sandbox.

Default3600
sandboxMaxIdleTimeSeconds?number

The maximum idle time of a sandbox.

Default3600
sandboxAutoCreation?boolean

Whether to create a new sandbox automatically when old sandbox is deleted. If not, new sandboxes will be created when calling computer use tools.

Defaultfalse
sandboxExposeRecreateTool?boolean

Whether to expose recreate tool to LLMs.

Defaultfalse
sandboxExposeRestartTool?boolean

Whether to expose restart tool to LLMs.

Defaultfalse
sandboxExposeDeleteTool?boolean

Whether to expose delete tool to LLMs.

Defaultfalse

Response Body

{
  "id": "string",
  "name": "string",
  "createdAt": "string",
  "defaultMcpServer": true,
  "projectId": "string",
  "policy": {
    "sandboxMaxLifetimeSeconds": 3600,
    "sandboxMaxIdleTimeSeconds": 3600,
    "sandboxAutoCreation": false,
    "sandboxExposeRecreateTool": false,
    "sandboxExposeRestartTool": false,
    "sandboxExposeDeleteTool": false
  },
  "currentSandboxId": "string"
}