gomcptest: Proof of Concept for MCP with Custom Host

gomcptest: Proof of Concept for MCP with Custom Host

By owulveryck GitHub

A proof-of-concept demonstrating a custom-built host implementing an OpenAI-compatible API with Google Vertex AI, function calling, and interaction with MCP servers.

Overview

what is gomcptest?

gomcptest is a proof-of-concept project that demonstrates the implementation of a Model Context Protocol (MCP) with a custom-built host that is compatible with OpenAI's API and integrates Google Gemini.

how to use gomcptest?

To use gomcptest, clone the repository, navigate to the host/openaiserver directory, set the required environment variables, and run the server using Go.

key features of gomcptest?

  • OpenAI Compatibility: Mimics the OpenAI v1 chat completion format.
  • Google Gemini Integration: Utilizes VertexAI API for interaction with Gemini models.
  • Streaming Support: Supports streaming responses from the server.
  • Function Calling: Allows external function calls to be incorporated into chat responses.
  • MCP Server Interaction: Demonstrates interaction with a hypothetical MCP server.

use cases of gomcptest?

  1. Testing and developing applications that require OpenAI-compatible APIs.
  2. Integrating Google Gemini models into custom applications.
  3. Exploring the functionalities of Model Context Protocols in AI applications.

FAQ from gomcptest?

  • Is gomcptest suitable for production use?

No, gomcptest is a proof-of-concept and is not intended for production environments.

  • What are the prerequisites for running gomcptest?

You need to have Go installed and configured, along with the necessary environment variables set.

  • Can I modify the code?

Yes, the code is provided for educational purposes and can be modified as needed.

Overview

what is gomcptest?

gomcptest is a proof-of-concept project that demonstrates the implementation of a Model Context Protocol (MCP) with a custom-built host that is compatible with OpenAI's API and integrates Google Gemini.

how to use gomcptest?

To use gomcptest, clone the repository, navigate to the host/openaiserver directory, set the required environment variables, and run the server using Go.

key features of gomcptest?

  • OpenAI Compatibility: Mimics the OpenAI v1 chat completion format.
  • Google Gemini Integration: Utilizes VertexAI API for interaction with Gemini models.
  • Streaming Support: Supports streaming responses from the server.
  • Function Calling: Allows external function calls to be incorporated into chat responses.
  • MCP Server Interaction: Demonstrates interaction with a hypothetical MCP server.

use cases of gomcptest?

  1. Testing and developing applications that require OpenAI-compatible APIs.
  2. Integrating Google Gemini models into custom applications.
  3. Exploring the functionalities of Model Context Protocols in AI applications.

FAQ from gomcptest?

  • Is gomcptest suitable for production use?

No, gomcptest is a proof-of-concept and is not intended for production environments.

  • What are the prerequisites for running gomcptest?

You need to have Go installed and configured, along with the necessary environment variables set.

  • Can I modify the code?

Yes, the code is provided for educational purposes and can be modified as needed.

No tools information available.
No content found.