Pular para o conteúdo principal
POST
/
api
/
v1
/
llm
/
mcp
/
servers
/
{server_id}
/
credentials
Python (SDK)
from mka1 import SDK


with SDK(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:

    res = sdk.llm.mcp_vault.create_credential(server_id="mcp_srv_aa87e2b1112a455b8deabed784372198", name="Personal Linear token", bearer_token="lin_api_xxx")

    # Handle response
    print(res)
{
  "id": "mcp_cred_bb98f3c2223b566c9dfbcef895483209",
  "object": "mcp.credential",
  "server_id": "mcp_srv_aa87e2b1112a455b8deabed784372198",
  "name": "Personal Linear token",
  "auth_type": "bearer",
  "authorization_preview": "****...1234",
  "header_names": [],
  "expires_at": null,
  "last_used_at": null,
  "created_at": "2026-04-29T12:00:00.000Z",
  "updated_at": "2026-04-29T12:00:00.000Z",
  "revoked_at": null
}

Documentation Index

Fetch the complete documentation index at: https://docs.mka1.com/llms.txt

Use this file to discover all available pages before exploring further.

Autorizações

Authorization
string
header
obrigatório

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Cabeçalhos

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Parâmetros de caminho

server_id
string
obrigatório

Corpo

application/json
name
string | null
Required string length: 1 - 255
auth_type
enum<string>
Opções disponíveis:
bearer,
authorization,
headers,
none
bearer_token
string
Required string length: 1 - 8192
authorization
string
Required string length: 1 - 8192
headers
object
expires_at
string<date-time> | null

Resposta

201 - application/json

OK

id
string
obrigatório
object
any
obrigatório
server_id
string
obrigatório
name
string | null
obrigatório
auth_type
enum<string>
obrigatório
Opções disponíveis:
bearer,
authorization,
headers,
none
authorization_preview
string | null
obrigatório
header_names
string[]
obrigatório
expires_at
string<date-time> | null
obrigatório
last_used_at
string<date-time> | null
obrigatório
created_at
string<date-time>
obrigatório
updated_at
string<date-time>
obrigatório
revoked_at
string<date-time> | null
obrigatório