Build an internal company MCP with Golf
Wann einsetzen: You want a single authenticated MCP exposing 20+ internal tools (Jira, Grafana, ticketing) to employees via Claude.
Voraussetzungen
- Python 3.11+, uv — astral.sh/uv
Ablauf
-
ScaffoldRun
uvx golf new acme-mcpand cd in.✓ Kopiert→ Project with tools/, prompts/, resources/ dirs -
Drop in tool filesCreate tools/list_tickets.py exporting an async function. Golf wires the schema automatically.✓ Kopiert→ Tool visible at
/toolslist -
Enable JWT auth tied to your IdPConfigure golf.yaml auth: jwt with your IdP's JWKS URL. Require
mcp:usescope.✓ Kopiert→ Unauthenticated calls rejected
Ergebnis: A deployable MCP that only authorized employees can call, with traces flowing to your APM.
Fallstricke
- Each tool import failure breaks server startup — Golf loads tools eagerly — fix import errors or move heavy deps inside the function