> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agnost.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Go MCP SDK

> Add Agnost AI analytics to your Go MCP server

## Install

```bash theme={null}
go get github.com/agnostai/agnost-go/agnost
```

## Integrate

Call `agnost.Track` after adding your tools, before serving:

```go theme={null}
import "github.com/agnostai/agnost-go/agnost"

// your existing server setup...

err := agnost.Track(s, "your-org-id", &agnost.Config{
    Endpoint:      "https://api.agnost.ai",
    DisableInput:  false,
    DisableOutput: false,
})
if err != nil {
    log.Printf("analytics init failed: %v", err)
}

server.ServeStdio(s)
```

Get your org ID from [app.agnost.ai](https://app.agnost.ai).

## Options

| Field           | Type     | Default                 | Description                               |
| --------------- | -------- | ----------------------- | ----------------------------------------- |
| `Endpoint`      | `string` | `https://api.agnost.ai` | API endpoint                              |
| `DisableInput`  | `bool`   | `false`                 | Skip tracking tool inputs                 |
| `DisableOutput` | `bool`   | `false`                 | Skip tracking tool outputs                |
| `Identify`      | `func`   | `nil`                   | Return user identity from request context |
| `LogLevel`      | `string` | `"info"`                | `debug`, `info`, `warning`, `error`       |
