Skip to main content
Glama

mcp-gopls

MCP LSP Go

Claude와 같은 AI 어시스턴트가 Go의 LSP(언어 서버 프로토콜)와 상호 작용하고 고급 Go 코드 분석 기능의 이점을 누릴 수 있게 해주는 MCP(모델 컨텍스트 프로토콜) 서버입니다.

개요

이 MCP 서버는 AI 도우미가 다음을 수행하는 데 도움을 줍니다.

  • LSP를 사용하여 Go 코드 분석
  • 정의로 이동하고 참조를 찾으세요
  • 코드 진단 확인
  • 심볼에 대한 호버 정보 가져오기
  • 완료 제안 받기

건축학

이 프로젝트는 mark3labs/mcp-go 라이브러리를 사용하여 모델 컨텍스트 프로토콜(MCP)을 구현합니다. MCP 통합을 통해 AI 어시스턴트와 Go 도구 간의 원활한 통신이 가능합니다.

서버는 언어 서버 프로토콜(LSP)을 통해 Go의 공식 언어 서버인 gopls 와 통신합니다.

특징

  • LSP 통합 : 코드 분석을 위한 Go 언어 서버 프로토콜 연결
  • 코드 탐색 : 코드에서 정의 및 참조 찾기
  • 코드 품질 : 진단 및 오류 얻기
  • 고급 정보 : 호버 정보 및 완성 제안

프로젝트 구조

지엑스피1

설치

go install github.com/hloiseaufcms/mcp-gopls/cmd/mcp-gopls@latest

커서에 추가

{ "mcpServers": { "mcp-gopls": { "command": "mcp-gopls" } } }

MCP 도구

MCP 서버는 다음과 같은 도구를 제공합니다.

도구설명
go_to_definition기호 정의로 이동
find_references기호에 대한 모든 참조 찾기
check_diagnostics파일 진단 받기
get_hover_info심볼에 대한 자세한 정보를 얻으세요
get_completion직위별 완료 제안 받기
analyze_coverageGo 코드에 대한 테스트 커버리지 분석

사용 예

MCP를 지원하는 AI 어시스턴트와 함께 서버 사용:

# Ask the AI to get information about the code Can you find the definition of the `ServeStdio` function in this project? # Ask for diagnostics Are there any errors in my main.go file? # Ask for information about a symbol What does the Context.WithTimeout function do in Go?

개발

git clone https://github.com/hloiseaufcms/mcp-gopls.git cd mcp-gopls go mod tidy go build -o mcp-gopls cmd/mcp-gopls/main.go ./mcp-gopls

필수 조건

  • 1.24 이상으로 가세요
  • gopls 설치됨 ( go install golang.org/x/tools/gopls@latest )

특허

아파치 라이선스 2.0

-
security - not tested
-
license - not tested
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Claude와 같은 AI 어시스턴트가 Go의 LSP(언어 서버 프로토콜)와 상호 작용하고 고급 Go 코드 분석 기능의 이점을 누릴 수 있게 해주는 MCP(모델 컨텍스트 프로토콜) 서버입니다.

  1. 개요
    1. 건축학
      1. 특징
        1. 프로젝트 구조
          1. 설치
            1. 커서에 추가
              1. MCP 도구
                1. 사용 예
                  1. 개발
                    1. 필수 조건
                      1. 특허

                        Related MCP Servers

                        • A
                          security
                          F
                          license
                          A
                          quality
                          Model Context Protocol (MCP) server that integrates Redash with AI assistants like Claude, allowing them to query data, manage visualizations, and interact with dashboards through natural language.
                          Last updated -
                          10
                          104
                          21
                          JavaScript
                          • Apple
                        • A
                          security
                          A
                          license
                          A
                          quality
                          A Model Context Protocol (MCP) server that enables AI assistants to control and interact with Android devices, allowing for device management, app debugging, system analysis, and UI automation through natural language commands.
                          Last updated -
                          29
                          143
                          Python
                          Apache 2.0
                          • Linux
                          • Apple
                        • A
                          security
                          F
                          license
                          A
                          quality
                          A Model Context Protocol (MCP) server that integrates with OmniFocus to enable Claude (or other MCP-compatible AI assistants) to interact with your tasks and projects.
                          Last updated -
                          7
                          163
                          15
                          TypeScript
                        • A
                          security
                          A
                          license
                          A
                          quality
                          A foundation for building custom local Model Context Protocol (MCP) servers that provide tools accessible to AI assistants like Cursor or Claude Desktop.
                          Last updated -
                          1
                          9
                          TypeScript
                          MIT License

                        View all related MCP servers

                        MCP directory API

                        We provide all the information about MCP servers via our MCP API.

                        curl -X GET 'https://glama.ai/api/mcp/v1/servers/hloiseaufcms/mcp-gopls'

                        If you have feedback or need assistance with the MCP directory API, please join our Discord server