Skip to main content

aicharged.io에 LlamaIndex 연결

도구 215개, 단일 엔드포인트: https://aicharged.io/api/v1/mcp

LlamaIndex

LlamaIndex: headers가 있는 BasicMCPClient를 쓰고, McpToolSpec이 도구를 LlamaIndex 도구로 변환합니다.

  • API 키(Bearer)
  • OAuth 로그인

클라이언트 코드

추천
import asyncio, os
from llama_index.tools.mcp import BasicMCPClient, McpToolSpec

async def main():
    client = BasicMCPClient("https://aicharged.io/api/v1/mcp", headers={"Authorization": f"Bearer {os.environ['AICHARGED_API_KEY']}"})
    tools = await McpToolSpec(client=client).to_tool_list_async()
    print([tool.metadata.name for tool in tools])

asyncio.run(main())

패키지 설치

pip install llama-index-tools-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로 로그인하세요.

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

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