---
summary: "Upstream 500/501 now classify as ServiceUnavailable instead of InternalError, so a 500 on a retry-safe call is retried automatically; MCP_SESSION_MODE is pinned to stateful so obsidian_delete_note's confirmation round-trip actually works under Docker."
breaking: true
security: false
---

# 3.5.1 — 2026-09-04

## Changed

- **Upstream HTTP 500 and 501 now classify as `ServiceUnavailable` instead of `InternalError`** — `ObsidianService#throwForStatus`'s default branch adopts `mcp-ts-core`'s widened `httpStatusToErrorCode` mapping (502/503/other 5xx unchanged, 504 stays `Timeout`). `ServiceUnavailable` is in `withRetry`'s transient set, so a 500 on a retry-safe call (e.g. `obsidian_get_note`) is now retried automatically instead of failing on the first attempt. 501 keeps the shared `ServiceUnavailable` code but the service attaches `data.retryable: false` by hand, since a method the plugin declares unimplemented can't change on retry.
- Framework-managed files under `skills/` resynced from the `mcp-ts-core` package — `api-errors` documents the same 5xx reclassification; `release-and-publish`, `maintenance`, `setup`, `add-tool`, and `api-config` pick up unrelated upstream fixes.

## Fixed

- **`MCP_SESSION_MODE` is pinned to `stateful`** across `.env.example`, the `Dockerfile`, and the README env table ([#120](https://github.com/cyanheads/obsidian-mcp-server/issues/120)) — the Docker image shipped `stateless` while `.env.example` documented the schema's `auto` default (which itself resolves to `stateful`), so the two surfaces disagreed. `obsidian_delete_note` gates on a `ctx.requestInput` confirmation round that a 2025-era HTTP client can't complete under `stateless` (no live session to carry the `elicitation/create` call), so the Docker default silently made the delete tool unusable for that client generation. All three surfaces now agree on `stateful`.

## Dependencies

- `@cyanheads/mcp-ts-core` ^0.12.3 → ^0.12.5
- `js-yaml` ^5.3.0 → ^5.4.1
- `undici` ^8.10.0 → ^8.10.1
- `zod` ^4.4.3 → ^4.5.4
- `@biomejs/biome` ^2.5.9 → ^2.5.11 (dev)
- `@types/node` ^26.2.0 → ^26.4.0 (dev)
- `ignore` ^7.0.6 → ^7.0.8 (dev)
- `tsc-alias` ^1.9.2 → ^1.9.3 (dev)
