Skip to main content

Podłącz Anthropic Messages API do aicharged.io

215 narzędzi, jeden punkt końcowy: https://aicharged.io/api/v1/mcp

Anthropic Messages API

Konektor MCP w Anthropic Messages API (beta): mcp_servers plus mcp_toolset — Claude wywołuje aicharged.io bezpośrednio z API.

  • Klucz API (Bearer)

Hostowane narzędzie MCP — API wywołuje aicharged.io za ciebie

Zalecane
import os
import anthropic

client = anthropic.Anthropic()
response = client.beta.messages.create(
    model="claude-opus-5-5",
    max_tokens=16000,
    betas=["mcp-client-2025-11-20"],
    messages=[{"role": "user", "content": "List my recent aicharged.io runs"}],
    mcp_servers=[{
        "type": "url",
        "url": "https://aicharged.io/api/v1/mcp",
        "name": "aicharged",
        "authorization_token": os.environ["AICHARGED_API_KEY"],
    }],
    tools=[{"type": "mcp_toolset", "mcp_server_name": "aicharged"}],
)
print(response.content)

Funkcja beta: zachowaj flagę beta mcp-client-2025-11-20. API wysyła authorization_token do aicharged.io jako token Bearer.

To samo żądanie w curl

curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: mcp-client-2025-11-20" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-opus-5-5",
    "max_tokens": 16000,
    "messages": [{"role": "user", "content": "List my recent aicharged.io runs"}],
    "mcp_servers": [{"type": "url", "url": "https://aicharged.io/api/v1/mcp", "name": "aicharged", "authorization_token": "<API_KEY>"}],
    "tools": [{"type": "mcp_toolset", "mcp_server_name": "aicharged"}]
  }'

Albo pozwól, aby CLI to skonfigurował

aicharged setup wyszukuje klientów AI na tym komputerze, loguje Cię przez przeglądarkę i zapisuje ich konfigurację.

Połącz w jednej linijce

Zainstaluj CLI · macOS / Linux
curl -fsSL https://aicharged.io/install.sh | sh && aicharged setup
Zainstaluj CLI · Windows
irm https://aicharged.io/install.ps1 | iex; aicharged setup
Punkt końcowy MCP
https://aicharged.io/api/v1/mcp

Strumieniowe HTTP. Wyślij nagłówek Authorization: Bearer <API_KEY> lub zaloguj się przez OAuth, jeśli Twój klient to obsługuje.

Lub powiedz swojemu agentowi
Przeczytaj https://aicharged.io/agent.md i skonfiguruj mi aicharged.io

Otwórz z tym promptem w Claude (otwiera się w nowej karcie) ChatGPT (otwiera się w nowej karcie) Perplexity (otwiera się w nowej karcie)