go-mcp実験場
A Go-based MCP server example demonstrating correct usage of go.mod and build/run commands.
go-mcp実験場
MEMO
MCPの指定方法(main.go)
NG: go.modが見つからずに依存解決失敗でエラーになる
{
"mcpServers": {
"go-mcp-abc": {
"command": "go",
"args": ["run", "/path/to/go-mcp-abc/main.go"]
}
}
}
OK: go.modが見つかる方法
{
"mcpServers": {
"go-mcp-abc": {
"command": "go",
"args": ["-C", "/path/to/go-mcp-abc", "run", "main.go"]
}
}
}
OK: buildしてもいい
{
"mcpServers": {
"go-mcp-abc": {
"command": "/path/to/go-mcp-abc/go-mcp-abc"
}
}
}
Stdioの場合、余計な出力があるとエラーになる
Unexpected token 'S', "Starting server..." is not valid JSON https://github.com/AgentDeskAI/browser-tools-mcp/issues/103#issuecomment-2824548286
fmt.Println("Starting server...") とかやるとエラーになる
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
ForgeCraft
MCP server that generates production-grade engineering standards (SOLID, testing, architecture, CI/CD) for AI coding assistants
NHL MCP Server
An MCP server for the NHL API, providing access to all documented endpoints.
Semiotic
Data visualization for streaming and static charts, maps and network visualization.
MCP Expr Lang
MCP Expr-Lang provides a seamless integration between Claude AI and the powerful expr-lang expression evaluation engine.
Image MCP Server
An MCP server for AI image generation using OpenAI and Replicate APIs.
OpenAI Image Generation
Generate and edit images using OpenAI's DALL-E models via the official Python SDK.
Homebrew MCP
Interact with Homebrew (the package manager for macOS and Linux) using natural language commands.
NovaCV
An MCP server for accessing the NovaCV resume service API.
EndOfLife.date
Get end-of-life dates and support cycle information for various software products.
ForeverVM
Run Python in a code sandbox.