PromptReports
Connect your agent

OpenAI Agents SDK

OpenAI Agents SDK loads the PromptReports family tools with MCPServerStreamableHttp from agents.mcp, passed to an Agent through mcp_servers=. Nothing from PromptReports is installed: the agent reaches https://mcp.promptreports.ai/mcp over Streamable HTTP with a PromptReports ID token.

  1. Install OpenAI Agents SDK: pip install openai-agents.
  2. 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.
  3. Run the example. Its first call lists the workflows your organization can run (list_workflows()).

The example, examples/openai-agents/agent.py:

"""Load the PromptReports family MCP tools into an OpenAI Agents SDK agent.

From the SDK's MCP docs (https://openai.github.io/openai-agents-python/mcp/):
MCPServerStreamableHttp takes params with url and headers, and Agent takes
mcp_servers=[server].

    pip install openai-agents
    PROMPTREPORTS_TOKEN=... python agent.py

PROMPTREPORTS_TOKEN is a family MCP access token from PromptReports ID
(https://promptreports.ai/id-for-agents/). The model runs on your own OpenAI key.
"""

import asyncio
import os

from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp

FAMILY_MCP = "https://mcp.promptreports.ai/mcp"


async def main():
    async with MCPServerStreamableHttp(
        name="PromptReports family MCP",
        params={
            "url": FAMILY_MCP,
            "headers": {"Authorization": f"Bearer {os.environ['PROMPTREPORTS_TOKEN']}"},
            "timeout": 10,
        },
        cache_tools_list=True,
    ) as server:
        agent = Agent(
            name="PromptReports family operator",
            instructions="Answer from the PromptReports family MCP tools.",
            mcp_servers=[server],
        )
        result = await Runner.run(agent, "List the PromptReports workflows I can run.")
        print(result.final_output)


if __name__ == "__main__":
    asyncio.run(main())

The SDK's docs suggest keeping the token in a header, never in the URL.

The model the framework calls runs on your own key, set the way the framework's docs say. PromptReports never supplies one.

Docs: https://openai.github.io/openai-agents-python/mcp/

Connect your agent lists every client and framework.