Connect the ISMS Copilot MCP server to the OpenAI Agents SDK
Setup tested on 2026-11-29 with openai-agents 0.26.0: the files below listed ISMS Copilot's tools and ran one read call on our test account.
The OpenAI Agents SDK talks to remote MCP servers through MCPServerStreamableHttp. Give that server object to an agent and the agent can ask ISMS Copilot what SOC 2 or ISO 27001 expects before it drafts an answer for a security questionnaire or a vendor review. The script below connects with a bearer header, lists the tools and calls list_workspaces directly on the server object, so no OpenAI API key and no model call are needed to prove the connection. It is the exact check we ran.
Who does what
OpenAI Agents SDK
Runs the agent loop with your model, keeps the conversation and calls ISMS Copilot when the model asks for a tool.
ISMS Copilot
Returns the framework answer and checks the agent's draft against it, from the knowledge our agents keep current.
You
Set what the agent may do and approve what it sends to a client or auditor.
The tested setup
- 1
Create a token
Sign up at chat.ismscopilot.com (free, no card), open Settings, Connected apps, and create a token. The Agent delegation preset grants account:read, workspaces:read, conversations:create, company_context:read and memories:read, with no write scopes. Our own check used a narrower token with five read scopes only (account, workspaces, memories, documents, company context), which is enough for the check below. conversations:create lets your agent ask questions, and each question uses your plan's messages. Copy the pat-isms- value once and keep it in ISMS_COPILOT_TOKEN, never in a committed file.
- 2
Install the SDK
In a virtual environment, install the version this page shows.
Install pip install "openai-agents==0.26.0" - 3
Run the check
Save the script as check_ismscopilot.py and run it with ISMS_COPILOT_TOKEN set. The async with block opens and closes the connection for you.
check_ismscopilot.py import asyncio, os from agents.mcp import MCPServerStreamableHttp async def main(): async with MCPServerStreamableHttp( name="ismscopilot", params={ "url": "https://account.ismscopilot.com/v1/account/mcp", "headers": {"Authorization": f"Bearer {os.environ['ISMS_COPILOT_TOKEN']}"}, }, ) as server: tools = await server.list_tools() print([t.name for t in tools]) result = await server.call_tool("list_workspaces", {}) print(result.content[0].text) asyncio.run(main())
The server URL, if you add it by hand:
https://account.ismscopilot.com/v1/account/mcpWhat the test showed
The script printed 29 tool names and the raw list_workspaces result: the test account's sample workspaces.
Tested with openai-agents 0.26.0, Python 3.12. The token was read-only, on our test account with sample data.
Give the server to an agent
Create your Agent with mcp_servers set to the same server inside the async with block, then run it as usual; the SDK lists the tools for the model each run. That needs your OpenAI key and was not part of our test.
Every tool, the scopes each one needs and the sign-in options: the ISMS Copilot MCP server.
What it does not do
- The tool list is fetched each run unless you pass cache_tools_list=True; ISMS Copilot's list changes only when we ship a tool.
- ISMS Copilot works from what your agent sends it, plus the company profile, memories and documents you keep in ISMS Copilot. It does not read your systems on its own.
- Answers and findings are drafts for a person to decide. ISMS Copilot does not certify anyone; your auditor's judgement stays your auditor's.
If something does not work
- Calls time out on a slow network? MCPServerStreamableHttp takes a client_session_timeout_seconds argument; raise it from the default.
- 401 on connect? The SDK sends the headers dict as written: the value must be Bearer, a space, and the token.
OpenAI Agents SDK docs: MCP. Connect an agent with a token, in the ISMS Copilot docs.
Every AI and tool that connects: use ISMS Copilot in your AI. ISMS Copilot in Google ADK. ISMS Copilot in LangChain. ISMS Copilot in LlamaIndex. Building your own agent? The developer hub.
ISMS Copilot is made by Better ISMS. It is not affiliated with or endorsed by OpenAI. Product names belong to their owners. Agents get a Markdown version of this page by sending Accept: text/markdown.
The GRC expert your agent calls.
Free to start, no card. Create a token, run the check, then give the tools to your agent.

ISMS Copilot