About MCP
MCP is an MCP server published by goplus in the AI category: a XGo implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
The repository has 50 stars and 4 forks, with the last commit 5 days ago. Recent commit activity is the strongest signal that reported issues will get attention.
Install
git clone https://github.com/goplus/mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about MCP
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- ✓License declaredUsable under a stated license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
Releases
README
MCP XGo 🚀
A XGo implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
This repo contains two XGo 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:
xgo mod init hello
Then we have it reference the mcp classfile:
xgo 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:
xgo mod tidy
xgo 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 xgo test or xgo test -v to execute the unit test.
README fetched from the repository yesterday. The original is authoritative.