Skip to main content

Podłącz AutoGen do aicharged.io

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

AutoGen

AutoGen: StreamableHttpServerParams z headers, używany przez McpWorkbench.

  • Klucz API (Bearer)

Kod klienta

Zalecane
import asyncio, os
from autogen_ext.tools.mcp import McpWorkbench, StreamableHttpServerParams

async def main():
    params = StreamableHttpServerParams(
        url="https://aicharged.io/api/v1/mcp",
        headers={"Authorization": f"Bearer {os.environ['AICHARGED_API_KEY']}"},
        timeout=30.0,
    )
    async with McpWorkbench(params) as workbench:
        tools = await workbench.list_tools()
        print([tool["name"] for tool in tools])

asyncio.run(main())

Zainstaluj pakiet

pip install "autogen-ext[mcp]"

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)