Skip to main content

Подключение CrewAI к aicharged.io

215 инструментов, одна конечная точка: https://aicharged.io/api/v1/mcp

CrewAI

CrewAI: передайте агенту MCPServerHTTP в mcps с 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 (открывается в новой вкладке)