michal-fang/mcp-go-example
3.1
If you are the rightful owner of mcp-go-example and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Model Context Protocol (MCP) server is a framework designed to facilitate communication between different components of a distributed system, leveraging the capabilities of the MCP protocol.
mcp-go-example
使用github.com/mark3labs/mcp-go实现mcp server示例
运行方式
# 进入入口
cd cmd
# 使用默认配置
go run main.go
# 使用命令行参数
go run main.go --mode sse --port 8082 --log-level debug
# 使用配置文件
go run main.go --config config.yaml
# 短参数形式
go run main.go -m sse -p 8082