Skip to main content

Create Session

Create a new session for a user.
POST /sessions/:userId

Request Body

{
  "serverConfigs": {
    "filesystem": {
      "command": "npx",
      "args": ["@modelcontextprotocol/server-filesystem", "./allowed_directory"]
    }
  }
}

Response

{
  "sessionId": "123",
  "userId": "user123",
  "created": "2024-02-20T10:00:00Z"
}

Delete Session

Delete an existing session.
DELETE /sessions/:userId

Response

{
  "success": true,
  "message": "Session deleted successfully"
}