OpenAI MCP Example
@manekinekko
关于 OpenAI MCP Example
This project showcases how to use the MCP protocol with Azure OpenAI. It provides a simple example to interact with OpenAI's API seamlessly via an MCP server and client.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"openai-mcp-example": {
"command": "docker",
"args": [
"compose",
"up",
"-d",
"--build"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is OpenAI MCP Example?
OpenAI MCP Example is a demo application that showcases the Model Context Protocol (MCP) with OpenAI, Azure OpenAI, and GitHub Models. It provides a terminal-based agent that can perform actions using tools exposed by an MCP server, backed by a DocumentDB Local database.
How to use OpenAI MCP Example?
Run the MCP host after starting the MCP server implementations (HTTP and SSE) and configuring an LLM provider via environment variables. Use npm start --prefix mcp-server-http and npm start --prefix mcp-server-sse to start the servers, then npm start --prefix mcp-host to launch the host agent. Alternatively, use docker compose up to run everything in containers.
Key features of OpenAI MCP Example
- Supports Azure OpenAI, OpenAI, and GitHub Models as LLM providers.
- Provides both HTTP streaming and SSE (Server-Sent Events) MCP transports.
- Includes tools: add_todo, list_todos, complete_todo, delete_todo.
- Persists state using DocumentDB Local database.
- Debugging via
DEBUG=mcp:*environment variable.
Use cases of OpenAI MCP Example
- Interact with a shopping list agent that can add, list, complete, and delete items.
- Test and compare different MCP transport protocols (HTTP vs SSE) with a single host.
- Experiment with multiple LLM providers (OpenAI, Azure OpenAI, GitHub Models) in the same demo.
FAQ from OpenAI MCP Example
What LLM providers are supported?
Azure OpenAI (Responses API), OpenAI (Responses API), and GitHub Models (ChatCompletion API).
What MCP transport protocols are available?
Two implementations are provided: one using HTTP streaming and one using SSE (Server-Sent Events). Both are supported by the host.
How do I run the demo with Docker?
Clone the repository, then run docker compose up to start the MCP servers and DocumentDB Local. Access the MCP host container with docker exec -it mcp-host bash.
What tools does the agent have access to?
The agent can use four tools: add_todo, list_todos, complete_todo, and delete_todo.
How can I enable debug logging?
Set the DEBUG environment variable to mcp:* before starting the MCP host, e.g., DEBUG=mcp:* npm start --prefix mcp-host.
AI 与智能体 分类下的更多 MCP 服务器
Solon Ai
opensolonJava AI application development framework (supports LLM-tool,skill; RAG; MCP; Agent-ReAct,Team-Agent). Compatible with java8 ~ java25. It can also be embedded in SpringBoot, jFinal, Vert.x, Quarkus, and other frameworks.
Gemini MCP Server
aliargunMCP server implementation for Google's Gemini API
Intervals.icu MCP Server
mvilanovaModel Context Protocol (MCP) server for connecting Claude and ChatGPT with the Intervals.icu API.
Mcp Agent
lastmile-aiBuild effective agents using Model Context Protocol and simple workflow patterns
欢迎来到 智言平台
Shy2593666979AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、HITL、Skill、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
评论