About Stashbase
Stashbase is an MCP server published by liliu-z in the Browser category: open-source local AI workspace for recurring work. Keep your context, notes, and instructions in local files, ready for Claude Code, Codex, and Antigravity. Conduid read 11 tools from its source: create_interactive_note, create_project, delete_file, edit_file, list_directory, list_projects and 5 more. No package is published for it, so it installs from a source checkout.
The repository has 1.4K stars and 48 forks, is licensed Apache-2.0, and its last commit was on 1 Dec 2026. The latest release is v2.19.2 (26 Nov 2026): Writing and documents Find every open document in the tab overflow list, with project names distinguishing identical paths. It follows v2.19.1 (25 Nov 2026), and the 5 most recent releases go back to v2.18.12 (10 Nov 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include browser.
Install
git clone https://github.com/liliu-z/stashbaseTools (11)
create_interactive_noteCreate a blank interactive HTML note in its own new directory beneath an existing project directory. Creates index.html and assets/note.json with title/body editing and automatic saving, and returns their absolute paths. An omitted name chooses a free Untitled name; an explicit existing name is refused without overwriting. Read and customize the generated files with read_file/edit_file. Keep external resources under this note’s assets/ and reference them relatively; filenames, subdirectories and JSON structures are freely editable. HTML data uses stashbase.data.load("./assets/name.json"), update(value), and save(); update/save require user interaction. Use write_file for ordinary Markdown text notes. This tool creates the blank starter, not a template catalog.| Parameter | Type | Description |
|---|---|---|
| name | string | Optional name for the new note directory, without path separators. |
| path * | string | Absolute existing parent directory inside the authorized project. |
create_projectCreate a NEW project folder and register it in StashBase so it appears in Recent immediately. Use this when the user wants a fresh working context (a new project/topic). `name` is a single folder name (no slashes). By default the project is created under `folder_home`; pass `location` only when the user names an existing directory inside the folder home or inside a project folder. Creation does not move the current chat. Open the created project to start a chat there; external clients can select its returned `path`.| Parameter | Type | Description |
|---|---|---|
| location | string | Optional absolute path of an existing directory to create the project in. Must be the folder home, inside it, or inside a project folder. Omit for the default folder home. |
| name * | string | New project folder name — one path segment, cross-platform safe. |
delete_fileDelete an ordinary project file by exact absolute path, regardless of extension or contents, including code, configuration, and binary files. Requires deletion authorization; directories and protected paths are refused. Also removes note bundles or PDF/image derived artifacts owned by that file, and removes its MFS search projection.| Parameter | Type | Description |
|---|---|---|
| path * | string | Absolute file path under one of your folders. |
edit_filePatch a UTF-8 text file, including Markdown, HTML, JSON, source code, configuration, dotfiles and extensionless files, by exact string replacement. Preserve the exact path. Binary files and invalid UTF-8 are refused. By default `old_text` must match exactly once; set `replace_all` for global replacement. Empty `old_text` is allowed only for an existing empty file. Changes are saved directly; the reader can review a built-in Chat turn afterwards with Undo/Keep.| Parameter | Type | Description |
|---|---|---|
| baseVersion | string | Optional version from read_file for optimistic conflict checks. |
| new_text * | string | Literal replacement text. In JavaScript wrappers, use String.raw or escape every Markdown/LaTeX backslash. |
| old_text * | string | Exact text to replace. |
| path * | string | Absolute file path under one of your folders. |
| replace_all | boolean | Replace every occurrence instead of requiring a single match. |
list_directoryList visible files and folders within one registered project. Pass an absolute folder/subfolder path to list its immediate contents. Paths are absolute POSIX paths. Hidden app-maintained derived notes and bundle folders are not surfaced.| Parameter | Type | Description |
|---|---|---|
| path * | string | Required absolute directory path inside one registered project. |
list_projectsReturn StashBase project locations as `{folder_home, folders}`, where `folder_home` is the default new-folder location and `folders` lists "Your Folders", each with an ABSOLUTE `path` (the identity the file tools and search_project use), a display `name`, and the embedder provider. Folders can live anywhere on disk. Sandboxed runtime filesystem tools may not be able to see these host paths; the StashBase file tools operate on them.move_fileRename or move a file within the same folder. Keeps note attachment bundles together, regenerates PDF/image searchable text when needed, optionally cascades Markdown/HTML links, and replaces the old MFS document identity. The new identity may be embedded again.| Parameter | Type | Description |
|---|---|---|
| cascade | boolean | Update links that point at the moved file. Defaults true. |
| new_path * | string | New absolute file path in the same folder. |
| path * | string | Existing absolute file path under one of your folders. |
read_fileRead a file from StashBase by absolute path (for example `/Users/me/notes/topic/note.md`). Markdown, HTML, JSON, and UTF-8 plain text return source text, including source code, configuration, dotfiles and extensionless files. PDFs and DOCX return current prepared text. XLSX workbooks return their visible worksheets as Markdown tables with sheet names, column letters and row numbers; formula cells show the result saved in the file and are not recalculated, and any rows or columns left out are stated. Images are visible in `list_directory` and searchable through OCR evidence, but are not returned as bytes. Files omitted from `list_directory`, including code and dotfiles, can be read by their exact path. Binary files and invalid UTF-8 are refused. Use `offset` and `limit` to read a long file one window at a time instead of spending your context on the whole file. A windowed response sets `partial: true`, reports `totalLines`, and returns `nextOffset` until the window reaches the end. It also omits `version`, so read the whole file before any `baseVersion` write. A source above the 8 MiB read ceiling is not served by this tool in any window.| Parameter | Type | Description |
|---|---|---|
| file_path | string | Alias for path; accepted for Claude Read-style calls. |
| limit | integer | Optional maximum number of lines to return. Defaults to the rest of the file. |
| offset | integer | Optional 1-based line to start at. Defaults to the first line. |
| path | string | Absolute file path under one of your folders. |
reindexReconcile search data with the files currently on disk, then report index health. StashBase file tools update the index themselves when possible; call this after bulk external changes or when a file tool returns an index warning. You do NOT need to say what changed: the sweep offers every admitted text projection to MFS, which identifies unchanged content, and removes identities missing from disk. A rename is reported as an old removal plus a new add or update. Requires `folder`, the absolute root of one registered project. Only that folder is traversed. Unchanged content spends no embedding tokens; renamed documents may be embedded again under their new MFS identity. Returns `{folders: [{folder, added, modified, removed, failed}], total, indexed, pendingCount, pending, upToDate}` — the totals come from a same-project index-status check run after the sweep.| Parameter | Type | Description |
|---|---|---|
| folder * | string | Absolute folder root from list_projects to reconcile. Required; only this project is reconciled. |
search_projectSearch one registered project, including current prepared text for PDFs, DOCX, and images. Omit `mode` to use hybrid retrieval when an embedding key is configured, or grep otherwise. Two explicit modes: `semantic` searches by meaning — hybrid (vector + full-text) retrieval that needs an embedding provider set up in StashBase; `keyword` is exact literal search through the local MFS text index for identifiers, error codes, config keys, or quoted phrases that meaning-based matching may blur, and it works without any setup. Explicit `semantic` requires a key and reports configuration or provider errors without silently changing strategy. The response `mode` reports the strategy used in the same wire vocabulary. Every request searches one Folder. A Folder Chat may omit `folder` to use its bound Folder; External clients must pass an absolute root from `list_projects` as `folder`. A bound Chat cannot override its project. Only external clients can select another registered project per request. The response `folder` reports the effective root. For finer control, `path_prefix` restricts hits to sources starting with that prefix (e.g. "/Users/me/notes/transcripts/"). Each hit returns the absolute file path, the matching content, optional heading and source line range, and (in `semantic` mode) a fused relevance score. PDF hits include a `read_hint`; use `read_file` on the PDF path to get extracted Markdown. Read full text documents with `read_file`.| Parameter | Type | Description |
|---|---|---|
| case_strict | boolean | Keyword mode only: match case exactly. Default is smart-case. |
| folder | string | Absolute folder root from list_projects (e.g. "/Users/me/notes"). Only a Folder Chat may omit it and use its bound Folder. |
| mode | string | Omit to select from current key configuration. "semantic" searches by meaning and needs an embedding provider set up in StashBase. "keyword" is exact literal matching over source and prepared text and works without setup. |
| path_prefix | string | Optional absolute path prefix (e.g. "/Users/me/notes/transcripts/"). Must remain inside the effective folder scope. Matches any chunk whose source starts with the prefix. |
| query * | string | Natural-language query for `semantic` mode (search by meaning) or literal text for `keyword` mode. |
| top_k | integer | Maximum number of search hits to return (1-${MAX_TOP_K}). Default ${DEFAULT_TOP_K}. |
| types | array | Optional source file categories. Omit for all types; combine categories to search notes, PDFs, images, or DOCX files. |
| whole_word | boolean | Keyword mode only: match whole words, so "agent" does not match "agents". |
write_fileCreate or overwrite a UTF-8 text file, including Markdown, HTML, JSON, source code, configuration, dotfiles such as .env, and extensionless files. Preserve the exact requested path; never append .md or change the extension to satisfy a format restriction. Creates parent folders as needed and writes atomically with version checks. Binary files and invalid UTF-8 are refused. Only search-eligible document formats update the search projection.| Parameter | Type | Description |
|---|---|---|
| baseVersion | string | Optional version from read_file for optimistic conflict checks. |
| content * | string | Full literal file content. In JavaScript wrappers, use String.raw or escape every Markdown/LaTeX backslash. |
| path * | string | Absolute file path under one of your folders. |
Security checks
Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 878 words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 878 words, fetched 4 days ago. The original in the repository is authoritative.
Read full README