Skip to main content

Install

The Go SDK wraps servers built with mark3labs/mcp-go (*server.MCPServer). Servers built with the official modelcontextprotocol/go-sdk are not supported.

Integrate

Call agnost.Track after adding your tools, before serving:
Get your org ID from app.agnost.ai.

Options

Defaults apply when you pass nil 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.Track after adding tools and before serving. Tools added after Track are not wrapped.
  • Confirm the org ID is correct.
  • If the log shows unsupported protocol scheme "", set Endpoint in 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.
⌂ 换网址