CrewAI
CrewAI loads the PromptReports family tools with MCPServerHTTP from crewai.mcp, passed to an Agent through mcps=. Nothing from PromptReports is installed: the agent reaches https://mcp.promptreports.ai/mcp over Streamable HTTP with a PromptReports ID token.
- Install CrewAI:
pip install crewai mcp. - Get a family MCP access token for your person from PromptReports ID, with the authorization code flow on the ID for agents page, and put it in
PROMPTREPORTS_TOKEN. It lives five minutes. - Run the example. Its first call lists the workflows your organization can run (
list_workflows()).
The example, examples/crewai/agent.py:
"""Load the PromptReports family MCP tools into a CrewAI agent.
From CrewAI's MCP docs (https://docs.crewai.com/en/mcp/overview): MCPServerHTTP takes a
url, headers and streamable=True, and an Agent loads it through mcps=.
pip install crewai mcp
PROMPTREPORTS_TOKEN=... python agent.py
PROMPTREPORTS_TOKEN is a family MCP access token from PromptReports ID
(https://promptreports.ai/id-for-agents/). The agent's model runs on your own key, set
the way CrewAI's docs say.
"""
import os
from crewai import Agent, Crew, Task
from crewai.mcp import MCPServerHTTP
FAMILY_MCP = "https://mcp.promptreports.ai/mcp"
family = MCPServerHTTP(
url=FAMILY_MCP,
headers={"Authorization": f"Bearer {os.environ['PROMPTREPORTS_TOKEN']}"},
streamable=True,
)
operator = Agent(
role="PromptReports family operator",
goal="Answer from the PromptReports family MCP tools",
backstory="You work for one person in their PromptReports organization.",
mcps=[family],
)
task = Task(
description="List the PromptReports workflows I can run.",
expected_output="Each workflow's id and title.",
agent=operator,
)
if __name__ == "__main__":
print(Crew(agents=[operator], tasks=[task]).kickoff())
CrewAI's MCPServerAdapter dict form also reaches a Streamable HTTP server, but its docs show no headers there, so the example uses MCPServerHTTP, which takes them.
The model the framework calls runs on your own key, set the way the framework's docs say. PromptReports never supplies one.
Docs: https://docs.crewai.com/en/mcp/overview, https://docs.crewai.com/en/mcp/streamable-http
Connect your agent lists every client and framework.