PromptReports
Connect your agent

LangChain

LangChain loads the PromptReports family tools with MCPAdapter from langchain.mcp, with a FastMCP Client that carries the token. Nothing from PromptReports is installed: the agent reaches https://mcp.promptreports.ai/mcp over Streamable HTTP with a PromptReports ID token.

  1. Install LangChain: pip install "langchain[mcp]>=1.4.0".
  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/langchain/agent.py:

"""Load the PromptReports family MCP tools into a LangChain agent.

From LangChain's MCP docs (https://docs.langchain.com/oss/python/langchain/mcp and
https://docs.langchain.com/oss/python/langchain/mcp/auth): MCPAdapter reaches an http(s)
URL over Streamable HTTP, and a FastMCP Client passes a bearer token with auth=.

    pip install "langchain[mcp]>=1.4.0"
    PROMPTREPORTS_TOKEN=... MODEL=... python agent.py

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

import asyncio
import os

from fastmcp.client import Client
from langchain.agents import create_agent
from langchain.mcp import MCPAdapter

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


async def main():
    token = os.environ["PROMPTREPORTS_TOKEN"]
    async with MCPAdapter(Client(FAMILY_MCP, auth=token)) as adapter:
        tools = await adapter.list_tools()
        agent = create_agent(os.environ["MODEL"], tools)
        result = await agent.ainvoke({"messages": [{"role": "user", "content": "List the PromptReports workflows I can run."}]})
        print(result["messages"][-1].content)


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

LangChain's docs mark langchain[mcp] as beta. The older langchain-mcp-adapters package (MultiServerMCPClient) is archived; its README points here.

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.langchain.com/oss/python/langchain/mcp, https://docs.langchain.com/oss/python/langchain/mcp/auth

Connect your agent lists every client and framework.