mymcp_backend
by ZHLOVEYY
Overview
A Go backend server for managing and exposing MCP (Multi-Agent Communication Protocol) services, including dynamic registration and execution of user-defined Go functions as MCP tools.
Installation
go run main.goSecurity Notes
The server allows dynamic execution of user-provided Go source code via the Yaegi interpreter in the `/api/functomcp/codetrial` and `/api/functomcp/register` endpoints. While Yaegi is designed for safe Go interpretation, executing arbitrary user code from external sources (even with AST manipulation and import control) presents significant security risks, including potential interpreter vulnerabilities, resource exhaustion attacks, or unintended side effects if the sandboxing mechanism can be bypassed. Additionally, `service/pkg/mid/mcpAuth.go` contains a hardcoded `Authorization: 'xxxx'` value which, if used in a production setup, could lead to severe authentication bypasses for SSE connections.
Similar Servers
ig-mcp-server
A Go-based server application likely implementing a specific network protocol or game logic, suggested by 'MCP Server' naming and project structure.
toolhive-registry-server
The central metadata hub for enterprise Model Context Protocol (MCP) server governance and discovery, implementing the official MCP Registry API specification.
osmmcp
Enables LLMs to interact with OpenStreetMap data through a rich set of geospatial tools, including geocoding, routing, and points of interest search.
mymcp_backend
A Go backend server for managing and exposing MCP (Multi-Agent Communication Protocol) services, including dynamic registration and execution of user-defined Go functions as MCP tools.