Skip to content

Conversation

xobotyi
Copy link
Member

@xobotyi xobotyi commented Jun 27, 2025

No description provided.

xobotyi added 6 commits June 17, 2025 22:50
- Add new MCP filesystem server package structure
- Fix package.json description and dependencies for filesystem operations
- Remove HTTP-related dependencies (minify-html, turndown)
- Add comprehensive filesystem type definitions
- Simplify index.ts server bootstrap
- Add development plan for 12 filesystem tools
- Mark package as private for development
…view

- Add statPath utility function for filesystem statistics
- Implement comprehensive test suite with memfs (14 tests passing, 1 skipped)
- Test coverage includes files, directories, error handling, and edge cases
- Skip symlink tests due to memfs inconsistencies
- Update package overview rule to match project standards
- Add memfs dependency for testing filesystem operations
- Add FileStatTool class for getting file/directory statistics
- Enhance statPath utility with ISO timestamps, 3-digit octal permissions, and uid/gid
- Update statPath tests to validate new enhanced fields
- Add expectISOTimestamp helper function for cleaner test validation
- Register stat tool in main filesystem server

The stat tool accepts absolute paths and returns comprehensive file information:
- File type (file/directory/symlink)
- Size (for files), target (for symlinks)
- ISO formatted timestamps (created/modified)
- 3-digit octal permissions with leading zeros
- User/group ownership (uid/gid)
- Path validation and error handling
- Register list-directory tool in main index
- Add ListDirectoryTool class with configuration
- Define input schema with recursive, filtering, and path options
- Add placeholder implementation with TODO comments for core logic
- Support for absolute/relative paths, recursive traversal, exclude patterns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant