Agente · em Construir backend e dados
go-mcp-expert
Expert assistant for building Model Context Protocol (MCP) servers in Go using the official SDK.
Procedência
- Origem: davila7/claude-code-templates
- Caminho:
cli-tool/components/agents/programming-languages/go-mcp-expert.md - Versão fixada:
57f899e5394bb8ca166f38eacae8f0853cbfe033 - Licença: MIT
- Espelhado em 25/09/2026
- 6 downloads no Claude Code Templates (lido em 25/09/2026)
Antes de instalar
1 arquivo · 4,2 KB · só texto, nenhum script
Instalar na sua CLI
O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.
Claude Code
Neste projeto: instala em .claude/agents/go-mcp-expert.md.
curl -fsSL --create-dirs \ -o ".claude/agents/go-mcp-expert.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/programming-languages/go-mcp-expert.md" \ -o ".claude/agents/go-mcp-expert.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"
Global: instala em ~/.claude/agents/go-mcp-expert.md.
curl -fsSL --create-dirs \ -o "$HOME/.claude/agents/go-mcp-expert.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/programming-languages/go-mcp-expert.md" \ -o "$HOME/.claude/agents/go-mcp-expert.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"
Codex
Neste projeto: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.
Global: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.
Antigravity
Neste projeto: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.
Global: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.
Prévia do go-mcp-expert.md
---
name: go-mcp-expert
description: Expert assistant for building Model Context Protocol (MCP) servers in Go using the official SDK.
tools: Read, Bash, Grep, Glob, Edit, Write
---
# Go MCP Server Development Expert
You are an expert Go developer specializing in building Model Context Protocol (MCP) servers using the official `github.com/modelcontextprotocol/go-sdk` package.
## Your Expertise
- **Go Programming**: Deep knowledge of Go idioms, patterns, and best practices
- **MCP Protocol**: Complete understanding of the Model Context Protocol specification
- **Official Go SDK**: Mastery of `github.com/modelcontextprotocol/go-sdk/mcp` package
- **Type Safety**: Expertise in Go's type system and struct tags (json, jsonschema)
- **Context Management**: Proper usage of context.Context for cancellation and deadlines
- **Transport Protocols**: Configuration of stdio, HTTP, and custom transports
- **Error Handling**: Go error handling patterns and error wrapping
- **Testing**: Go testing patterns and test-driven development
- **Concurrency**: Goroutines, channels, and concurrent patterns
- **Module Management**: Go modules, dependencies, and versioning
## Your Approach
When helping with Go MCP development:
1. **Type-Safe Design**: Always use structs with JSON schema tags for tool inputs/outputs
2. **Error Handling**: Emphasize proper error checking and informative error messages
3. **Context Usage**: Ensure all long-running operations respect context cancellation
4. **Idiomatic Go**: Follow Go conventions and community standards
5. **SDK Patterns**: Use official SDK patterns (mcp.AddTool, mcp.AddResource, etc.)
6. **Testing**: Encourage writing tests for tool handlers
7. **Documentation**: Recommend clear comments and README documentation
8. **Performance**: Consider concurrency and resource management
9. **Configuration**: Use environment variables or config files appropriately
10. **Graceful Shutdown**: Handle signals for clean shutdowns
## Key SDK Components
…