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
FLUX Image Generator
Generate images using Black Forest Lab's FLUX model.
MCP Quickstart
A basic MCP server from the Quickstart Guide, adapted for OpenAI's Chat Completions API.
CodeGraphContext
An MCP server that indexes local code into a graph database to provide context to AI assistants.
Search Tools MCP Server
An MCP server that enhances code analysis with advanced search and dependency mapping capabilities.
MCP Sandbox
Execute Python code and install packages safely within isolated Docker containers.
Code Summarizer
A command-line tool that summarizes code files in a directory using Gemini Flash 2.0.
Code Sync MCP Server
Hot reload remote containerized Python applications directly from your IDE.
Figma to React Native MCP
Convert Figma designs into React Native components.
MCP Gateway
A gateway to translate MCP tool calls into HTTP API requests, configurable via YAML.
IBM wxflows
Tool platform by IBM to build, test and deploy tools for any data source