PromptReports
Connect your agent

Claude Agent SDK

Claude Agent SDK loads the PromptReports family tools with an "http" entry in mcp_servers of ClaudeAgentOptions, with allowed_tools set to mcp__promptreports__*. Nothing from PromptReports is installed: the agent reaches https://mcp.promptreports.ai/mcp over Streamable HTTP with a PromptReports ID token.

  1. Install Claude Agent SDK: pip install claude-agent-sdk.
  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/claude-agent-sdk/agent.py:

"""Load the PromptReports family MCP tools into the Claude Agent SDK.

From the SDK's MCP docs (https://code.claude.com/docs/en/agent-sdk/mcp): an HTTP server
in mcp_servers takes "type": "http", url and headers, and allowed_tools names its tools
as mcp__<server>__<tool>.

    pip install claude-agent-sdk
    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 key.
"""

import asyncio
import os

from claude_agent_sdk import ClaudeAgentOptions, ResultMessage, query

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

options = ClaudeAgentOptions(
    mcp_servers={
        "promptreports": {
            "type": "http",
            "url": FAMILY_MCP,
            "headers": {"Authorization": f"Bearer {os.environ['PROMPTREPORTS_TOKEN']}"},
        }
    },
    allowed_tools=["mcp__promptreports__*"],
)


async def main():
    async for message in query(prompt="List the PromptReports workflows I can run.", options=options):
        if isinstance(message, ResultMessage) and message.subtype == "success":
            print(message.result)


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

Tools from the server are named mcp__promptreports__<tool>, so the wildcard allows each family tool and nothing else.

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

Docs: https://code.claude.com/docs/en/agent-sdk/mcp

Connect your agent lists every client and framework.