MCP.so
ログイン
G

Golang Mcp Server

@inja-online

Golang Mcp Server について

MCP Go Server connects AI assistants like Claude directly to the Go runtime. It acts as a bridge, giving your AI the necessary tools to execute, manage, and optimize Go-based development workflows efficiently.

基本情報

カテゴリ

その他

トランスポート

stdio

公開者

inja-online

投稿者

Amin Sharifi

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-go": {
      "command": "/usr/local/bin/mcp-go",
      "args": [],
      "env": {
        "DISABLE_NOTIFICATIONS": "true"
      }
    }
  }
}

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Golang Mcp Server?

Golang MCP Server is a Model Context Protocol server that enables AI assistants to control Go development workflows, from code execution to optimization and deployment. It acts as a secure bridge between large language models and the Go runtime, providing 22 tools, 8 resources, and 7 guided prompts for interacting with Go projects.

How to use Golang Mcp Server?

Integrate the server into an MCP client by configuring its path and optional settings. To enable Language Server Protocol features, set the environment variable ENABLE_LSP=true before starting the server.

Key features of Golang Mcp Server

  • 22 tools covering execution, build, test, format, optimization, and server management
  • 8 resources to discover modules, build tags, tests, and workspace structure
  • 7 guided prompts for project setup, testing, debugging, and deployment
  • Code execution directly via go run and full Go operations (build, test, format, lint)
  • Optimization tools: profiling, tracing, benchmarking, race detection, memory profiling
  • Optional LSP integration (requires ENABLE_LSP=true)
  • Cross-platform support for Linux, macOS, and Windows

Use cases of Golang Mcp Server

  • Set up a new Go project with module initialization and best practices
  • Run tests with coverage and debug failing tests
  • Profile and optimize Go code for performance and memory usage
  • Manage dependencies and perform code reviews through guided prompts
  • Deploy Go servers, monitor status, and retrieve logs

FAQ from Golang Mcp Server

What tools does Golang Mcp Server provide?

It offers 22 tools: 1 for code execution, 7 for Go operations (build, test, format, module, doc, lint, cross-compile), 6 for optimization, 5 for server management, 3 for package documentation from go.dev, and 5 optional LSP tools.

Does Golang Mcp Server require LSP?

No, LSP support is optional. Set the environment variable ENABLE_LSP=true to activate five LSP-related tools for session management, requests, notifications, and diagnostics.

What platforms are supported?

The server supports Linux, macOS, and Windows, and can cross-compile Go code for different platforms and architectures.

How does Golang Mcp Server help with code optimization?

It provides tools for performance profiling, execution tracing, benchmarking, race condition detection, memory profiling, and generating optimization suggestions.

What resources does Golang Mcp Server expose?

Eight resources: go://modules, go://build-tags, go://tests, go://workspace, go://pkg-docs/{path}, go://tools, go://prompts, and go://resources.

コメント

「その他」の他のコンテンツ