Skip to main content

aicharged.io에 Mastra 연결

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

Mastra

Mastra: @mastra/mcp의 MCPClient, 키는 requestInit headers에 지정합니다.

  • API 키(Bearer)
  • OAuth 로그인

클라이언트 코드

추천
import { MCPClient } from '@mastra/mcp';

const mcp = new MCPClient({
  servers: {
    aicharged: {
      url: new URL('https://aicharged.io/api/v1/mcp'),
      requestInit: { headers: { Authorization: `Bearer ${process.env.AICHARGED_API_KEY}` } },
    },
  },
});
const tools = await mcp.listTools();
console.log(Object.keys(tools));

패키지 설치

npm install @mastra/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 (새 창에서 열림)