Skip to main content

AutoGen ला aicharged.io शी कनेक्ट करा

215 टूल्स, एक एंडपॉइंट: https://aicharged.io/api/v1/mcp

AutoGen

AutoGen: headers सह StreamableHttpServerParams, 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 (नवीन टॅबमध्ये उघडते)