Skip to main content

Python (MCP SDK) ஐ aicharged.io உடன் இணைக்கவும்

215 கருவிகள், ஒரு எண்ட்பாயிண்ட்: https://aicharged.io/api/v1/mcp

Python (MCP SDK)

அதிகாரப்பூர்வ Python MCP SDK (v1): Authorization ஹெடருடன் Streamable HTTP கிளையண்ட்.

  • API விசை (Bearer)

தொகுப்பை நிறுவவும்

pip install "mcp<2"

கிளையண்ட் குறியீடு

பரிந்துரைக்கப்படுகிறது
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())

அல்லது 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 (புதிய தாவலில் திறக்கும்)