github/awesome-copilot
Go Model Context Protocol Server Project Generator
About this skill
A skill that generates a complete, production-ready Model Context Protocol (MCP) server project in Go using the official SDK github.com/modelcontextprotocol/go-sdk. It includes an organized Go module structure with folders for tools, resources, and configuration; tools written with defined input and output types via JSON schema tags; error handling and graceful shutdown; configuration via environment variables; a README file and basic tests.
How do you use this skill?
1. Ask the agent to create a new MCP server in Go, specifying the project name and its purpose.
2. Specify the desired tools (at least 2-3 tools) with a description of each tool's inputs and outputs.
3. Ask to follow the documented template structure: a tools folder for tools, config for configuration, and resources for resources, along with main.go, go.mod, README.md files and tests.
4. Review the generated code to ensure the module path and GitHub username are correct.
5. Ask to modify or add new tools by registering them in the tools/registry.go file.
Example user request: Create an MCP server in Go for me named notes-server that provides a tool to add a note and a tool to list the notes, with tests and a README file.
Requirements and limitations
The skill depends on the Go language (Go 1.23 or newer) and the official github.com/modelcontextprotocol/go-sdk package. Building and running the project requires a locally installed Go toolchain and using commands such as go mod download and go build. Configuration is done via the SERVER_NAME, VERSION, and LOG_LEVEL environment variables. The skill is guidance text templates only and does not include execution or testing of the generated code; you may need to manually adjust module names and paths, and the SDK package's API may change across its releases.
Installation by agent
Download and extract the ZIP. It contains the folder go-mcp-server-generator and the file SKILL.md with the original attachments and license.
GitHub Copilot
- Create this path inside your project if it does not exist:
.github/skills/ - Copy the entire extracted skill folder to this path:
.github/skills/go-mcp-server-generator/SKILL.md - Open the project in your agent or refresh the skills list and look for go-mcp-server-generator.
- Request the task shown above and select the skill. Grant only necessary permissions.
Gemini CLI
- Create this path inside your project if it does not exist:
.gemini/skills/ - Copy the entire extracted skill folder to this path:
.gemini/skills/go-mcp-server-generator/SKILL.md - Open the project in your agent or refresh the skills list and look for go-mcp-server-generator.
- Request the task shown above and select the skill. Grant only necessary permissions.
Claude Code
- Create this path inside your project if it does not exist:
.claude/skills/ - Copy the entire extracted skill folder to this path:
.claude/skills/go-mcp-server-generator/SKILL.md - Open the project in your agent or refresh the skills list and look for go-mcp-server-generator.
- Request the task shown above and select the skill. Grant only necessary permissions.
OpenAI Codex
- Create this path inside your project if it does not exist:
.agents/skills/ - Copy the entire extracted skill folder to this path:
.agents/skills/go-mcp-server-generator/SKILL.md - Open the project in your agent or refresh the skills list and look for go-mcp-server-generator.
- Request the task shown above and select the skill. Grant only necessary permissions.
Cursor
- Create this path inside your project if it does not exist:
.cursor/skills/ - Copy the entire extracted skill folder to this path:
.cursor/skills/go-mcp-server-generator/SKILL.md - Open the project in your agent or refresh the skills list and look for go-mcp-server-generator.
- Request the task shown above and select the skill. Grant only necessary permissions.
Devin / Windsurf
- Create this path inside your project if it does not exist:
.devin/skills/ - Copy the entire extracted skill folder to this path:
.devin/skills/go-mcp-server-generator/SKILL.md - Open the project in your agent or refresh the skills list and look for go-mcp-server-generator.
- Request the task shown above and select the skill. Grant only necessary permissions.