Commit Graph

18 Commits

Author SHA1 Message Date
Mauricio Wolff 071678e52a feat: preview MCP SDK v2 dual-era support 2026-08-15 11:11:46 +02:00
bitbonsai b10a5b2d7a feat: add read-only server mode 2026-08-09 11:18:53 +02:00
Mauricio Wolff cf92712ca5 fix: exit when stdio transport closes (#159)
StdioServerTransport only listens for stdin 'data'/'error'; it never
wires up 'end'/'close', so the process never learns when the client
disconnects. Hosts with no MCP lifecycle controls (e.g. Codex 0.146.x)
left orphaned processes accumulating with nothing to reap them.

Exit gracefully via server.close() on stdin EOF and on SIGTERM/SIGINT.
2026-07-30 13:24:50 +02:00
Mauricio Wolff cf7a5fa205 feat: extract createServer factory for library consumers (closes #84) 2026-05-25 21:49:13 +02:00
Mauricio Wolff f435b75f95 build: regenerate dist artifacts
Rebuild compiled dist outputs to match current server, filtering, frontmatter handling, and test sources for the v0.8.2 codebase.
2026-05-25 21:49:11 +02:00
Mauricio Wolff 464a1f40d7 feat: add confirmed binary-safe move_file tool 2026-05-25 21:49:09 +02:00
Mauricio Wolff 57b7d56add build: update dist artifacts for v0.8.1 2026-05-25 21:49:09 +02:00
Mauricio Wolff c23506f8a7 Bump version to 0.7.4 and update website changelog
- Version 0.7.4 includes get_vault_stats tool and improved error messages
- Fixed directory filtering in getVaultStats to skip system directories
2026-05-25 21:49:07 +02:00
Mauricio Wolff 62ebe503dd Add --version and --help CLI flags
- Implement --version/-v flag to display version number
- Implement --help/-h flag to show usage information
- Version now dynamically read from package.json
- Update error message to suggest --help for more info
2026-05-25 21:48:55 +02:00
Mauricio Wolff 38e9a16505 Add built files for v0.6.3 2026-05-25 21:48:55 +02:00
Mauricio Wolff 182deac629 Bump version to 0.6.1
## Changes

- Add comprehensive tests for patch_note feature (16 tests)
  - Single/multiple occurrence handling
  - Empty string validation
  - Special characters and whitespace preservation
  - Case sensitivity
  - Performance testing

- Add validation for empty oldString/newString in patchNote

- Reorganize test structure
  - Move tests from tests/ to src/ (co-location)
  - Merge filesystem, patch, and integration tests into src/filesystem.test.ts
  - Move frontmatter tests to src/frontmatter.test.ts

All 38 tests passing
2026-05-25 21:48:54 +02:00
Mauricio Wolff d3fcc42324 Add patch_note tool for efficient partial note updates
Introduces a new patch_note tool that allows replacing specific strings in notes without rewriting the entire file, reducing token usage and improving performance for small edits.

Features:
- String-based replacement with oldString/newString parameters
- Safety: fails if multiple matches found (unless replaceAll=true)
- Preserves frontmatter and file structure
- Returns match count and detailed success/error messages

Changes:
- Added PatchNoteParams and PatchNoteResult types
- Implemented patchNote() method in FileSystemService
- Added patch_note tool to MCP server
- Comprehensive test coverage (8 new tests)
- Bumped version to 0.6.0
2026-05-25 21:48:54 +02:00
Mauricio Wolff 9d52ecf6b9 Fix YAML frontmatter operations and add comprehensive tests
- Remove js-yaml dependency and use gray-matter for all YAML operations
- Fix write_note, update_frontmatter, and manage_tags YAML serialization errors
- Add comprehensive integration tests for all frontmatter operations
- Tests cover write_note with frontmatter, append/prepend modes, update operations
- Tests cover tag management (add, remove, list) and edge cases
- All 22 tests now passing including frontmatter validation
- Version bump to 0.5.4

Resolves: 'yaml.dump is not a function' error in all frontmatter tools
2026-05-25 21:48:53 +02:00
Mauricio Wolff 21879e8eb3 Fix list_directory to handle '.' path as root directory
- Normalize '.' path to empty string for root directory listing
- Ensure consistent behavior between '.', '/', and '' paths
- All now correctly return both files and directories from vault root
- Version bump to 0.5.3

Resolves issue where LLMs using '.' path only received files without directories.
2026-05-25 21:48:53 +02:00
Mauricio Wolff a071b48fb0 Fix package.json main field and executable permissions
- Change main field from server.ts to dist/server.js
- Add executable permission to compiled JavaScript file
- This resolves the 'env: bun: No such file or directory' error
- Version bump to 0.5.2
2026-05-25 21:48:53 +02:00
Mauricio Wolff 8167ce362d Bump version to 0.5.1
Prepare for npm publish with corrected Node.js compatibility.
2026-05-25 21:48:52 +02:00
Mauricio Wolff 848ce6367c Fix usage message in compiled JavaScript output
Update error message to show correct npx command instead of referencing server.ts file directly.
2026-05-25 21:48:52 +02:00
Mauricio Wolff 624ce511e6 Add TypeScript compilation for npm distribution
- Add build script using tsc with separate build configuration
- Update bin configuration to point to compiled JS files in dist/
- Include compiled JavaScript files in npm package
- Fix TypeScript strict mode errors for compilation
- Update .gitignore to include dist/ in version control for publishing
- Resolves Claude Desktop execution issues with direct TypeScript execution

This ensures the package works without requiring users to have tsx installed.
2026-05-25 21:48:52 +02:00