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.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add openai-example -- docker compose up -d --build~/.codex/config.toml
[mcp_servers.openai-example]
command = "docker"
args = ["compose", "up", "-d", "--build"]
# codex mcp add openai-example -- docker compose up -d --build~/.cursor/mcp.json
{
"mcpServers": {
"openai-example": {
"command": "docker",
"args": [
"compose",
"up",
"-d",
"--build"
]
}
}
}.vscode/mcp.json
{
"servers": {
"openai-example": {
"type": "stdio",
"command": "docker",
"args": [
"compose",
"up",
"-d",
"--build"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"openai-example": {
"command": "docker",
"args": [
"compose",
"up",
"-d",
"--build"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"openai-example": {
"command": "docker",
"args": [
"compose",
"up",
"-d",
"--build"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"openai-example": {
"command": "docker",
"args": [
"compose",
"up",
"-d",
"--build"
]
}
}
}