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