Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp

MCP.Pizza Chef: goplus

The mcp server is a Go+ implementation of the Model Context Protocol (MCP), designed to enable seamless integration between large language model (LLM) applications and external data sources and tools. It acts as a lightweight adapter that exposes structured data or functionality to MCP clients, facilitating real-time, structured context flow and tool interaction for LLMs. This server supports modular, provider-agnostic workflows and secure, observable model interactions.

Use This MCP server To

Expose external data sources to LLM applications via MCP Integrate custom tools and APIs with LLM workflows Enable real-time context sharing between LLMs and external systems Serve as a bridge for LLMs to access structured data in Go+ environments Facilitate multi-step reasoning by providing live environment data Support modular and secure LLM integration in developer tools Implement custom MCP servers for specialized data or tool access

README

MCP Go+ πŸš€

Build Status Go Report Card GitHub release GoDoc Language

A Go+ implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.

This repo contains two Go+ classfiles. They are mcp (MCP Server Framework) and mcptest (MCP Server Test Framework).

The classfile mcp has the file suffix _mcp.gox (the MCP Server), _res.gox (a MCP Resource or ResourceTemplate), _tool.gox (a MCP Tool) and _prompt.gox (a MCP Prompt). The classfile mcptest has the file suffix _mtest.gox.

mcp: MCP Server Framework

Here is a MCP Server example (source code). It has two files: main_mcp.gox (the MCP Server) and hello_tool.gox (a MCP Tool).

A MCP Server Example: hello

First let us initialize a hello project:

gop mod init hello

Then we have it reference the mcp classfile:

gop get github.com/goplus/mcp@latest

The content of main_mcp.gox (the MCP Server) is as follows

server "Tool Demo πŸš€", "1.0.0"

The content of hello_tool.gox (a MCP Tool) is as follows

tool "helloWorld", => {
	description "Say hello to someone"
	string "name", => {
		required
		description "Name of the person to greet"
	}
}

name, ok := ${name}.(string)
if !ok {
	return newError("name must be a string")
}

return text("Hello, ${name}!")

Execute the following commands:

gop mod tidy
gop run .

A simplest MCP Server is running now.

mcptest: MCP Server Test Framework

To test the above hello MCP Server (source code), you only need to implement a hello_mtest.gox file:

mock new(MCPApp)

initialize nil
ret {}

call "helloWorld", {"name": "Ken"}
ret {
	"content": [{"type": "text", "text": "Hello, Ken!"}],
}

Then run gop test or gop test -v to execute the unit test.

mcp FAQ

How do I deploy the mcp server?
You can deploy the mcp server by building the Go+ source from the GitHub repository and running it as a lightweight adapter to expose your data sources or tools to MCP clients.
What programming language is the mcp server implemented in?
The mcp server is implemented in Go+, a language designed for simplicity and performance, ideal for building MCP adapters.
Can the mcp server integrate with any LLM provider?
Yes, the mcp server is provider-agnostic and can integrate with LLMs like OpenAI, Anthropic Claude, and Google Gemini through MCP clients.
Is the mcp server suitable for production environments?
Yes, the mcp server is designed to be lightweight and efficient, making it suitable for production use in real-time LLM integration workflows.
How does the mcp server handle security?
The mcp server supports secure and scoped interactions by adhering to MCP principles, ensuring controlled access to data and tools.
What kind of data sources can the mcp server expose?
It can expose a wide range of data sources including filesystems, APIs, databases, and custom tools, mapped into model-readable formats.
Does the mcp server support observability?
Yes, it includes features for monitoring and logging interactions to ensure transparency and debugging capabilities.
Where can I find documentation for the mcp server?
Documentation is available on the GitHub repository and GoDoc pages linked in the project README.