list_files_in_vault
List all files in the vault.
無需輸入參數。

io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 3, 2026
List, read, search, and edit markdown notes in a local vault directory.
本機 stdio MCP 伺服器,讓助理列出、讀取、搜尋、附加、替換與刪除磁碟上筆記庫中的 markdown 筆記。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
參照 儲存庫 中的啟動說明。
vaultnotes is a small set of tools for working with a vault of notes stored as plain files in a folder on your own disk: list what is in the vault, read a note, search across the markdown files, and append to, patch, or delete a note. It runs from the command line or as an MCP server for agents.
Local mode. vaultnotes works directly on a local directory. It
does not need a running note-taking application or a plugin API: point
it at the folder that holds your notes and every tool operates on the
files there. Paths are always vault-relative, and anything that would
resolve outside the vault — .. escapes, absolute paths elsewhere,
symlinks pointing out — is refused before a file is touched.
Or run the container image:
The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
The vault directory is resolved in this order:
--vault <dir> flag on the command line,VAULTNOTES_DIR environment variable,Exit codes: 0 on success, 1 when an operation fails (the error
names the problem), 2 for usage errors.
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
MCP client configuration (set the vault with the environment):
The server starts and lists its tools even when no vault has been configured yet; the vault is resolved per call and a missing vault produces a tool error rather than a crash.
A note on patch_content: targeting here is exact-text — the target
is the literal passage to replace, not a heading name or a block
reference. That keeps a patch unambiguous: it either finds the exact
text once and replaces it, or it fails and changes nothing.
MIT — see LICENSE.
來源:README.md,提交 570a7bc
List all files in the vault.
無需輸入參數。
List all files in a specific directory of the vault.
dirpath必填Get the contents of a file in the vault.
filepath必填Search for a query across the markdown files in the vault.
query必填Append content to a file in the vault, creating the file if it does not exist.
content必填filepath必填Replace the first occurrence of a target text in a vault file with new content.
target必填content必填filepath必填Delete a file from the vault.
target_filepath必填已滿足適用檢查項的 90%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
npx @reneturcios/vaultnotes list --vault ~/notesdocker run -i ghcr.io/cloudcorprecords/vaultnotesvaultnotes list --vault ~/notes # every file in the vaultvaultnotes list-dir projects --vault ~/notes # files under one directoryvaultnotes read projects/alpha.md --vault ~/notesvaultnotes search "launch checklist" --vault ~/notesvaultnotes append inbox.md "Call Sam on Tuesday." --vault ~/notesvaultnotes patch inbox.md "Tuesday" "Wednesday" --vault ~/notesvaultnotes delete drafts/old.md --vault ~/notes
vaultnotes --versionnpx -y @reneturcios/vaultnotes mcp{ "mcpServers": { "vaultnotes": { "command": "npx", "args": ["-y", "@reneturcios/vaultnotes", "mcp"], "env": { "VAULTNOTES_DIR": "/path/to/your/notes" } } }}npm installnpm run build # tsc -> dist/npm test # node test runner over test/*.test.ts, real fs in temp dirs, no networknpm run dev # run the CLI from source via tsx