
Obelisk
io.github.zachhannum由 GitHub 账号 zachhannum 发布v0.2.0更新于 Oct 24, 2026
Comment on a passage of an Obsidian note, and propose suggested edits.
概览
让助手读取和写入 Obsidian 笔记中的行内评论与建议修改,使模型可以审阅笔记或回应留给它的评论。
- 可以做什么
- Obelisk 把针对 Obsidian 笔记中引用段落的评论存放在笔记自身的 frontmatter 里,MCP 服务器则把同一批评论开放给 Obsidian 之外的智能体。模型可以列出笔记的评论、按精确引用添加评论,并以 GitHub 风格的 suggestion 代码块提出替换内容,供人一键应用。由模型写入的评论会带有标记,并归入同一次审阅批次。写入只涉及 frontmatter,笔记正文保持逐字节不变。
- 适用场景
- 当笔记存放在 Obsidian 库中,且你希望助手把审阅意见写进侧边栏,或读取要求修改的评论、完成修改并解决它们时,适合使用。也适合希望评论能随文件一起通过同步、git 和导出流转的库。
- 运行要求
- 需要本地 Node.js 运行环境;该包以 obelisk-mcp 之名发布在 npm 上,通常通过 npx 运行。智能体以 stdio 方式启动该进程,因此没有端口也没有常驻服务。它作用于智能体当前所在的库,也可通过绝对路径访问其他库中的笔记。Obsidian 插件是另一套东西,需从社区插件目录安装。未声明任何账号、密钥或环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 Obelisk,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
```suggestionblock 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
obeliskkey. 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
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.
For an agent that speaks MCP, register the server with it:
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:
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
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:
License
MIT
来源:README.md,提交 81828dc
工具
0版本历史
1- v0.2.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分