Receive the SAML SSO response

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api-docs.kitsu.cloud/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Kitsu API MCP server": {
    "url": "https://api-docs.kitsu.cloud/mcp"
  }
}

Close
POST /auth/saml/sso

Receive the authentication response of the SAML identity provider. If SAML_SUBJECT_ATTRIBUTE is set, this route logs in the person linked to the issuer and the subject of the assertion. The email finds the account at the first login only. If no person has this email, a new person is created.

application/x-www-form-urlencoded

Body Required

  • SAMLResponse string Required

    SAML response of the identity provider, base64 encoded

Responses

  • 302

    The login is successful. Redirect to the home page.

  • 400

    SAML is not enabled, a parameter is wrong, or the account is linked to a different identity

POST /auth/saml/sso
curl -X POST "http://api.example.com/auth/saml/sso" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
import requests

url = "http://api.example.com/auth/saml/sso"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
params = {}
payload = None

response = requests.post(
    url,
    headers=headers,
    params=params,
    json=payload
)

response.raise_for_status()

if response.content:
    print(response.json())