# Go MCP SDK

> Add Voxmith analytics to your Go MCP server

## Install

```bash theme={null}
go get github.com/voxmithai/voxmith-go/voxmith
```

## Integrate

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

```go theme={null}
import "github.com/voxmithai/voxmith-go/voxmith"

// your existing server setup...

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

server.ServeStdio(s)
```

Get your org ID from [app.voxmith.com](https://app.voxmith.com).

## Options

| Field | Type | Default | Description |
| - | - | - | - |
| `Endpoint` | `string` | `https://api.voxmith.com` | 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` |

## What appears in Voxmith

* **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.voxmith.com](https://app.voxmith.com). Check **Events** first, then **Tool calls**.

## Troubleshooting

* Call `voxmith.Track` after adding tools and before serving.
* Confirm the org ID is correct.

## Next steps

* [Tool calls](/using-tool-calls): analyze calls from your Go server.
* [Events](/using-events): verify call fields and execution details.
* [Alerts](/using-alerts): monitor important MCP tool conditions.
