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,
)],
)