---
summary: "obsidian_open_in_ui can no longer create a file under OBSIDIAN_READ_ONLY or outside OBSIDIAN_WRITE_PATHS, and a path naming a folder is rejected as path_is_directory instead of being read back as note content or recursively deleted"
breaking: false
security: true
---

# 3.2.11 — 2026-08-02

## Added

- **`path_is_directory` and `path_traversal` error contracts** ([#74](https://github.com/cyanheads/obsidian-mcp-server/issues/74)) — both declared on all nine path-accepting tools (`obsidian_get_note`, `obsidian_write_note`, `obsidian_append_to_note`, `obsidian_patch_note`, `obsidian_replace_in_note`, `obsidian_manage_frontmatter`, `obsidian_manage_tags`, `obsidian_delete_note`, `obsidian_open_in_ui`), plus `path_is_directory` on the `obsidian://vault/{+path}` resource, so both conditions carry a `data.reason` and a recovery hint.
- **`ObsidianService.openInUi` `createIfMissing` option** — selects `PathPolicy.assertWritable` over `assertReadable` for the branch where Obsidian would materialize the file.

## Changed

- **`obsidian_open_in_ui` runs the existence probe on both `failIfMissing` branches.** The `failIfMissing: false` path no longer skips it, so that path also gets the case-insensitive fallback the default path had — opening `readme.md` against a vault holding `README.md` resolves to the existing file instead of creating a second one on a case-sensitive filesystem.
- **`obsidian_open_in_ui` annotations** are now `openWorldHint: true`, `destructiveHint: false`, `idempotentHint: true`. `readOnlyHint` stays off — the tool can create a file where write access permits it — and with it absent, `destructiveHint` previously defaulted to true for a tool that destroys nothing.
- **`encodeVaultPath`** writes its `path_traversal` recovery hint at the throw site; as a free function with no `ctx`, it can't resolve one from the calling tool's contract.
- **Server instructions** under `OBSIDIAN_READ_ONLY=true` state that `obsidian_open_in_ui` still opens existing notes but rejects an open against a missing path.

## Fixed

- **`createdIfMissing` reports what happened** ([#73](https://github.com/cyanheads/obsidian-mcp-server/issues/73)) — it was hard-coded `true` on the `failIfMissing: false` branch, so opening an existing note reported a creation that never occurred. It is now `false` when the probe found the file and `true` only when Obsidian materialized it on open.
- **Note reads reject a path that names a folder** ([#95](https://github.com/cyanheads/obsidian-mcp-server/issues/95)) — the Local REST API answers `GET /vault/<dir>` with `200` and a JSON listing for every `Accept` type, so `obsidian_get_note` returned the listing as note content under `format: "content"` and failed opaquely under `full`, `document-map`, and `section`. `ObsidianService` now runs `#assertNotDirectory` on the markdown, `note+json`, and `document-map` reads and on the `HEAD` behind `tryGetSize`, throwing `path_is_directory`. The discriminator is a bare `application/json` with no `Content-Disposition`, scoped to `/vault/` — a vault `.json` file is served with the filename header and still reads as a note.

## Security

- **`obsidian_open_in_ui` could create a file under `OBSIDIAN_READ_ONLY=true`** ([#99](https://github.com/cyanheads/obsidian-mcp-server/issues/99)) — the create happens inside Obsidian on open, so it passed through no write check, and `OBSIDIAN_WRITE_PATHS` did not constrain it either. The existence probe now separates an open from a create: a missing path calls `openInUi` with `createIfMissing: true`, which fails `assertWritable` as `path_forbidden` before any `POST /open/` is issued.
- **`obsidian_delete_note` against a folder path removed the folder and everything under it.** `HEAD /vault/<folder>` answers `200` with the listing's byte count, so the pre-delete size probe read a folder as an existing note and the upstream `DELETE` recursed, reporting success with `previousSizeInBytes` set to the listing's size. The probe now stops at `path_is_directory` and issues no `DELETE`.
