Skip to main content
POST
/
sessions
/
{userId}
Initialize user session
curl --request POST \
  --url http://localhost:3000/sessions/{userId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "serverConfigs": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "./allowed_directory"
      ]
    }
  }
}
'
{
  "success": true
}

Path Parameters

userId
string
required

Body

application/json

The body is of type unknown.

Response

Session initialized successfully