MCP·B9A5F2
H

mcp-gopls

By hloiseaufcms·Visit Source
用于Go语言服务器协议(LSP)集成的MCP服务器
2025年4月17日
2 months ago
6 Clicks
About mcp-gopls

用于Go语言服务器协议(LSP)集成的MCP服务器. mcp-gopls is a Model Context Protocol (MCP) server maintained by hloiseaufcms. It connects to MCP-compatible clients such as Claude Desktop, Cursor, Cline, and other agents that speak the protocol. It exposes 6 tools, including go_to_definition, find_references, check_diagnostics, get_hover_info, get_completion and analyze_coverage, that an agent can call directly. It is categorized under Tool/LanguageServer and Language/Go.

什么是MCP

这是一个模型上下文协议服务器,将AI助手与Go语言服务器协议(gopls)连接,为Go项目提供高级代码分析功能。

如何使用这个MCP

通过go install安装,然后在兼容MCP的工具中配置,将服务器命令添加到您的配置中。该服务器提供诸如go_to_definition(跳转到定义)、find_references(查找引用)和get_hover_info(获取悬停信息)等工具。

这个MCP的用途

通过直接在AI交互中提供LSP驱动的功能(如代码导航、诊断、悬停信息和补全建议),增强AI助手在Go开发中的能力。

Repository Info
Stars:
79
Forks:
11
Watchers:
79
Last Updated: 3 months ago

AIMCP authority

DR and traffic signal for the AIMCP public domain.

FAQ

Frequently asked questions

What is the mcp-gopls MCP server?

mcp-gopls is a Model Context Protocol server from hloiseaufcms. It lets MCP-compatible AI clients call its tools over a standard interface, so agents like Claude, Cursor, and Cline can use it without custom integration.

How do I connect mcp-gopls to my AI client?

Add mcp-gopls to your client's MCP configuration using the stdio or SSE connection shown in the usage examples on this page, then restart the client to load the server.

What tools does mcp-gopls provide?

mcp-gopls provides 6 tools: go_to_definition, find_references, check_diagnostics, get_hover_info, get_completion and analyze_coverage.

Is mcp-gopls free to use?

mcp-gopls is listed on AIMCP for free. Any API keys or accounts required by the underlying service are set by its provider.

Sponsored

Vernclaw Plugins for OpenClaw

Ready-to-use connectors for SEO data, social reading & content generation. Pay-as-you-go credits with audit logs.