Use an MCP client that supports Streamable HTTP and an Authorization header.
Two kinds of token
| Token | Purpose |
|---|---|
| Administrator | Manage profiles, tokens, and approvals. |
| Profile | Authenticate an MCP client and select its permitted tools. |
Create a profile token
The Quickstart creates the demo profile. To connect with a different profile, replace its name in the request. Run the following with your administrator token.
curl --fail-with-body -X POST http://127.0.0.1:8789/api/v1/profile-tokens \
-H "Authorization: Bearer $SPLICEDOCK_ADMIN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"profile":"demo","agent":"my-agent","expires_in_seconds":3600}'HTTP 201 returns data.token and data.id. Save the raw token in your client’s secret store when it is issued.
Configure the client
transport: Streamable HTTP
url: http://127.0.0.1:8788/mcp
header: Authorization: Bearer <PROFILE_TOKEN>The exact configuration field names depend on your client. Reconnect after changing them.
How the profile is selected
The bearer token selects its bound profile. Connect to /mcp with Authorization: Bearer <PROFILE_TOKEN>. With server.require_profile_token: true, a missing, unknown, expired, or revoked token returns HTTP 401.
Rotate or revoke a token
| Action | Endpoint |
|---|---|
| List tokens | GET /api/v1/profile-tokens |
| Rotate | POST /api/v1/profile-tokens/:id/rotate |
| Revoke | POST /api/v1/profile-tokens/:id/revoke with reason manual or compromised |
Rotation returns HTTP 201. Save the new data.token in your client’s secret store and reconnect. Keep data.id for the next rotation or revocation. Send {"reason":"manual"} to revoke a token. HTTP 204 confirms revocation. Admin UI mutations using a session cookie require X-Splicedock-CSRF.