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