The golf.json file is the main configuration file for your Golf project. Place this file in your project root directory to configure your MCP server.
name
string
required
The name of your MCP server instance.
{
  "name": "MyProject"
}
description
string
A brief description of your Golf project.
{
  "description": "A GolfMCP project"
}
host
string
default:"localhost"
The network interface the server will bind to.
{
  "host": "localhost"
}
port
integer
default:"3000"
The port number the server will listen on.
{
  "port": 3000
}
transport
string
default:"sse"
The transport protocol for client-server communication.Options:
  • "sse" - Server-Sent Events
  • "streamable-http" - HTTP with streaming support
  • "stdio" - Standard input/output
{
  "transport": "sse"
}
opentelemetry_enabled
boolean
default:"false"
Enable OpenTelemetry distributed tracing for your MCP server. For detailed configuration and features, see Telemetry.
{
  "opentelemetry_enabled": true
}
opentelemetry_default_exporter
string
default:"otlp_http"
The default exporter to use for OpenTelemetry traces when enabled.Options:
  • "otlp_http" - OTLP HTTP exporter (for Jaeger, Grafana Tempo, etc.)
  • "console" - Console exporter (for debugging)
{
  "opentelemetry_default_exporter": "otlp_http"
}
When using otlp_http, you must set the OTEL_EXPORTER_OTLP_ENDPOINT environment variable. See the environment variables section below.