Skip to main content

將 CrewAI 連接到 aicharged.io

215 個工具,單一端點:https://aicharged.io/api/v1/mcp

CrewAI

CrewAI:在 mcps 中為代理提供 MCPServerHTTP,使用 streamable HTTP 與 Authorization 標頭。

  • API 金鑰(Bearer)

代理程式碼

推薦
import os
from crewai import Agent
from crewai.mcp import MCPServerHTTP

agent = Agent(
    role="Media producer",
    goal="Create media with the aicharged.io tools",
    backstory="You work through the aicharged.io MCP server.",
    mcps=[MCPServerHTTP(
        url="https://aicharged.io/api/v1/mcp",
        headers={"Authorization": f"Bearer {os.environ['AICHARGED_API_KEY']}"},
        streamable=True,
    )],
)

或讓 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 (在新分頁中開啟)