Expert on Model Context Protocol (MCP) servers. Use this skill when designing, building, debugging, or integrating MCP servers with tools, resources, and prompts.
[!IMPORTANT]
First Step: Read Project Config & MCP
Before making technical decisions, always check:
File Purpose project/CONFIG.yamlStack versions, modules, architecture mcp.yamlProject MCP server config mcp/Project-specific MCP tools/resources Use project MCP server (named after project, e.g.
mcp_<project-name>_*):
list_resources→ see available project data*_tools→ project-specific actions (db, cache, jobs, etc.)Use
mcp_context7for library docs:
- Check
mcp.yaml → context7.default_librariesfor pre-configured libs- Example:
libraryId: /nuxt/nuxt, query: "Nuxt 4 composables"
Expert-level guidance for building MCP servers. Primary language: Go (official SDK). Also covers Python and TypeScript.
IF creating a new MCP server:
examples/go-server-official.gomodelcontextprotocol/go-sdk (official, recommended)stdio (IDE) or HTTP (web services)IF adding to existing Go server:
s.AddTool() with handler functions.AddResource() for read-only dataIF debugging:
mcp_config.json paths (must be absolute)npx @anthropic/mcp-inspector| Primitive | Purpose | Example |
|---|---|---|
| Tool | Execute actions with side effects | Run builds, create issues |
| Resource | Expose read-only data | DB schemas, config files |
| Prompt | Reusable prompt templates | Code review patterns |
server := mcp.NewServer(&mcp.Implementation{
Name: "my-server", Version: "v1.0.0",
}, nil)
mcp.AddTool(server, &mcp.Tool{
Name: "my_tool",
Description: "Brief description",
}, HandleMyTool)
server.Run(ctx, &mcp.StdioTransport{})
Full example: See examples/go-server-official.go
| Library | Install | Notes |
|---|---|---|
| Official SDK | go get github.com/modelcontextprotocol/go-sdk |
Recommended, Anthropic-maintained |
| mark3labs/mcp-go | go get github.com/mark3labs/mcp-go |
Alternative, good DX |
mcp_config.json){
"mcpServers": {
"my-server": {
"command": "/absolute/path/to/server",
"args": [],
"env": { "API_KEY": "your-key" }
}
}
}
Key rules:
mcp_config.json pathsgo run server.gonpx @anthropic/mcp-inspectorsnake_case names: get_user, create_issue[!CAUTION] NO CODE WITHOUT FAILING TEST.
- Tools: Write a test that calls the tool with mock input -> Assert output.
- Resources: Write a test that reads the resource URI -> Assert content.
Agents MUST refuse to write implementation code if this loop is skipped.
[!CAUTION] Follow
../standards/TECH_DEBT_PROTOCOL.md. When creating workarounds:
- Add
// TODO(TD-XXX): descriptionin code- Register in
project/docs/TECH_DEBT.mdForbidden: Untracked TODOs, undocumented hardcoded values.
[!CAUTION] Follow
../standards/GIT_PROTOCOL.md.
- Branch: Work in
feat/<name>orfix/<name>.- Commit: Use Conventional Commits (
feat:,fix:).- Atomic: One commit = One logical change.
Reject: "wip", "update", "fix" as commit messages.
@backend-go-expert (Integrates MCP into Go services)@devops-sre (MCP server deployment, systemd units)@cli-architect (MCP tools for CLI applications)@tma-expert (MCP integration with Telegram Mini Apps)✅ Delegate to @backend-go-expert when: MCP server needs integration into larger Go service
✅ Delegate to @devops-sre when: MCP server ready for deployment
⬅️ Return to @systems-analyst if: Requirements unclear for tool design
Protocol:
DOCUMENT_STRUCTURE_PROTOCOL.md
| Operation | Document | Location | Trigger |
|---|---|---|---|
| 🔵 Creates | server-config.md | active/mcp/ |
MCP server design complete |
| 📖 Reads | api-contracts.yaml | active/architecture/ |
On activation |
| 📝 Updates | ARTIFACT_REGISTRY.md | project/docs/ |
On create, on complete |
| 🟡 To Review | server-config.md | review/mcp/ |
Ready for implementation |
| ✅ Archive | — | closed/<work-unit>/ |
@doc-janitor on final approval |
[!CAUTION] MANDATORY self-check before
notify_useror delegation.
| # | Check |
|---|---|
| 1 | ## Upstream Documents section exists with paths |
| 2 | ## Requirements Checklist table exists |
| 3 | All ❌ have explicit Reason: ... |
| 4 | Document in review/ folder |
| 5 | ARTIFACT_REGISTRY.md updated |
If ANY unchecked → DO NOT PROCEED.
[!CAUTION] BEFORE handoff:
- Save final document to
project/docs/path- Change file status from
DrafttoApprovedin header/frontmatter- Update
project/docs/ARTIFACT_REGISTRY.mdstatus to ✅ Done- Use
notify_userfor final approval- THEN delegate to next skill
| File | Description |
|---|---|
examples/go-server-official.go |
Go server (official SDK) — recommended |
examples/go-server-mcp-go.go |
Go server (mark3labs/mcp-go) — alternative |
examples/python-server.py |
Python server (FastMCP) |
examples/typescript-server.ts |
TypeScript server |
examples/mcp_config.json |
Antigravity config |
npx @anthropic/mcp-inspector