Skip to main content

Overview

The OpenAI Python SDK can connect to Observee’s MCP (Model Context Protocol) server using the agents library. This enables your Python-based agents to access Observee’s powerful tool ecosystem, integrate with internal or external APIs, and leverage custom knowledge sources through a unified interface.

Prerequisites

Before getting started, ensure you have:
  • Python 3.10 or later installed
  • Required packages installed:
  • Your Observee client ID for identifying your customer
  • Your Observee API key for authentication
  • OpenAI API key

Example: Connecting an Agent to Observee’s MCP Server

Below is a complete example of how to set up an Agent that communicates with your Observee MCP server using Python:

Environment Setup

Create a .env file with your credentials:

Learn More