Build an internal company MCP with Golf
Когда использовать: You want a single authenticated MCP exposing 20+ internal tools (Jira, Grafana, ticketing) to employees via Claude.
Предварительные требования
- Python 3.11+, uv — astral.sh/uv
Поток
-
ScaffoldRun
uvx golf new acme-mcpand cd in.✓ Скопировано→ Project with tools/, prompts/, resources/ dirs -
Drop in tool filesCreate tools/list_tickets.py exporting an async function. Golf wires the schema automatically.✓ Скопировано→ Tool visible at
/toolslist -
Enable JWT auth tied to your IdPConfigure golf.yaml auth: jwt with your IdP's JWKS URL. Require
mcp:usescope.✓ Скопировано→ Unauthenticated calls rejected
Итог: A deployable MCP that only authorized employees can call, with traces flowing to your APM.
Подводные камни
- Each tool import failure breaks server startup — Golf loads tools eagerly — fix import errors or move heavy deps inside the function