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
설치
커서에 추가
MCP 도구
MCP 서버는 다음과 같은 도구를 제공합니다.
도구 | 설명 |
---|---|
go_to_definition | 기호 정의로 이동 |
find_references | 기호에 대한 모든 참조 찾기 |
check_diagnostics | 파일 진단 받기 |
get_hover_info | 심볼에 대한 자세한 정보를 얻으세요 |
get_completion | 직위별 완료 제안 받기 |
analyze_coverage | Go 코드에 대한 테스트 커버리지 분석 |
사용 예
MCP를 지원하는 AI 어시스턴트와 함께 서버 사용:
개발
필수 조건
- 1.24 이상으로 가세요
- gopls 설치됨 (
go install golang.org/x/tools/gopls@latest
)
특허
아파치 라이선스 2.0
This server cannot be installed
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(모델 컨텍스트 프로토콜) 서버입니다.
Related MCP Servers
- AsecurityFlicenseAqualityModel 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 -1010421JavaScript
- AsecurityAlicenseAqualityA 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 -29143PythonApache 2.0
- AsecurityFlicenseAqualityA 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 -716315TypeScript
- AsecurityAlicenseAqualityA foundation for building custom local Model Context Protocol (MCP) servers that provide tools accessible to AI assistants like Cursor or Claude Desktop.Last updated -19TypeScriptMIT License