Overview
The OpenAI SDK allows you to connect your Agent directly to an Observee MCP (Model Context Protocol) server. This enables your Agent to access Observee’s powerful tool ecosystem, integrate with internal or external APIs, and leverage custom knowledge sources—all through a unified, secure interface.Prerequisites
Before getting started, ensure you have:- Node.js 18 or later installed
- The OpenAI SDK installed:
npm install @openai/agents
- Your Observee client ID (found in your Observee dashboard)
- Your Observee API key for authentication
What is MCPServerStreamableHttp?
MCPServerStreamableHttp
is a class provided by the OpenAI SDK for connecting to any HTTP MCP server. It manages the connection, streaming, and communication between your Agent and the server, supporting real-time, tool-augmented LLM responses. Once connected, your Agent automatically discovers and can use all available tools from the MCP server.