Skycloak MCP Sessions API
The MCP Sessions API from Skycloak — 1 operation(s) for mcp sessions.
The MCP Sessions API from Skycloak — 1 operation(s) for mcp sessions.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/skycloak-io:skycloak-io-mcp-sessions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Skycloak Public MCP Sessions API
version: '2026-03-01'
contact:
name: Skycloak Support
url: https://support.skycloak.io
license:
name: Proprietary
description: Programmatic management of Keycloak infrastructure on the Skycloak platform.
servers:
- url: http://localhost:8000
description: Local development
variables: {}
tags:
- name: MCP Sessions
paths:
/api-keys/mcp-sessions:
get:
operationId: countMcpSessions
summary: Count active MCP sessions
description: 'Returns how many MCP sessions are live in the workspace: session keys that are active and not past their expiry, across every member. Session keys are not listed with API keys.
Requires the `apikeys:manage` workspace permission.'
parameters: []
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/McpSessionsCountResponse'
'401':
description: Access is unauthorized.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'403':
description: Access is forbidden.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'429':
description: Client error
headers:
Retry-After:
required: false
schema:
type: integer
RateLimit-Limit:
required: false
schema:
type: integer
RateLimit-Remaining:
required: false
schema:
type: integer
RateLimit-Reset:
required: false
schema:
type: integer
X-RateLimit-Limit-Second:
required: false
schema:
type: integer
X-RateLimit-Remaining-Second:
required: false
schema:
type: integer
X-RateLimit-Limit-Minute:
required: false
schema:
type: integer
X-RateLimit-Remaining-Minute:
required: false
schema:
type: integer
X-RateLimit-Limit-Hour:
required: false
schema:
type: integer
X-RateLimit-Remaining-Hour:
required: false
schema:
type: integer
X-RateLimit-Limit-Day:
required: false
schema:
type: integer
X-RateLimit-Remaining-Day:
required: false
schema:
type: integer
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'500':
description: Server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'501':
description: Server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
tags:
- MCP Sessions
delete:
operationId: revokeMcpSessions
summary: Revoke all MCP sessions
description: 'Ends every live MCP session in the workspace, for every member. API keys created by members are not affected. A member''s MCP client signs in again and gets a new session.
Requires the `apikeys:manage` workspace permission.'
parameters: []
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/McpSessionsRevokedResponse'
'401':
description: Access is unauthorized.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'403':
description: Access is forbidden.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'429':
description: Client error
headers:
Retry-After:
required: false
schema:
type: integer
RateLimit-Limit:
required: false
schema:
type: integer
RateLimit-Remaining:
required: false
schema:
type: integer
RateLimit-Reset:
required: false
schema:
type: integer
X-RateLimit-Limit-Second:
required: false
schema:
type: integer
X-RateLimit-Remaining-Second:
required: false
schema:
type: integer
X-RateLimit-Limit-Minute:
required: false
schema:
type: integer
X-RateLimit-Remaining-Minute:
required: false
schema:
type: integer
X-RateLimit-Limit-Hour:
required: false
schema:
type: integer
X-RateLimit-Remaining-Hour:
required: false
schema:
type: integer
X-RateLimit-Limit-Day:
required: false
schema:
type: integer
X-RateLimit-Remaining-Day:
required: false
schema:
type: integer
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'500':
description: Server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'501':
description: Server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
tags:
- MCP Sessions
components:
schemas:
ErrorBody:
type: object
required:
- type
- title
- status
- detail
properties:
type:
type: string
format: uri
title:
type: string
status:
type: integer
detail:
type: string
instance:
type: string
format: uri
description: RFC 9457 Problem Details object.
McpSessionsCountResponse:
type: object
required:
- count
properties:
count:
type: integer
minimum: 0
description: Session keys that are active and not past their expiry, across every member of the workspace.
description: Number of MCP sessions currently live in the workspace.
McpSessionsRevokedResponse:
type: object
required:
- revoked
properties:
revoked:
type: integer
minimum: 0
description: Number of session keys that were revoked. `0` when the workspace had no live sessions.
description: Result of ending every MCP session in the workspace.
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: API-Key