Install
Set your API key
Instrument your server
- mark3labs/mcp-go
- Official go-sdk
Create the server with
NewMCPServer and register tools with InstrumentTool:main.go
Existing servers
Attach a recorder to a server you already construct:official.NewRecorder(config) followed by rec.Install(server).
Running on serverless or stateless HTTP? See Stateless & serverless servers and set
Delivery: armatureanalytics.DeliveryAwait.Configuration
Flush on shutdown
NewMCPServer returns a Shutdown function that drains pending deliveries — call it with a timeout on exit (as in the quickstart above). With a manual recorder, call rec.Close(ctx).
What’s not captured
The Go SDK recordsinitialize and tools/call. Prompts, resources, and OAuth flows are not captured.
Troubleshooting
Actor always shows as anonymous behind auth middleware
Actor always shows as anonymous behind auth middleware
With the official SDK adapter, install the analytics middleware before your auth middleware if your
ActorSeed reads values that auth injects into the context.No data arrives
No data arrives
Check
ANALYTICS_INGEST_API_KEY is set (missing keys disable delivery silently by design) and set Config.OnError to surface failures.
