---
summary: Error category telemetry — new ErrorCategory type and classifier, mcp.tool.error_category OTel attribute, OpenTelemetry and SDK dependency bumps
breaking: false
---

# 0.2.2 — 2026-03-26

Error category telemetry, dependency updates, and minor cleanup.

## Added

- **Error category telemetry** — New `ErrorCategory` type (`'upstream'` | `'server'` | `'client'`) and `getErrorCategory()` classifier in error handler mappings. Tool error metrics now emit `mcp.tool.error_category` attribute, enabling dashboards to distinguish external API failures from internal bugs and bad input.
- **`ATTR_MCP_TOOL_ERROR_CATEGORY`** — New OTel attribute constant for the error category dimension.

## Changed

- **Dependencies** — `@modelcontextprotocol/sdk` ^1.27.1 → ^1.28.0, `@opentelemetry/*` packages bumped (api ^1.9.1, SDK ^0.214.0, resources/metrics/trace ^2.6.1, instrumentation-pino ^0.60.0), `@biomejs/biome` 2.4.8 → 2.4.9, `vitest` 4.1.1 → 4.1.2, `vite` 8.0.2 → 8.0.3, `openai` ^6.33.0, `repomix` ^1.13.1, `@supabase/supabase-js` ^2.100.1.
- **New runtime deps** — Added `picomatch` 2.3.2 and `yaml` 1.10.3 to dependencies.
- **Minor refactors** — Simplified optional chaining in `authUtils.ts` and `trace.ts`.
