Skip to main content

Připoj Python (MCP SDK) k aicharged.io

215 nástrojů, jeden endpoint: https://aicharged.io/api/v1/mcp

Python (MCP SDK)

Oficiální Python MCP SDK (verze 1): klient přes Streamable HTTP s hlavičkou Authorization.

  • API klíč (Bearer)

Instalace balíčku (install)

pip install "mcp<2"

Kód klienta (client)

Doporučeno
import asyncio, os
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client

async def main():
    headers = {"Authorization": f"Bearer {os.environ['AICHARGED_API_KEY']}"}
    async with streamablehttp_client("https://aicharged.io/api/v1/mcp", headers=headers) as (read, write, _):
        async with ClientSession(read, write) as session:
            await session.initialize()
            tools = await session.list_tools()
            print([tool.name for tool in tools.tools])
            print(await session.call_tool("list_runs", {}))

asyncio.run(main())

Nebo to nech nastavit CLI

aicharged setup najde AI klienty na tomto počítači, přihlásí tě přes prohlížeč a zapíše jejich konfiguraci.

Připoj se jedním řádkem

Instalace CLI · macOS / Linux
curl -fsSL https://aicharged.io/install.sh | sh && aicharged setup
Instalace CLI · Windows
irm https://aicharged.io/install.ps1 | iex; aicharged setup
MCP endpoint
https://aicharged.io/api/v1/mcp

Streamable HTTP. Pošli hlavičku Authorization: Bearer <API_KEY>, nebo se přihlas přes OAuth, pokud to tvůj klient umí.

Nebo řekni agentovi
Přečti si https://aicharged.io/agent.md a nastav mi aicharged.io

Otevřít s tímto promptem v Claude (otevře se v nové kartě) ChatGPT (otevře se v nové kartě) Perplexity (otevře se v nové kartě)