mcp-server-developer-tool
The Modular MCP Server is a customizable and secure implementation of the Model Context Protocol server written in Go. It features a modular design allowing for easy extension, robust security features like path restrictions, and flexible configuration options.
Modular MCP Server
This project is a Go implementation of the Model Context Protocol (MCP) server, structured modularly. It uses the github.com/metoro-io/mcp-golang
library and includes configurations for security features such as path restrictions, ensuring file operations are limited to designated directories. The project provides flexibility in configuring allowed and denied paths through command-line flags, environment variables, or programmatically. Additional tools can be added by implementing specific interfaces and registering them.
Building and Running
- Build the server by navigating to
cmd/mcp-server
and running the Go build command. - Run the server with
./mcp-server
.
Security Features
- Path restriction system to limit file operations.
Adding New Tools
- Implement the
Tool
andConfigAware
interfaces and register them.
Testing
- Run tests using
go test ./...
.