mcp/examples/README.md
This repository contains example applications for interacting with the Omi API using MCP (Model Controlled Programs) in different frameworks.
Before running the examples, make sure you have:
uvx command-line tool installed (pip install uvx)python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
.env file in the root directory with the following values:
OPENAI_API_KEY=your_openai_api_key
OMI_UID=your_omi_uid
The primary application is a Streamlit chat interface that allows you to interact with your Omi data.
To run the Streamlit app:
streamlit run app.py
The app will open in your browser. You'll need to enter your Omi UID in the sidebar settings before you can start chatting.
This repository includes three example scripts demonstrating how to interact with Omi data using different frameworks:
DSPy Example (dspy_ex.py):
python dspy_ex.py
OpenAI Agents SDK Example (openai_agents_sdk_ex.py):
python openai_agents_sdk_ex.py
LangChain Example (langchain_ex.py):
python langchain_ex.py
Each example shows a different method of connecting to the Omi API using MCP and can be used as a reference for your own applications.
uvx, make sure it's installed and in your PATHpip install -r requirements.txtOPENAI_API_KEY=
OMI_UID=