Obelisk

io.github.zachhannum由 GitHub 帳號 zachhannum 發布v0.2.0更新於 Oct 24, 2026

Comment on a passage of an Obsidian note, and propose suggested edits.

概覽

AI 產生的概覽

讓助理讀取與寫入 Obsidian 筆記中的行內留言與建議修改,使模型能審閱筆記或回覆留給它的留言。

可以做什麼
Obelisk 把針對 Obsidian 筆記中引用段落的留言存放在筆記本身的 frontmatter 裡,MCP 伺服器則把同一批留言開放給 Obsidian 之外的代理程式。模型可以列出筆記的留言、依精確引用新增留言,並以 GitHub 風格的 suggestion 程式碼區塊提出替換內容,供人一鍵套用。由模型寫入的留言會加上標記,並歸入同一次審閱批次。寫入只涉及 frontmatter,筆記本文維持逐位元組不變。
適用情境
當筆記存放在 Obsidian 儲存庫中,且你希望助理把審閱意見寫進側邊欄,或讀取要求修改的留言、完成修改並解決它們時,適合使用。也適合希望留言能隨檔案一起透過同步、git 與匯出流轉的儲存庫。
執行需求
需要本機的 Node.js 執行環境;該套件以 obelisk-mcp 之名發佈於 npm,通常透過 npx 執行。代理程式以 stdio 方式啟動該行程,因此沒有連接埠也沒有常駐服務。它作用於代理程式目前所在的儲存庫,也可透過絕對路徑存取其他儲存庫中的筆記。Obsidian 外掛是另一套東西,需從社群外掛目錄安裝。未宣告任何帳號、金鑰或環境變數。
安裝前請注意
此伺服器會寫入筆記檔案:新增留言,並可套用建議修改;寫入前會重新讀取檔案,若檔案已被改動則拒絕寫入。若留言寫下後底層文字發生變化,套用建議會被拒絕。定位依賴精確引用,引用不對就不會寫入任何內容。專案自稱處於早期階段,尚未在大型儲存庫上驗證過。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Obelisk,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Obelisk

Inline comments and GitHub-style suggested edits for Obsidian.

Select a passage, leave a comment on it, and optionally propose a replacement that can be applied with one click. Comments are stored in the note's own frontmatter, so they travel with the file through sync, git, export and rename.

An obelus (†) was the mark ancient editors drew in the margin of a manuscript to say: this passage is disputed.

Status

Early. Anchoring, decoration, the sidebar, suggested edits and the agent integration are implemented. The plugin is in the Obsidian community plugin directory, and the CLI and the MCP server are on npm as obelisk-mcp. None of it has been exercised against a large vault.

Install

Search for Obelisk in Settings → Community plugins → Browse, install it, and enable it. Updates come from the same panel.

The plugin can also be added via the Add to Obsidian button in its directory listing.

Features

  • Comment on any passage. Select text, right-click, Add comment.
  • Markdown everywhere. Comments and replies are ordinary markdown, with a Write/Preview pair while you type. Links, lists, callouts, embeds and math render in the sidebar exactly as they would in a note.
  • Suggested edits. A proposal is a fenced ```suggestion block inside the comment, the way GitHub does it. It renders as a diff against the quoted passage with an Apply button, so one comment can explain itself and propose a change, and a reply can offer a counter-proposal. Applying is refused if the underlying text has changed since. It also resolves the comment, and Reopen is there if the comment asked something the edit did not answer.
  • Sidebar. All of a note's comments in document order, or newest first from the sort toggle. Click one to scroll the editor to it. Chips filter to open comments, to comments carrying a suggestion, or to one agent's review pass. Resolved comments stay in the list, grayed rather than hidden, since they are still highlighted in the note.
  • In-text highlighting. Commented passages are highlighted, with a † marker that opens the comment in the sidebar.
  • Stored in frontmatter. Plain YAML under an obelisk key. Readable, diffable, portable.
  • Survives editing. A comment is anchored to the text it quotes, so it keeps up with edits anywhere else in the note, including ones made outside Obsidian. Edit or delete the quoted passage itself and the comment detaches: flagged in the sidebar, highlighting nothing, never moved onto a different passage and never dropped. Restore the text and it reattaches. Resolved comments are exempt from the flag, because a resolved comment usually detaches when the edit it asked for is made.
  • The editor you already use. Comments are written in Obsidian's own markdown editor, so Cmd+B, list continuation, [[ autocompletion and live preview work in a comment exactly as they do in a note.
  • Threaded replies. On any comment, stored alongside it, and markdown all the way down.
  • Editable. Rewrite a comment or a reply in the same composer that wrote it, suggestion button and all, from the card's Edit button or by right-clicking the passage. Edited bodies are marked as such. The anchor is left alone, so changing what you said never changes what you said it about.
  • Deletable. A whole comment from the card's Delete, or a single reply from the trash icon in its header, so striking one remark out of a thread does not take the conversation with it. Both offer an undo rather than a confirmation dialog.
  • Open to agents. A command-line tool and an MCP server read and write the same comments from outside Obsidian, so a model can review a note into the sidebar, or answer the comments left for it. Its comments are badged, and a whole review pass is one chip in the header with a dismiss all on it. See below.

Data format

yaml
---obelisk:  - id: cq7fk2m9x    author: zach    created: 2026-08-29T14:02:11.000Z    body: |-      This paragraph does two things at once.
      ```suggestion      The horse bolted.      ```    anchor:      from: { line: 12, col: 0 }      to: { line: 12, col: 47 }      quote: The horse, which had been standing there, bolted.---

A comment is one piece of markdown. A proposed edit is a ```suggestion fenced block inside it, whose content replaces exactly the anchored range when applied, so one comment can hold prose, a link and a proposal at once.

The quote is what a comment is anchored by. The line/column range records where the passage was when the comment was written. It orders the sidebar and breaks ties when a quote appears twice, and is never rewritten. Lines are counted from the first line after the frontmatter block, so adding a comment never invalidates the others.

A comment written by a model carries one more key, origin, holding the model and an id shared by every comment in that review pass. Its absence means a person wrote it, so nothing already in a vault needs migrating.

Agents

The same comments, from outside Obsidian. A model reviews a note and its remarks appear in the sidebar of the note you already have open. Or you leave comments asking for things and a model reads them, makes the edits, and resolves them.

bash
npm install -g obelisk-mcp            # puts `obelisk` and `obelisk-mcp` on PATH
obelisk list note.mdobelisk comment note.md --quote "The horse, which had been standing there, bolted." \  --body "Two clauses fighting over one sentence." --run r7k2mq

For an agent that speaks MCP, register the server with it:

bash
claude mcp add obelisk --scope user -- npx -y obelisk-mcp

One registration covers every vault: the tools work on whichever vault the agent is running in, and an absolute path reaches a note in one it is not. The server is listed in the official MCP registry as io.github.zachhannum/obelisk for a client that installs from there.

The agent starts it. It speaks MCP over stdio: the agent spawns a process when a session opens and kills it when the session ends, so there is no port and no daemon. One process per session is also what makes a session's comments share one run chip in the sidebar. A session keeps the process it spawned, so a new version of the package arrives at the next one. To take it sooner, reconnect from /mcp.

To check the registration, claude mcp list, or /mcp inside a session. To check the server itself with no agent in the way:

bash
printf '%s\n' \  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"smoke","version":"0"}}}' \  '{"jsonrpc":"2.0","method":"notifications/initialized"}' \  '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \  | npx -y obelisk-mcp

That prints the handshake and then the four tools. A server that fails this fails the same way for an agent.

For an agent that does not speak MCP, paste docs/agents-fragment.md into the vault's AGENTS.md or CLAUDE.md.

The one rule worth knowing: the quote is the anchor. A line number is never one. A model asked for a line produces a plausible wrong number, which attaches a comment to the wrong paragraph without looking like an error, so --near-line only picks between identical quotes and takes a number copied out of obelisk list. --quote has to appear in the note character for character, and if it does not, or appears twice, nothing is written and the reason is printed. obelisk list prints the body numbered so the exact text is there to copy.

Writes are frontmatter-only and leave the body byte-identical, so they are safe while the note is open in Obsidian. A write also re-reads the file first and refuses if it changed underneath.

Development

bash
npm installnpm run dev      # watch build, plugin onlynpm run build    # typecheck, then main.js plus dist/cli.mjs and dist/mcp.mjs

src/core/ is the half that does not import Obsidian: the model, the anchor arithmetic, the YAML and the four verbs. The plugin, the CLI and the MCP server are three front ends over it.

site/ is the documentation site, an Astro project of its own with its own npm install. It is not part of npm run build.

Symlink the repo into a test vault to try it:

bash
ln -s "$PWD" /path/to/vault/.obsidian/plugins/obelisk

License

MIT

來源:README.md,提交 81828dc

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分