Que fait Build authenticated MCP servers from Python files with Golf ?
Scaffold, build, and run MCP servers from a predictable Python project layout with tools, prompts, resources, auth, and OpenTelemetry hooks.
Prerequisites
Python 3.10+, pip, Golf CLI, MCP-compatible client
Installation
Use the upstream install or setup path that matches your environment:
- pip install golf-mcp
Requirements and caveats from upstream:
- Golf is a framework designed to streamline the creation of MCP server applications. It allows developers to define server's capabilities—tools, prompts, and resources—as simple Python files within a conventi...
- Ensure you have Python (3.10+ recommended) installed. Then, install Golf using pip:
- tools/, resources/, prompts/: Contain your Python files, each defining a single component. These directories can also contain nested subdirectories to further organize your components (e.g., tools/payments...
Basic usage or getting-started notes:
-
Get your Golf project up and running in a few simple steps:
-
Use the Golf CLI to scaffold a new project:
-
golf init your-project-name
-
Source: https://github.com/golf-mcp/golf
-
Extracted from upstream docs: https://raw.githubusercontent.com/golf-mcp/golf/HEAD/README.md