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
ctx
Automatically builds and serves context files from codebases for AI assistants like Claude.
OPNSense MCP Server
Manage OPNsense firewalls using Infrastructure as Code (IaC) principles.
Chess FEN MCP Server
Validate and visualize chess positions using FEN notation.
Gemini Image MCP Server
Image generation using Google's Gemini API.
MLflow Prompt Registry
Access prompt templates managed in an MLflow Prompt Registry. Requires a running MLflow server configured via the MLFLOW_TRACKING_URI environment variable.
MCP Sandbox
Execute Python code and install packages safely within isolated Docker containers.
MCP Server with GitHub OAuth
A remote MCP server with built-in GitHub OAuth support, designed for deployment on Cloudflare Workers.
MCP Server
A backend service providing tools, resources, and prompts for AI models using the Model Context Protocol (MCP).
Liveblocks
Interact with the Liveblocks REST API to manage rooms, threads, comments, and notifications, with read access to Storage and Yjs.
MCP Chart Server
Create real-time TradingView chart visualizations using the Chart-IMG API.