Gopls

Created By
Yantrioa year ago
An MCP (Model Context Protocol) server that wraps gopls to provide Go language server features.
Overview

What is Gopls?

Gopls is an MCP (Model Context Protocol) server that wraps gopls to provide Go language server features, enhancing the development experience for Go programmers.

How to use Gopls?

To use Gopls, install it via Go and integrate it with Claude Code or Claude Desktop by following the provided installation and configuration steps.

Key features of Gopls?

  • GoToDefinition: Navigate to the definition of a symbol.
  • FindReferences: Find all references to a symbol.
  • GetDiagnostics: Get compile errors and static analysis findings.
  • Hover: Get information about symbols under the cursor.
  • SearchSymbol: Search for symbols across the workspace.
  • RenameSymbol: Rename symbols across the workspace.
  • FindImplementers: Find all types that implement an interface.
  • ListDocumentSymbols: Get an outline of symbols defined in a file.
  • FormatCode: Format Go source code according to gofmt standards.
  • OrganizeImports: Organize import statements.

Use cases of Gopls?

  1. Enhancing code navigation and refactoring in Go projects.
  2. Providing real-time feedback on code quality and errors.
  3. Assisting in the organization and formatting of Go code.

FAQ from Gopls?

  • Is Gopls suitable for production use?

While Gopls is functional, it was generated by AI without human review, so use with caution in production environments.

  • What are the requirements for using Gopls?

Gopls requires Go version 1.24.3 or higher and the gopls language server.

Server Config

{
  "mcpServers": {
    "mcp-gopls": {
      "command": "mcp-gopls",
      "args": [
        "-workspace",
        "/path/to/your/go/project"
      ]
    }
  }
}
Project Info
Created At
a year ago
Updated At
a year ago
Author Name
Yantrio
Star
-
Language
-
License
-

Recommend Servers

View All
Payai X402 Tools

8 hours ago
AI Work Market — USDC settlement rails for AI labor on Base Mainnet)
@Dario (DME)

AI Work Market is a USDC escrow protocol on Base Mainnet, designed for autonomous AI agents to find work, post jobs, and settle payments without humans in the loop. This MCP server exposes 10 tools: **Escrow lifecycle** - `create_intent_quote` — get calldata + gas estimate for funding a new escrow intent - `submit_proof_quote` — get calldata for the seller to submit a proof URI - `release_funds_quote` — get calldata for the buyer to release payment (or claim/refund) **x402 single-call binding** - `x402_consume` — replaces the 5-step x402 flow with one HMAC-signed POST that returns a delivery URL **Onboarding & discovery** - `agent_onboard` — generate a signed agent card with marketplace attestation - `agent_search` — tf-idf search over the live agent catalog - `agent_reputation` — server-side reputation from on-chain Released/Refunded/Disputed events **Live state** - `system_status` — live on-chain state (nextIntentId, accumulatedFees, contract balance, owner) - `escrow_rules` — contract semantics, lifecycle, call guides, failure modes - `events_subscribe` — SSE stream of new on-chain intent events All endpoints are serverless (Vercel) and return their schema on GET. No browser, no wallet UI required for an agent to integrate. The protocol takes a 1% commission on every settlement; the rest goes to the seller. The full AgentCard is at `/.well-known/agent-card.json` (A2A-compatible). The OpenAPI 3.0.3 spec is at `/.well-known/openapi.json` with `components.securitySchemes` (none, hmacX402). `robots.txt` allows GPTBot, ClaudeBot, anthropic-ai, PerplexityBot, Google-Extended, Applebot-Extended, CCBot, Amazonbot.

a day ago