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 کلاینت‌های هوش مصنوعی روی این دستگاه را پیدا می‌کند، شما را از طریق مرورگر وارد می‌کند و پیکربندی آن‌ها را می‌نویسد.

با یک خط وصل شوید

نصب 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

Streamable HTTP. هدر Authorization: Bearer <API_KEY> را بفرستید، یا هر جا کلاینت شما پشتیبانی می‌کند با OAuth وارد شوید.

یا به ایجنت خود بگویید
https://aicharged.io/agent.md را بخوان و aicharged.io را برای من راه‌اندازی کن

باز کردن با این پرامپت در Claude (در تب جدید باز می‌شود) ChatGPT (در تب جدید باز می‌شود) Perplexity (در تب جدید باز می‌شود)