Skip to main content

Підключіть AutoGen до aicharged.io

215 інструментів, одна кінцева точка: https://aicharged.io/api/v1/mcp

AutoGen

AutoGen: StreamableHttpServerParams із headers, використовується через McpWorkbench.

  • Ключ API (Bearer)

Код клієнта

Рекомендовано
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())

Установіть пакет

pip install "autogen-ext[mcp]"

Або дозвольте CLI налаштувати все

aicharged setup знаходить AI-клієнти на цьому комп'ютері, авторизує вас через браузер і записує їхню конфігурацію.

Підключення в один рядок

Встановити CLI · macOS / Linux
curl -fsSL https://aicharged.io/install.sh | sh && aicharged setup
Встановити CLI · Windows
irm https://aicharged.io/install.ps1 | iex; aicharged setup
Кінцева точка MCP
https://aicharged.io/api/v1/mcp

Потоковий HTTP. Надсилайте заголовок Authorization: Bearer <API_KEY> або увійдіть за допомогою OAuth, якщо ваш клієнт це підтримує.

Або скажіть своєму агенту
Прочитай https://aicharged.io/agent.md і налаштуй мені aicharged.io

Відкрити з цим запитом у Claude (відкривається в новій вкладці) ChatGPT (відкривається в новій вкладці) Perplexity (відкривається в новій вкладці)