MCP ExplorerExplorer

Mcp Client Openai Gradio

@njcxon 10 months ago
2 MIT
FreeCommunity
AI Systems
This project implements an MCP-Client service that is compatible with the OpenAI API format, allowing interaction with the local MCP-Server through the standard OpenAI API interface.

Overview

What is Mcp Client Openai Gradio

mcp_client_openai_gradio is a client service that implements compatibility with the OpenAI API format, allowing interaction with local MCP models through a standard OpenAI API interface.

Use cases

Use cases include developing AI chatbots, integrating local models into applications, and testing model functionalities in a user-friendly interface.

How to use

To use mcp_client_openai_gradio, start the OpenAI API by running ‘python main-api.py’ and then launch the Gradio UI for testing with ‘python gradio_ui.py’.

Key features

Key features include compatibility with OpenAI API formats, support for Function Call (tool invocation), and configuration options for both stdio and sse modes.

Where to use

mcp_client_openai_gradio can be used in various fields such as AI development, machine learning applications, and any project requiring interaction with local models via the OpenAI API.

Content

MCP-client
本项目实现了一个兼容 OpenAI API 格式的 MCP (Model Control Protocol) 客户端服务,允许通过标准的 OpenAI API 接口与本地 MCP 模型进行交互。

运行方法:

1,  启动openai api :  python main-api.py

2,  启动gradio_ui  :  python gradio_ui.py   # just for test

MCP-Server配置:

修改config.json, 支持stdio 和sse两种。

LLM配置:

修改.env文件, 支持所有 OpenAI API 格式的API, 需要支持 Function Call(工具调用)。

test

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers