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