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


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

    res = sdk.llm.mcp_vault.update_server(server_id="mcp_srv_aa87e2b1112a455b8deabed784372198", allowed_tools=[
        "issues.list",
        "issues.create",
    ])

    # Handle response
    print(res)
{
  "id": "mcp_srv_aa87e2b1112a455b8deabed784372198",
  "object": "mcp.server",
  "name": "Linear",
  "server_label": "linear",
  "server_url": "https://mcp.linear.app/mcp",
  "server_description": "Linear MCP server",
  "allowed_tools": [
    "issues.list"
  ],
  "require_approval": "always",
  "metadata": {},
  "created_at": "2026-04-29T12:00:00.000Z",
  "updated_at": "2026-04-29T12:00:00.000Z"
}

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
Required string length: 1 - 255
server_label
string
Required string length: 1 - 255
Pattern: ^[A-Za-z0-9._-]+$
server_url
string<uri>
Maximum string length: 2048
server_description
string | null
Maximum string length: 10000
allowed_tools
require_approval
enum<string>
Opções disponíveis:
always,
never
metadata
object

Resposta

200 - application/json

OK

id
string
obrigatório
object
any
obrigatório
name
string
obrigatório
server_label
string
obrigatório
server_url
string
obrigatório
server_description
string | null
obrigatório
allowed_tools
obrigatório
require_approval
enum<string>
obrigatório
Opções disponíveis:
always,
never
metadata
object
obrigatório
created_at
string<date-time>
obrigatório
updated_at
string<date-time>
obrigatório