Zum Hauptinhalt springen
DokumentationDevelopers

MCP-Tools

Gib deinen Agents die Tools jedes MCP-Servers, den deine Organisation installiert hat, über einen Endpoint und einen Key.

Menü der Dokumentation

Jede Region hat einen MCP-Endpoint, /mcp/ auf dem Inference-Host. Er spricht MCP über Streamable HTTP und liefert gemeinsam die Tools der MCP-Server, die deine Organisation in der Console unter MCPs installiert hat. Tool-Namen tragen den Alias der Installation als Präfix, also <alias>-<tool>.

Einen Client verbinden

Jeder MCP-Client, der Streamable HTTP und einen eigenen Header unterstützt, funktioniert. Zum Beispiel:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "ccsio": {
      "type": "remote",
      "url": "https://api.eu.ccsio.ai/mcp/",
      "headers": { "Authorization": "Bearer {env:CCSIO_API_KEY}" }
    }
  }
}

Das Protokoll direkt verwenden

curl
# 1. Open a session. The answer's Mcp-Session-Id header names it.
curl -i "https://api.eu.ccsio.ai/mcp/" \
  -H "Authorization: Bearer $CCSIO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "initialize",
       "params": {"protocolVersion": "2025-06-18", "capabilities": {},
                  "clientInfo": {"name": "my-app", "version": "1.0.0"}}}'

# 2. List the tools of every MCP server your organization installed.
curl "https://api.eu.ccsio.ai/mcp/" \
  -H "Authorization: Bearer $CCSIO_API_KEY" \
  -H "Mcp-Session-Id: <the id from step 1>" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 2, "method": "tools/list"}'

# 3. End the session when you are done.
curl -X DELETE "https://api.eu.ccsio.ai/mcp/" \
  -H "Authorization: Bearer $CCSIO_API_KEY" \
  -H "Mcp-Session-Id: <the id from step 1>"
  • initialize öffnet eine Session; sende deren Mcp-Session-Id bei jeder weiteren Anfrage mit. Die Protokollversionen sind 2025-06-18 und 2025-03-26.
  • Der Stream vom Server zum Client (GET /mcp/) wird nicht angeboten: Er antwortet mit 405.
  • Für Tool-Aufrufe brauchst du die Berechtigung mcp.invoke, die jede eingebaute Rolle hat. Eine Installation kann auf einzelne Teams beschränkt werden.
Plattform entdecken

Deinen ersten API-Key holen

Die Registrierung ist offen. Vier Schritte bis zum ersten Aufruf: Konto erstellen, Organisation anlegen, API-Key erzeugen, loslegen.

  1. 01Konto erstellen
  2. 02Organisation anlegen
  3. 03API-Key erzeugen
  4. 04Loslegen