obsidian-mcp-server 3.5.4 → 3.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +6 -2
- package/CLAUDE.md +6 -2
- package/README.md +10 -9
- package/changelog/3.5.x/3.5.5.md +20 -0
- package/dist/mcp-server/tools/definitions/_shared/schemas.js +1 -1
- package/dist/mcp-server/tools/definitions/_shared/schemas.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +64 -64
- package/dist/mcp-server/tools/definitions/obsidian-append-to-note.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/obsidian-append-to-note.tool.js +3 -3
- package/dist/mcp-server/tools/definitions/obsidian-append-to-note.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/obsidian-get-note.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/obsidian-get-note.tool.js +4 -3
- package/dist/mcp-server/tools/definitions/obsidian-get-note.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/obsidian-manage-tags.tool.d.ts +4 -2
- package/dist/mcp-server/tools/definitions/obsidian-manage-tags.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/obsidian-manage-tags.tool.js +5 -3
- package/dist/mcp-server/tools/definitions/obsidian-manage-tags.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/obsidian-patch-note.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/obsidian-patch-note.tool.js +3 -3
- package/dist/mcp-server/tools/definitions/obsidian-patch-note.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/obsidian-search-notes.tool.d.ts +6 -5
- package/dist/mcp-server/tools/definitions/obsidian-search-notes.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/obsidian-search-notes.tool.js +26 -24
- package/dist/mcp-server/tools/definitions/obsidian-search-notes.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/obsidian-write-note.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/obsidian-write-note.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/obsidian-write-note.tool.js +10 -10
- package/dist/mcp-server/tools/definitions/obsidian-write-note.tool.js.map +1 -1
- package/dist/services/obsidian/frontmatter-ops.d.ts +6 -4
- package/dist/services/obsidian/frontmatter-ops.d.ts.map +1 -1
- package/dist/services/obsidian/frontmatter-ops.js +194 -16
- package/dist/services/obsidian/frontmatter-ops.js.map +1 -1
- package/dist/services/obsidian/obsidian-service.d.ts +9 -5
- package/dist/services/obsidian/obsidian-service.d.ts.map +1 -1
- package/dist/services/obsidian/obsidian-service.js +390 -64
- package/dist/services/obsidian/obsidian-service.js.map +1 -1
- package/dist/services/obsidian/section-extractor.d.ts +33 -3
- package/dist/services/obsidian/section-extractor.d.ts.map +1 -1
- package/dist/services/obsidian/section-extractor.js +115 -75
- package/dist/services/obsidian/section-extractor.js.map +1 -1
- package/dist/services/obsidian/types.d.ts +11 -4
- package/dist/services/obsidian/types.d.ts.map +1 -1
- package/manifest.json +1 -1
- package/package.json +2 -2
- package/server.json +3 -3
package/AGENTS.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Agent Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** obsidian-mcp-server
|
|
4
|
-
**Version:** 3.5.
|
|
4
|
+
**Version:** 3.5.5
|
|
5
5
|
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.6`
|
|
6
6
|
**Engines:** Bun ≥1.4.0, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
|
|
@@ -233,11 +233,15 @@ Services that accept `ctx` use the same resolver for parity. The Obsidian servic
|
|
|
233
233
|
```ts
|
|
234
234
|
// inside obsidian-service.ts
|
|
235
235
|
throw notFound(`Not found: ${display}`, data('note_missing'), { cause });
|
|
236
|
-
// where data(reason) does: { path, reason, ...ctx.recoveryFor(reason) }
|
|
236
|
+
// where data(reason) does: { ...callerIdentifier(path), reason, ...ctx.recoveryFor(reason) }
|
|
237
|
+
// — `path` on a note route, `commandId` on /commands/<id>/, no key on routes
|
|
238
|
+
// that carry no caller input (/, /tags/, /commands/, /search/).
|
|
237
239
|
// The upstream body is never spread into `data` — it rides as `cause`, which
|
|
238
240
|
// is non-enumerable and so reaches the log without reaching the client.
|
|
239
241
|
```
|
|
240
242
|
|
|
243
|
+
A `fetch` that rejects before any response is classified inside the attempt (`#send`), so the retry decision sees the typed error: a refused certificate throws `ConfigurationError` `certificate_rejected` on the first attempt, an unreachable plugin throws `ServiceUnavailable` `obsidian_unreachable` and keeps the GET/PUT/DELETE retries. Both carry an inline `recovery.hint` rather than `ctx.recoveryFor`, because they reach every tool and resource — including resources with no `errors[]` — and the operator, not the agent, fixes them.
|
|
244
|
+
|
|
241
245
|
**Fallback for ad-hoc throws** (no contract entry fits, prototype tools, service-layer code without a contract): use error factories.
|
|
242
246
|
|
|
243
247
|
```ts
|
package/CLAUDE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Agent Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** obsidian-mcp-server
|
|
4
|
-
**Version:** 3.5.
|
|
4
|
+
**Version:** 3.5.5
|
|
5
5
|
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.6`
|
|
6
6
|
**Engines:** Bun ≥1.4.0, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
|
|
@@ -233,11 +233,15 @@ Services that accept `ctx` use the same resolver for parity. The Obsidian servic
|
|
|
233
233
|
```ts
|
|
234
234
|
// inside obsidian-service.ts
|
|
235
235
|
throw notFound(`Not found: ${display}`, data('note_missing'), { cause });
|
|
236
|
-
// where data(reason) does: { path, reason, ...ctx.recoveryFor(reason) }
|
|
236
|
+
// where data(reason) does: { ...callerIdentifier(path), reason, ...ctx.recoveryFor(reason) }
|
|
237
|
+
// — `path` on a note route, `commandId` on /commands/<id>/, no key on routes
|
|
238
|
+
// that carry no caller input (/, /tags/, /commands/, /search/).
|
|
237
239
|
// The upstream body is never spread into `data` — it rides as `cause`, which
|
|
238
240
|
// is non-enumerable and so reaches the log without reaching the client.
|
|
239
241
|
```
|
|
240
242
|
|
|
243
|
+
A `fetch` that rejects before any response is classified inside the attempt (`#send`), so the retry decision sees the typed error: a refused certificate throws `ConfigurationError` `certificate_rejected` on the first attempt, an unreachable plugin throws `ServiceUnavailable` `obsidian_unreachable` and keeps the GET/PUT/DELETE retries. Both carry an inline `recovery.hint` rather than `ctx.recoveryFor`, because they reach every tool and resource — including resources with no `errors[]` — and the operator, not the agent, fixes them.
|
|
244
|
+
|
|
241
245
|
**Fallback for ad-hoc throws** (no contract entry fits, prototype tools, service-layer code without a contract): use error factories.
|
|
242
246
|
|
|
243
247
|
```ts
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/obsidian-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/obsidian-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -60,7 +60,7 @@ Vault-note and tag data are also reachable via tools — `obsidian_get_note` for
|
|
|
60
60
|
|
|
61
61
|
- `format: "content" | "full" | "document-map" | "section"` selects the projection; `full` accepts `includeLinks: true` for outgoing wiki/markdown links (vault-internal only — external URLs are filtered)
|
|
62
62
|
- Addressed by vault `path`, the `active` file, or a `periodic` note (`daily` / `weekly` / `monthly` / `quarterly` / `yearly`)
|
|
63
|
-
- Heading sections use `Parent::Child` syntax; a bare leaf name matching several headings returns the first match and lists every colliding path in `candidates`
|
|
63
|
+
- Heading sections use `Parent::Child` syntax, and every `#`-style heading path the document map lists reads back as itself (setext headings, underlined with `===` or `---`, are not recognized); a bare leaf name matching several headings, or a full path that repeats in the note, returns the first match and lists every colliding path in `candidates`
|
|
64
64
|
- Forgiving `path` resolution: a case-mismatched path retries against the canonical filename, an ambiguous case match fails with `Conflict`, and a `NotFound` carries `Did you mean: …?` suggestions when near-matches exist
|
|
65
65
|
- Typed errors include `note_missing`, `path_forbidden`, `no_active_file`, `periodic_unsupported` / `periodic_disabled`, and `path_traversal`
|
|
66
66
|
|
|
@@ -95,8 +95,8 @@ Vault-note and tag data are also reachable via tools — `obsidian_get_note` for
|
|
|
95
95
|
### `obsidian_search_notes` <sub>tool</sub>
|
|
96
96
|
|
|
97
97
|
- `mode: "text" | "jsonlogic"` always; `"omnisearch"` is added to the schema only when the Omnisearch plugin's HTTP server is reachable at startup (restart to re-probe)
|
|
98
|
-
- `text` — substring
|
|
99
|
-
- Cursor pagination — omit `cursor` for page one, pass `nextCursor` from the prior response; text-mode hits additionally clip to `maxMatchesPerHit` (default 10), flagged with `truncated` / `totalMatches`
|
|
98
|
+
- `text` — whitespace-split tokens, all required, each matched case-insensitively as a substring (quotes are literal, so there is no phrase operator), with `contextLength`-sized context windows (default 100) and an optional `pathPrefix`; tokens within 2 × `contextLength` of each other, such as a phrase's words, share one match location; `jsonlogic` — a JSONLogic tree with `var` paths into `path` / `content` / `frontmatter.<key>` / `tags` / `stat.{ctime,mtime,size}`, plus `glob` / `regexp` operators taking `[PATTERN, VALUE]`; `omnisearch` — BM25-ranked, quoted phrases, `-exclusion`, `path:` / `ext:` filters, typo tolerance, PDF/OCR via Text Extractor, hard-capped at 50 upstream hits (`truncated: true` when likely hit)
|
|
99
|
+
- Cursor pagination — omit `cursor` for page one, pass `nextCursor` from the prior response; text-mode hits additionally clip to `maxMatchesPerHit` match locations (default 10), flagged with `truncated` / `totalMatches`
|
|
100
100
|
- No dedicated backlinks tool — express "what links here" via `jsonlogic`: `{"regexp": ["\\[\\[Target Note(\\||#|\\]\\])", {"var": "content"}]}`
|
|
101
101
|
|
|
102
102
|
---
|
|
@@ -104,7 +104,7 @@ Vault-note and tag data are also reachable via tools — `obsidian_get_note` for
|
|
|
104
104
|
### `obsidian_write_note` <sub>tool</sub>
|
|
105
105
|
|
|
106
106
|
- Without `section` — full-file write; refuses to clobber an existing note unless `overwrite: true` (`file_exists` conflict otherwise, naming the surgical-edit tools as the alternative)
|
|
107
|
-
- With `section` — `PATCH`-with-replace against a heading/block/frontmatter target, leaving the rest of the file untouched (`overwrite` is ignored); a bare heading leaf shared by several headings fails with `ambiguous_section`
|
|
107
|
+
- With `section` — `PATCH`-with-replace against a heading/block/frontmatter target, leaving the rest of the file untouched (`overwrite` is ignored); a bare heading leaf shared by several headings fails with `ambiguous_section` unless one of them has no parent heading, which the write then targets, and a full heading path that repeats in the note fails the same way
|
|
108
108
|
- Output reports `created`, plus `previousSizeInBytes` / `currentSizeInBytes` on every call to spot an accidental clobber or a mistyped path
|
|
109
109
|
|
|
110
110
|
---
|
|
@@ -121,7 +121,7 @@ Vault-note and tag data are also reachable via tools — `obsidian_get_note` for
|
|
|
121
121
|
### `obsidian_patch_note` <sub>tool</sub>
|
|
122
122
|
|
|
123
123
|
- `operation: "append" | "prepend" | "replace"` against one heading, block reference, or frontmatter field per call
|
|
124
|
-
- Heading targets accept the full `Parent::Child` path or
|
|
124
|
+
- Heading targets accept the full `Parent::Child` path or a bare leaf name; a leaf matching several headings fails with `ambiguous_section` and lists the candidates, unless one of them has no parent heading, which the patch then targets; a full path that repeats in the note fails with `ambiguous_section` too
|
|
125
125
|
- `patchOptions`: `createTargetIfMissing`, `applyIfContentPreexists` (idempotency guard — otherwise `content_preexists`), `trimTargetWhitespace`
|
|
126
126
|
|
|
127
127
|
---
|
|
@@ -146,7 +146,8 @@ Vault-note and tag data are also reachable via tools — `obsidian_get_note` for
|
|
|
146
146
|
### `obsidian_manage_tags` <sub>tool</sub>
|
|
147
147
|
|
|
148
148
|
- `operation: "add" | "remove" | "list"`; `location: "frontmatter"` (default, canonical `tags:` array) | `"inline"` (body `#tag`, `add` appends at end-of-file) | `"both"` (reconciles both)
|
|
149
|
-
- Inline detection skips fenced/inline code spans, link spans (`[[...]]`, `[text](...)`, `[text][ref]`), and
|
|
149
|
+
- Inline detection skips fenced/inline code spans, link spans (`[[...]]`, `[text](...)`, `[text][ref]`), HTML comments, and math (`$…$`, `$$…$$`), so a heading anchor or wikilink alias is never mistaken for a tag; `%% … %%` comments are still read, as Obsidian reads them
|
|
150
|
+
- Inline tags follow Obsidian's grammar: a tag starts at line start, after whitespace, or right after markup such as `**`, `==`, `<br>`, or a `\`-escape (`**#x**` is a tag; `(#x`, `.#x`, `a *#x`, and `\#x` are not) and runs through letters and digits in any script, emoji, `_`, `-`, and `/`, with at least one character that is not an ASCII digit (`#1990s`, `#café`, `#日本語`, and `#✅done` are tags; `#1984` is not)
|
|
150
151
|
- `add` / `remove` report `applied` vs. `skipped` tags plus the full `tags` set after the change; `list` ignores the input `tags` array
|
|
151
152
|
|
|
152
153
|
---
|
|
@@ -349,8 +350,8 @@ MCP_TRANSPORT_TYPE=http OBSIDIAN_API_KEY=... bun run start:http
|
|
|
349
350
|
| Variable | Description | Default |
|
|
350
351
|
|:---------|:------------|:--------|
|
|
351
352
|
| `OBSIDIAN_API_KEY` | **Required.** Bearer token for the Obsidian Local REST API plugin. | — |
|
|
352
|
-
| `OBSIDIAN_BASE_URL` | Base URL of the Local REST API plugin. Use `https://127.0.0.1:27124` for the always-on HTTPS port (self-signed cert). A trailing slash is stripped at startup. | `http://127.0.0.1:27123` |
|
|
353
|
-
| `OBSIDIAN_VERIFY_SSL` | Verify the TLS certificate. Default `false` because the plugin uses a self-signed cert. The relaxation is applied per request, to an `https:` `OBSIDIAN_BASE_URL` only — every other HTTPS connection the process makes still verifies normally, on both Bun and Node. | `false` |
|
|
353
|
+
| `OBSIDIAN_BASE_URL` | Base URL of the Local REST API plugin. Use `https://127.0.0.1:27124` for the always-on HTTPS port (self-signed cert). A trailing slash is stripped at startup. When nothing answers there (Obsidian closed, plugin disabled, wrong host or port), calls fail with `obsidian_unreachable` — a `GET`, `PUT`, or `DELETE` after its retries, any other request on the first attempt. | `http://127.0.0.1:27123` |
|
|
354
|
+
| `OBSIDIAN_VERIFY_SSL` | Verify the TLS certificate. Default `false` because the plugin uses a self-signed cert. The relaxation is applied per request, to an `https:` `OBSIDIAN_BASE_URL` only — every other HTTPS connection the process makes still verifies normally, on both Bun and Node. With `true`, a certificate the runtime does not trust fails every call on its first attempt with `certificate_rejected`. | `false` |
|
|
354
355
|
| `OBSIDIAN_REQUEST_TIMEOUT_MS` | Per-request timeout in milliseconds. | `30000` |
|
|
355
356
|
| `OBSIDIAN_ENABLE_COMMANDS` | Opt-in flag for the command-palette pair (`obsidian_list_commands` + `obsidian_execute_command`). Off by default — Obsidian commands are opaque and can be destructive. | `false` |
|
|
356
357
|
| `OBSIDIAN_READ_PATHS` | Comma-separated vault-relative folder allowlist for read operations. Prefix-based with implicit recursion; case-insensitive; trailing slashes normalized. Unset = full vault. Write paths are implicitly readable. | unset |
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "TLS certificate rejection and an unreachable Local REST API now surface as typed, actionable errors instead of a hintless InternalError, multi-word text search and inline tag matching are fixed, and a section write to a repeated heading path is rejected instead of landing on the wrong occurrence."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 3.5.5 — 2026-09-22
|
|
8
|
+
|
|
9
|
+
## Fixed
|
|
10
|
+
|
|
11
|
+
- **A rejected TLS certificate and an unreachable Local REST API now surface as typed errors** — `certificate_rejected` names the runtime's TLS code and points at `OBSIDIAN_VERIFY_SSL` / `OBSIDIAN_BASE_URL`; `obsidian_unreachable` covers a closed port, wrong host, or disabled plugin and keeps its GET/PUT/DELETE retries. Both used to surface as a hintless `InternalError` ([#133](https://github.com/cyanheads/obsidian-mcp-server/issues/133), [#136](https://github.com/cyanheads/obsidian-mcp-server/issues/136)).
|
|
12
|
+
- **Error `data` no longer carries a route string as `path`** — a command-route error now carries `commandId`, and a route with no caller input (`/`, `/tags/`, `/search/`, …) carries neither ([#130](https://github.com/cyanheads/obsidian-mcp-server/issues/130)).
|
|
13
|
+
- **A multi-word `obsidian_search_notes` text query merges its per-token spans into one match location** instead of returning a near-identical context window per token ([#117](https://github.com/cyanheads/obsidian-mcp-server/issues/117)); offsets are also corrected when the context window's edge splits a surrogate pair, and a span's subject (note body or filename) is read from the plugin's `match.source` when it sends one ([#135](https://github.com/cyanheads/obsidian-mcp-server/issues/135)).
|
|
14
|
+
- **`#tag` detection now follows Obsidian's own grammar** — leading-digit and non-ASCII tags are read and written, HTML comments and math spans are skipped, and the left-boundary and all-digit rules match Obsidian's readback ([#127](https://github.com/cyanheads/obsidian-mcp-server/issues/127), [#138](https://github.com/cyanheads/obsidian-mcp-server/issues/138)).
|
|
15
|
+
- **Inline tag scanning stays linear in note length** — the inline-math check finds each span's closer from a single pass over the note, so a paragraph of `$` signs that never close, such as a table of prices, is not rescanned from each one ([#143](https://github.com/cyanheads/obsidian-mcp-server/issues/143)).
|
|
16
|
+
- **A document-map heading locator now round-trips through `obsidian_get_note` section reads at any depth** ([#128](https://github.com/cyanheads/obsidian-mcp-server/issues/128)), and a section write against a full path that repeats in the note is rejected with `ambiguous_section` instead of silently landing on the wrong occurrence ([#137](https://github.com/cyanheads/obsidian-mcp-server/issues/137)); `SectionSchema.target` and the write-tool descriptions document both cases ([#129](https://github.com/cyanheads/obsidian-mcp-server/issues/129)).
|
|
17
|
+
|
|
18
|
+
## Dependencies
|
|
19
|
+
|
|
20
|
+
- `@types/node` ^26.6.1 → ^26.6.2
|
|
@@ -43,7 +43,7 @@ export const SectionSchema = z.object({
|
|
|
43
43
|
target: z
|
|
44
44
|
.string()
|
|
45
45
|
.min(1)
|
|
46
|
-
.describe('Heading
|
|
46
|
+
.describe('Heading, block, or frontmatter locator. Heading: the full `Parent::Child` path as `obsidian_get_note` `format: "document-map"` lists it, or a bare leaf name matched at any depth. A leaf shared by several headings reads the first (every full path comes back in `candidates`); a write rejects it with `ambiguous_section`, unless one of them has no parent heading, in which case the write targets that one. A full path that occurs more than once in the note reads the first; a write rejects it with `ambiguous_section`. Block: the reference ID without the caret (e.g. "2d9b4a", not "^2d9b4a"). Frontmatter: the field name.'),
|
|
47
47
|
});
|
|
48
48
|
export const PatchOptionsSchema = z
|
|
49
49
|
.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../src/mcp-server/tools/definitions/_shared/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAE3C,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACvD,CAAC;SACE,MAAM,CAAC;QACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,iCAAiC,CAAC;QACnE,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,CAAC,kEAAkE,CAAC;KAChF,CAAC;SACD,QAAQ,CAAC,4CAA4C,CAAC;IACzD,CAAC;SACE,MAAM,CAAC;QACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,8CAA8C,CAAC;KACnF,CAAC;SACD,QAAQ,CAAC,gEAAgE,CAAC;IAC7E,CAAC;SACE,MAAM,CAAC;QACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,oDAAoD,CAAC;QAC1F,MAAM,EAAE,CAAC;aACN,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;aAC3D,QAAQ,CAAC,4BAA4B,CA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AAO,CAAC,UAAU,CAAC;KACnB,QAAQ,CACP,qPAAqP,CACtP,CAAC"}
|
|
@@ -311,44 +311,25 @@ export declare const writeToolDefinitions: (import("@cyanheads/mcp-ts-core").Too
|
|
|
311
311
|
}>;
|
|
312
312
|
date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
313
313
|
}, import("zod/v4/core").$strip>], "type">;
|
|
314
|
-
|
|
314
|
+
content: import("zod").ZodString;
|
|
315
|
+
section: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
315
316
|
type: import("zod").ZodEnum<{
|
|
316
317
|
block: "block";
|
|
317
318
|
frontmatter: "frontmatter";
|
|
318
319
|
heading: "heading";
|
|
319
320
|
}>;
|
|
320
321
|
target: import("zod").ZodString;
|
|
321
|
-
}, import("zod/v4/core").$strip
|
|
322
|
-
operation: import("zod").ZodEnum<{
|
|
323
|
-
append: "append";
|
|
324
|
-
prepend: "prepend";
|
|
325
|
-
replace: "replace";
|
|
326
|
-
}>;
|
|
327
|
-
content: import("zod").ZodString;
|
|
322
|
+
}, import("zod/v4/core").$strip>>;
|
|
328
323
|
contentType: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
329
324
|
json: "json";
|
|
330
325
|
markdown: "markdown";
|
|
331
326
|
}>>;
|
|
332
|
-
|
|
333
|
-
createTargetIfMissing: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
334
|
-
applyIfContentPreexists: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
335
|
-
trimTargetWhitespace: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
336
|
-
}, import("zod/v4/core").$strip>>;
|
|
327
|
+
createTargetIfMissing: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
337
328
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
338
329
|
path: import("zod").ZodString;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
frontmatter: "frontmatter";
|
|
343
|
-
heading: "heading";
|
|
344
|
-
}>;
|
|
345
|
-
target: import("zod").ZodString;
|
|
346
|
-
}, import("zod/v4/core").$strip>;
|
|
347
|
-
operation: import("zod").ZodEnum<{
|
|
348
|
-
append: "append";
|
|
349
|
-
prepend: "prepend";
|
|
350
|
-
replace: "replace";
|
|
351
|
-
}>;
|
|
330
|
+
sectionTargeted: import("zod").ZodBoolean;
|
|
331
|
+
sectionTarget: import("zod").ZodOptional<import("zod").ZodString>;
|
|
332
|
+
created: import("zod").ZodBoolean;
|
|
352
333
|
previousSizeInBytes: import("zod").ZodNumber;
|
|
353
334
|
currentSizeInBytes: import("zod").ZodNumber;
|
|
354
335
|
}, import("zod/v4/core").$strip>, readonly [{
|
|
@@ -361,8 +342,8 @@ export declare const writeToolDefinitions: (import("@cyanheads/mcp-ts-core").Too
|
|
|
361
342
|
readonly reason: "note_missing";
|
|
362
343
|
readonly thrownBy: "service";
|
|
363
344
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
364
|
-
readonly when: "
|
|
365
|
-
readonly recovery: "Verify the path with obsidian_list_notes or
|
|
345
|
+
readonly when: "Section append targets a path that does not resolve to an existing note (PATCH requires the file to exist).";
|
|
346
|
+
readonly recovery: "Verify the path with obsidian_list_notes, or omit `section` to fall back to whole-file append (which creates the note if missing).";
|
|
366
347
|
}, {
|
|
367
348
|
readonly reason: "no_active_file";
|
|
368
349
|
readonly thrownBy: "service";
|
|
@@ -391,20 +372,20 @@ export declare const writeToolDefinitions: (import("@cyanheads/mcp-ts-core").Too
|
|
|
391
372
|
readonly reason: "section_target_missing";
|
|
392
373
|
readonly thrownBy: "service";
|
|
393
374
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
394
|
-
readonly when: "
|
|
395
|
-
readonly recovery: "Call obsidian_get_note with format document-map to discover
|
|
375
|
+
readonly when: "`section` was provided but the named heading/block/frontmatter field does not exist in the note.";
|
|
376
|
+
readonly recovery: "Call obsidian_get_note with format document-map to discover available targets, or pass createTargetIfMissing: true to bring it into existence.";
|
|
396
377
|
}, {
|
|
397
378
|
readonly reason: "ambiguous_section";
|
|
398
379
|
readonly thrownBy: "service";
|
|
399
380
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Conflict;
|
|
400
|
-
readonly when: "A bare heading leaf name matches more than one heading in the note, so the
|
|
401
|
-
readonly recovery: "Retry with
|
|
381
|
+
readonly when: "A bare heading leaf name matches more than one heading in the note, or the resolved full heading path occurs more than once, so the append target is undetermined.";
|
|
382
|
+
readonly recovery: "Retry with a distinct full Parent::Child heading path from `candidates` on the error data; when every candidate is the same path, rename the repeated headings first.";
|
|
402
383
|
}, {
|
|
403
384
|
readonly reason: "content_preexists";
|
|
404
385
|
readonly thrownBy: "service";
|
|
405
386
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
406
|
-
readonly when: "
|
|
407
|
-
readonly recovery: "
|
|
387
|
+
readonly when: "Section append where the supplied content already appears at the target — rejected to keep retries idempotent (the default for the section path).";
|
|
388
|
+
readonly recovery: "Change the content to something not already present at the target, or use obsidian_patch_note with `patchOptions.applyIfContentPreexists: true` if a duplicate is intended.";
|
|
408
389
|
}, {
|
|
409
390
|
readonly reason: "path_is_directory";
|
|
410
391
|
readonly thrownBy: "service";
|
|
@@ -434,33 +415,47 @@ export declare const writeToolDefinitions: (import("@cyanheads/mcp-ts-core").Too
|
|
|
434
415
|
}>;
|
|
435
416
|
date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
436
417
|
}, import("zod/v4/core").$strip>], "type">;
|
|
437
|
-
|
|
438
|
-
section: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
418
|
+
section: import("zod").ZodObject<{
|
|
439
419
|
type: import("zod").ZodEnum<{
|
|
440
420
|
block: "block";
|
|
441
421
|
frontmatter: "frontmatter";
|
|
442
422
|
heading: "heading";
|
|
443
423
|
}>;
|
|
444
424
|
target: import("zod").ZodString;
|
|
445
|
-
}, import("zod/v4/core").$strip
|
|
425
|
+
}, import("zod/v4/core").$strip>;
|
|
426
|
+
operation: import("zod").ZodEnum<{
|
|
427
|
+
append: "append";
|
|
428
|
+
prepend: "prepend";
|
|
429
|
+
replace: "replace";
|
|
430
|
+
}>;
|
|
431
|
+
content: import("zod").ZodString;
|
|
446
432
|
contentType: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
447
433
|
json: "json";
|
|
448
434
|
markdown: "markdown";
|
|
449
435
|
}>>;
|
|
450
|
-
|
|
436
|
+
patchOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
437
|
+
createTargetIfMissing: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
438
|
+
applyIfContentPreexists: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
439
|
+
trimTargetWhitespace: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
440
|
+
}, import("zod/v4/core").$strip>>;
|
|
451
441
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
452
442
|
path: import("zod").ZodString;
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
443
|
+
section: import("zod").ZodObject<{
|
|
444
|
+
type: import("zod").ZodEnum<{
|
|
445
|
+
block: "block";
|
|
446
|
+
frontmatter: "frontmatter";
|
|
447
|
+
heading: "heading";
|
|
448
|
+
}>;
|
|
449
|
+
target: import("zod").ZodString;
|
|
450
|
+
}, import("zod/v4/core").$strip>;
|
|
451
|
+
operation: import("zod").ZodEnum<{
|
|
452
|
+
append: "append";
|
|
453
|
+
prepend: "prepend";
|
|
454
|
+
replace: "replace";
|
|
455
|
+
}>;
|
|
456
456
|
previousSizeInBytes: import("zod").ZodNumber;
|
|
457
457
|
currentSizeInBytes: import("zod").ZodNumber;
|
|
458
458
|
}, import("zod/v4/core").$strip>, readonly [{
|
|
459
|
-
readonly reason: "file_exists";
|
|
460
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Conflict;
|
|
461
|
-
readonly when: "Whole-file write was attempted against an existing note and `overwrite` was not set to `true`.";
|
|
462
|
-
readonly recovery: "Retry with overwrite true or use obsidian_patch_note for in-place edits.";
|
|
463
|
-
}, {
|
|
464
459
|
readonly reason: "path_forbidden";
|
|
465
460
|
readonly thrownBy: "service";
|
|
466
461
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Forbidden;
|
|
@@ -470,8 +465,8 @@ export declare const writeToolDefinitions: (import("@cyanheads/mcp-ts-core").Too
|
|
|
470
465
|
readonly reason: "note_missing";
|
|
471
466
|
readonly thrownBy: "service";
|
|
472
467
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
473
|
-
readonly when: "
|
|
474
|
-
readonly recovery: "Verify the path with obsidian_list_notes
|
|
468
|
+
readonly when: "The vault path does not resolve to an existing note.";
|
|
469
|
+
readonly recovery: "Verify the path with obsidian_list_notes or use obsidian_search_notes to locate the note.";
|
|
475
470
|
}, {
|
|
476
471
|
readonly reason: "no_active_file";
|
|
477
472
|
readonly thrownBy: "service";
|
|
@@ -500,14 +495,20 @@ export declare const writeToolDefinitions: (import("@cyanheads/mcp-ts-core").Too
|
|
|
500
495
|
readonly reason: "section_target_missing";
|
|
501
496
|
readonly thrownBy: "service";
|
|
502
497
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
503
|
-
readonly when: "
|
|
504
|
-
readonly recovery: "Call obsidian_get_note with format document-map to discover available targets.";
|
|
498
|
+
readonly when: "The named heading/block/frontmatter field does not exist in the note. Use `obsidian_get_note` with `format: \"document-map\"` to discover available targets.";
|
|
499
|
+
readonly recovery: "Call obsidian_get_note with format document-map to discover the available targets.";
|
|
505
500
|
}, {
|
|
506
501
|
readonly reason: "ambiguous_section";
|
|
507
502
|
readonly thrownBy: "service";
|
|
508
503
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Conflict;
|
|
509
|
-
readonly when: "A bare heading leaf name matches more than one heading in the note, so the
|
|
510
|
-
readonly recovery: "Retry with
|
|
504
|
+
readonly when: "A bare heading leaf name matches more than one heading in the note, or the resolved full heading path occurs more than once, so the write target is undetermined.";
|
|
505
|
+
readonly recovery: "Retry with a distinct full Parent::Child heading path from `candidates` on the error data; when every candidate is the same path, rename the repeated headings first.";
|
|
506
|
+
}, {
|
|
507
|
+
readonly reason: "content_preexists";
|
|
508
|
+
readonly thrownBy: "service";
|
|
509
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
510
|
+
readonly when: "The supplied content already appears at the target — the patch was rejected to keep retries idempotent (the default).";
|
|
511
|
+
readonly recovery: "Pass `patchOptions.applyIfContentPreexists: true` to force-apply over preexisting content, or change the content to something not already present.";
|
|
511
512
|
}, {
|
|
512
513
|
readonly reason: "path_is_directory";
|
|
513
514
|
readonly thrownBy: "service";
|
|
@@ -550,7 +551,7 @@ export declare const writeToolDefinitions: (import("@cyanheads/mcp-ts-core").Too
|
|
|
550
551
|
json: "json";
|
|
551
552
|
markdown: "markdown";
|
|
552
553
|
}>>;
|
|
553
|
-
|
|
554
|
+
overwrite: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
554
555
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
555
556
|
path: import("zod").ZodString;
|
|
556
557
|
sectionTargeted: import("zod").ZodBoolean;
|
|
@@ -559,6 +560,11 @@ export declare const writeToolDefinitions: (import("@cyanheads/mcp-ts-core").Too
|
|
|
559
560
|
previousSizeInBytes: import("zod").ZodNumber;
|
|
560
561
|
currentSizeInBytes: import("zod").ZodNumber;
|
|
561
562
|
}, import("zod/v4/core").$strip>, readonly [{
|
|
563
|
+
readonly reason: "file_exists";
|
|
564
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Conflict;
|
|
565
|
+
readonly when: "Whole-file write was attempted against an existing note and `overwrite` was not set to `true`.";
|
|
566
|
+
readonly recovery: "Retry with overwrite true or use obsidian_patch_note for in-place edits.";
|
|
567
|
+
}, {
|
|
562
568
|
readonly reason: "path_forbidden";
|
|
563
569
|
readonly thrownBy: "service";
|
|
564
570
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Forbidden;
|
|
@@ -568,8 +574,8 @@ export declare const writeToolDefinitions: (import("@cyanheads/mcp-ts-core").Too
|
|
|
568
574
|
readonly reason: "note_missing";
|
|
569
575
|
readonly thrownBy: "service";
|
|
570
576
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
571
|
-
readonly when: "Section
|
|
572
|
-
readonly recovery: "Verify the path with obsidian_list_notes, or omit `section` to fall back to whole-file
|
|
577
|
+
readonly when: "Section replace targets a path that does not resolve to an existing note (PATCH requires the file to exist).";
|
|
578
|
+
readonly recovery: "Verify the path with obsidian_list_notes, or omit `section` to fall back to whole-file write (which creates the note when it is absent).";
|
|
573
579
|
}, {
|
|
574
580
|
readonly reason: "no_active_file";
|
|
575
581
|
readonly thrownBy: "service";
|
|
@@ -599,19 +605,13 @@ export declare const writeToolDefinitions: (import("@cyanheads/mcp-ts-core").Too
|
|
|
599
605
|
readonly thrownBy: "service";
|
|
600
606
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
601
607
|
readonly when: "`section` was provided but the named heading/block/frontmatter field does not exist in the note.";
|
|
602
|
-
readonly recovery: "Call obsidian_get_note with format document-map to discover available targets
|
|
608
|
+
readonly recovery: "Call obsidian_get_note with format document-map to discover available targets.";
|
|
603
609
|
}, {
|
|
604
610
|
readonly reason: "ambiguous_section";
|
|
605
611
|
readonly thrownBy: "service";
|
|
606
612
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Conflict;
|
|
607
|
-
readonly when: "A bare heading leaf name matches more than one heading in the note, so the
|
|
608
|
-
readonly recovery: "Retry with
|
|
609
|
-
}, {
|
|
610
|
-
readonly reason: "content_preexists";
|
|
611
|
-
readonly thrownBy: "service";
|
|
612
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
613
|
-
readonly when: "Section append where the supplied content already appears at the target — rejected to keep retries idempotent (the default for the section path).";
|
|
614
|
-
readonly recovery: "Change the content to something not already present at the target, or use obsidian_patch_note with `patchOptions.applyIfContentPreexists: true` if a duplicate is intended.";
|
|
613
|
+
readonly when: "A bare heading leaf name matches more than one heading in the note, or the resolved full heading path occurs more than once, so the replacement target is undetermined.";
|
|
614
|
+
readonly recovery: "Retry with a distinct full Parent::Child heading path from `candidates` on the error data; when every candidate is the same path, rename the repeated headings first.";
|
|
615
615
|
}, {
|
|
616
616
|
readonly reason: "path_is_directory";
|
|
617
617
|
readonly thrownBy: "service";
|
|
@@ -92,8 +92,8 @@ export declare const obsidianAppendToNote: import("@cyanheads/mcp-ts-core").Tool
|
|
|
92
92
|
readonly reason: "ambiguous_section";
|
|
93
93
|
readonly thrownBy: "service";
|
|
94
94
|
readonly code: JsonRpcErrorCode.Conflict;
|
|
95
|
-
readonly when: "A bare heading leaf name matches more than one heading in the note, so the append target is undetermined.";
|
|
96
|
-
readonly recovery: "Retry with
|
|
95
|
+
readonly when: "A bare heading leaf name matches more than one heading in the note, or the resolved full heading path occurs more than once, so the append target is undetermined.";
|
|
96
|
+
readonly recovery: "Retry with a distinct full Parent::Child heading path from `candidates` on the error data; when every candidate is the same path, rename the repeated headings first.";
|
|
97
97
|
}, {
|
|
98
98
|
readonly reason: "content_preexists";
|
|
99
99
|
readonly thrownBy: "service";
|
|
@@ -11,7 +11,7 @@ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
|
11
11
|
import { getObsidianService } from '../../../services/obsidian/obsidian-service.js';
|
|
12
12
|
import { ContentTypeSchema, SectionSchema, TargetSchema } from './_shared/schemas.js';
|
|
13
13
|
export const obsidianAppendToNote = tool('obsidian_append_to_note', {
|
|
14
|
-
description: 'Append content to a note. **Without `section`: appends to the end of the file, or creates the file if it does not exist (your content becomes the full file).** With `section`: appends to the end of that heading/block/frontmatter — use `obsidian_get_note` with `format: "document-map"` to discover available targets.
|
|
14
|
+
description: 'Append content to a note. **Without `section`: appends to the end of the file, or creates the file if it does not exist (your content becomes the full file).** With `section`: appends to the end of that heading/block/frontmatter — use `obsidian_get_note` with `format: "document-map"` to discover available targets. Name a heading by its full `Parent::Child` path as the document map lists it, or by a bare leaf name matched at any depth. A leaf shared by several headings is rejected with `ambiguous_section`, unless one of them has no parent heading, in which case the write targets that one; a full path that occurs more than once in the note is rejected with `ambiguous_section` too. For block-reference targets, content is concatenated adjacent to the block line without inserting a separator — include a leading newline in `content` if you want one. Set `createTargetIfMissing` to bring the target section into existence rather than failing when it does not exist.',
|
|
15
15
|
annotations: { destructiveHint: true },
|
|
16
16
|
input: z.object({
|
|
17
17
|
target: TargetSchema.describe('Where the note lives.'),
|
|
@@ -97,8 +97,8 @@ export const obsidianAppendToNote = tool('obsidian_append_to_note', {
|
|
|
97
97
|
reason: 'ambiguous_section',
|
|
98
98
|
thrownBy: 'service',
|
|
99
99
|
code: JsonRpcErrorCode.Conflict,
|
|
100
|
-
when: 'A bare heading leaf name matches more than one heading in the note, so the append target is undetermined.',
|
|
101
|
-
recovery: 'Retry with
|
|
100
|
+
when: 'A bare heading leaf name matches more than one heading in the note, or the resolved full heading path occurs more than once, so the append target is undetermined.',
|
|
101
|
+
recovery: 'Retry with a distinct full Parent::Child heading path from `candidates` on the error data; when every candidate is the same path, rename the repeated headings first.',
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
reason: 'content_preexists',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"obsidian-append-to-note.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/obsidian-append-to-note.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEtF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,yBAAyB,EAAE;IAClE,WAAW,EACT
|
|
1
|
+
{"version":3,"file":"obsidian-append-to-note.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/obsidian-append-to-note.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEtF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,yBAAyB,EAAE;IAClE,WAAW,EACT,48BAA48B;IAC98B,WAAW,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE;IACtC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC,uBAAuB,CAAC;QACtD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;QACxF,OAAO,EAAE,aAAa,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACxC,kGAAkG,CACnG;QACD,WAAW,EAAE,iBAAiB;QAC9B,qBAAqB,EAAE,CAAC;aACrB,OAAO,EAAE;aACT,OAAO,CAAC,KAAK,CAAC;aACd,QAAQ,CACP,qIAAqI,CACtI;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;Q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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"obsidian-get-note.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/obsidian-get-note.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAgB3E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsX1B,CAAC"}
|
|
@@ -82,7 +82,7 @@ export const obsidianGetNote = tool('obsidian_get_note', {
|
|
|
82
82
|
candidates: z
|
|
83
83
|
.array(z.string())
|
|
84
84
|
.optional()
|
|
85
|
-
.describe('Every full heading path sharing
|
|
85
|
+
.describe('Every full heading path `section.target` could name, in document order: each heading sharing a bare leaf name, or each repeat of a full path that occurs more than once in the note (the strings are then identical). Present only when more than one heading matched; the read still returns the first. Same field the write tools carry as `ambiguous_section` error data — re-issue with a distinct path from this list to pin the section.'),
|
|
86
86
|
valueText: z
|
|
87
87
|
.string()
|
|
88
88
|
.optional()
|
|
@@ -100,7 +100,7 @@ export const obsidianGetNote = tool('obsidian_get_note', {
|
|
|
100
100
|
notice: z
|
|
101
101
|
.string()
|
|
102
102
|
.optional()
|
|
103
|
-
.describe('Guidance when a
|
|
103
|
+
.describe('Guidance when a heading locator matched several headings — names the path that was read and points at `candidates` for the rest.'),
|
|
104
104
|
},
|
|
105
105
|
auth: ['tool:obsidian_get_note:read'],
|
|
106
106
|
errors: [
|
|
@@ -255,7 +255,8 @@ export const obsidianGetNote = tool('obsidian_get_note', {
|
|
|
255
255
|
}
|
|
256
256
|
const { candidates, sectionTarget, value } = extracted;
|
|
257
257
|
if (candidates) {
|
|
258
|
-
|
|
258
|
+
const repeatedPath = candidates.every((c) => c === sectionTarget);
|
|
259
|
+
ctx.enrich.notice(`Heading \`${input.section.target}\` is ambiguous — ${candidates.length} headings share that name; read \`${sectionTarget}\`. See \`candidates\` for the rest.${repeatedPath ? ' Every one has the same full path, so the write tools reject it with `ambiguous_section`.' : ''}`);
|
|
259
260
|
}
|
|
260
261
|
return {
|
|
261
262
|
result: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"obsidian-get-note.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/obsidian-get-note.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EACL,gBAAgB,EAChB,cAAc,GAEf,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAC3D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IAC5D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;CACjD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,mBAAmB,EAAE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AS;QACtB,IAAI,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACnD,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACtC,CAAC;QACD,IAAI,MAAM,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YACpD,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACH,SAAS,iBAAiB,CAAC,OAAe;IACxC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACxC,OAAO,KAAK;SACT,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CACf,OAAO,CAAC,CAAC,CAAC;QACR,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;QACzB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAC5D;SACA,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview obsidian_manage_tags — add/remove/list tags across both
|
|
3
3
|
* frontmatter (`tags:` array) and inline (`#tag`) syntax. The service layer
|
|
4
|
-
* reconciles both representations; inline detection
|
|
5
|
-
* spans,
|
|
4
|
+
* reconciles both representations; inline detection follows Obsidian's own
|
|
5
|
+
* reading — it skips code spans, link spans, HTML comments, math, and a `#`
|
|
6
|
+
* glued to the text before it rather than to whitespace, line start, or
|
|
7
|
+
* markup.
|
|
6
8
|
* @module mcp-server/tools/definitions/obsidian-manage-tags.tool
|
|
7
9
|
*/
|
|
8
10
|
import { z } from '@cyanheads/mcp-ts-core';
|