Skip to main content

aicharged.io에 Python (MCP SDK) 연결

도구 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로 로그인하세요.

또는 에이전트에게 지시하세요
다음을 읽고 aicharged.io를 설정해 주세요: https://aicharged.io/agent.md

이 프롬프트로 열기: Claude (새 창에서 열림) ChatGPT (새 창에서 열림) Perplexity (새 창에서 열림)