Install
mark3labs/mcp-go
(*server.MCPServer). Servers built with the official modelcontextprotocol/go-sdk
are not supported.
Integrate
Callagnost.Track after adding your tools, before serving:
Options
Defaults apply when you passnil or start from agnost.DefaultConfig(). A
&agnost.Config{...} literal does not fill in defaults, so always set Endpoint
in it; an empty Endpoint drops every event.
What appears in Agnost AI
- Tool calls for MCP tool invocations.
- Events for every tracked call.
- Failed tool calls remain visible in Events with their error details.
Verify
Call one MCP tool from your client, then open app.agnost.ai. Check Events first, then Tool calls.Troubleshooting
- Call
agnost.Trackafter adding tools and before serving. Tools added afterTrackare not wrapped. - Confirm the org ID is correct.
- If the log shows
unsupported protocol scheme "", setEndpointin your config.
Next steps
- Tool calls: analyze calls from your Go server.
- Events: verify call fields and execution details.
- Alerts: monitor important MCP tool conditions.