Use the family from an agent framework
An agent built with any framework that speaks MCP can use every family product through one server, https://mcp.promptreports.ai/mcp. It runs workflows there and calls the read tools of six products by name.
One server or seven
Start with the one server. It holds the workflow tools (list_workflows, start_run, get_run, get_record and the rest) and, beside them, read tools from six products, each named with its product's prefix. A workflow step can call any product, so an agent that only starts workflows needs nothing else.
| Prefix | Product | Examples |
|---|---|---|
repoops_ | RepoOps | repoops_search_brain, repoops_get_pre_edit_context, repoops_get_prod_incidents |
promptcompute_ | PromptCompute | promptcompute_get_approval, promptcompute_list_action_types |
contextfile_ | ContextFile | contextfile_context_packet, contextfile_wiki_ask |
commitops_ | CommitOps | commitops_check_claim, commitops_can_we_promise |
salesascode_ | Sales as Code | salesascode_predict_deal, salesascode_read_account |
aisot_ | AI Source of Truth | aisot_search_records, aisot_verify_signature |
These are a starting set of reads and checks, eight or fewer per product. An agent that needs a product's writes, for example CommitOps promises or ContextFile publishing, also connects to that product's own server, listed on the MCP reference.
Signing in with no browser
An agent that runs on a server cannot finish a browser sign-in. It signs in as itself instead, under a grant its person gave it, in three steps.
1. Register the agent once at PromptCompute with an Ed25519 key: POST /v1/agents, then prove the key. The agent developer guide in the PromptCompute docs has the calls.
2. Ask the person once. request_consent returns a link. The person opens it, sees every product and scope the agent asks for, and approves. collect_consent then returns a grant id (apg_...) per product.
3. Pass the grant to FamilyAgentAuth. It trades the grant for a token that lives one minute, renews it before it runs out, and signs a fresh DPoP proof (RFC 9449) for every request. A static header cannot do this, which is why each framework below takes the auth object, not a token string.
pip install "promptcompute[mcp]" # httpx, for MCP Python SDK 1.x pip install "promptcompute[mcp2]" # httpx2, for MCP Python SDK 2.x (Python 3.11 and later)
import json, os
from promptreports import request_consent, collect_consent
agent, key, version = os.environ["PR_AGENT_ID"], os.environ["PR_AGENT_KEY_ID"], os.environ["PR_AGENT_VERSION"]
jwk = json.loads(os.environ["PR_AGENT_JWK"])
ask = request_consent(agent, key, jwk, version, "promptreports:read promptreports:write")
print("Send your person this link:", ask["consent_uri"])
done = collect_consent(agent, key, jwk, version, ask["request_handle"])
grant = next(g["grant_id"] for g in done["product_grants"] if g["product"] == "promptreports")
# Keep the grant id: a consent is collected once.from promptreports import FamilyAgentAuth # FamilyAgentAuth2 on httpx2 auth = FamilyAgentAuth(agent, key, jwk, product_grant=grant, agent_version_id=version) URL = "https://mcp.promptreports.ai/mcp"
Every snippet below uses that auth and URL. Writes still go through PromptCompute approvals: when start_run returns pending approvals, wait on get_run and act only on what the person approved.
Which HTTP library each framework uses
Version 2 of the MCP Python SDK moved from httpx to httpx2. Use FamilyAgentAuth when the framework installs MCP 1.x and FamilyAgentAuth2 when it installs 2.x.
| Framework | Package | MCP SDK | Auth class |
|---|---|---|---|
| LangChain and LangGraph | langchain-mcp-adapters 0.3.2 | 1.x | FamilyAgentAuth |
| OpenAI Agents SDK | openai-agents 0.24.0 | 1.x or 2.x | The one that matches the installed mcp |
| Google ADK | google-adk[mcp] 2.14.1 | 1.x or 2.x | The one that matches the installed mcp |
| CrewAI | crewai 1.15.41 with crewai-tools[mcp] | 1.x | FamilyAgentAuth |
| Microsoft Agent Framework | agent-framework 1.26.0 | 2.x | FamilyAgentAuth2 |
LangChain and LangGraph
MultiServerMCPClient takes an httpx.Auth as auth on a Streamable HTTP connection.
from langchain_mcp_adapters.client import MultiServerMCPClient
from langchain.agents import create_agent
client = MultiServerMCPClient({"promptreports": {"transport": "streamable_http", "url": URL, "auth": auth}})
tools = await client.get_tools()
agent = create_agent("openai:gpt-4.1", tools)Checked on 2026-11-16 against the langchain-mcp-adapters source: https://github.com/langchain-ai/langchain-mcp-adapters/blob/main/langchain_mcp_adapters/sessions.py
OpenAI Agents SDK
MCPServerStreamableHttp passes params["auth"] to its HTTP transport.
from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp
async with MCPServerStreamableHttp(name="promptreports", params={"url": URL, "auth": auth}) as server:
agent = Agent(name="Assistant", instructions="Use the PromptReports tools.", mcp_servers=[server])
result = await Runner.run(agent, "List my workflows.")Checked on 2026-11-16 against https://openai.github.io/openai-agents-python/mcp/
Google ADK
ADK builds its own HTTP client and never passes auth to it, so attach the auth in an httpx_client_factory. Do not use header_provider for this: ADK keys its session pool on the headers, so a new proof on every call would open a new session each time.
import httpx
from google.adk.tools.mcp_tool.mcp_toolset import McpToolset
from google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPConnectionParams
def client_factory(headers=None, timeout=None, auth=None):
return httpx.AsyncClient(headers=headers, timeout=timeout, auth=family_auth)
family_auth = auth
toolset = McpToolset(connection_params=StreamableHTTPConnectionParams(url=URL, httpx_client_factory=client_factory))Pass toolset in the agent's tools list. On MCP 2.x, build the client with httpx2.AsyncClient and FamilyAgentAuth2.
Checked on 2026-11-16 against https://adk.dev/tools-custom/mcp-tools/ and the ADK mcp_session_manager source
CrewAI
Use MCPServerAdapter. It hands the rest of the dict to the MCP SDK's Streamable HTTP client, which takes auth. CrewAI's newer mcps=[MCPServerHTTP(...)] field takes only fixed headers, so it cannot carry the one-minute token.
from crewai import Agent
from crewai_tools import MCPServerAdapter
params = {"url": URL, "transport": "streamable-http", "auth": auth}
with MCPServerAdapter(params) as tools:
analyst = Agent(role="Ops analyst", goal="Run the weekly report", backstory="...", tools=tools)The adapter copies the dict. A copy of FamilyAgentAuth is the same object, so every copy shares one token.
Checked on 2026-11-16 against https://docs.crewai.com/en/mcp/overview and the mcpadapt source: https://github.com/grll/mcpadapt/blob/main/src/mcpadapt/core.py
Microsoft Agent Framework
MCPStreamableHTTPTool takes an http_client. Agent Framework installs MCP 2.x, so use httpx2 and FamilyAgentAuth2.
import httpx2
from agent_framework import Agent, MCPStreamableHTTPTool
from promptreports import FamilyAgentAuth2
auth2 = FamilyAgentAuth2(agent, key, jwk, product_grant=grant, agent_version_id=version)
async with MCPStreamableHTTPTool(name="promptreports", url=URL, http_client=httpx2.AsyncClient(auth=auth2)) as mcp_tool:
assistant = Agent(client=chat_client, name="assistant", tools=mcp_tool)
response = await assistant.run("List my workflows.")Checked on 2026-11-16 against the agent-framework source: https://github.com/microsoft/agent-framework/blob/main/python/packages/core/agent_framework/_mcp.py
What works today
| Piece | State |
|---|---|
| The family MCP server and its product read tools | Switching on |
FamilyAgentAuth, FamilyAgentAuth2 and the consent helpers in the Python SDK | Built, not yet on PyPI |
| Signing in as a registered agent with a product grant | Switching on |
| The one consent screen | Switching on |
| Browser sign-in from a framework's own OAuth client | Not yet: PromptReports ID takes Client ID Metadata Documents and has no registration endpoint |
Pydantic AI and the TypeScript frameworks (the Vercel AI SDK, Mastra) also speak MCP. They will get a section once a TypeScript FamilyAgentAuth ships.