Provides comprehensive Git repository management including initialization, cloning, staging, commits, branch operations, push/pull, and commit history inspection.
Enables GitHub integration through CLI for creating pull requests and managing repositories.
Supports Mercurial version control system integration for repository synchronization.
AI FileSystem MCP v2.0 ๐
AI-optimized Model Context Protocol (MCP) server for intelligent file system operations with 10 major improvements!
๐ What's New in v2.0
1. Performance Improvements โก
Smart Caching: LRU cache with dynamic TTL based on file size
Parallel Processing: Worker threads for bulk operations
Stream API: Efficient handling of large files
2. Advanced Diff & Comparison ๐
Smart Diff: Compare files with unified, side-by-side, or inline formats
3-way Merge: Intelligent conflict resolution
File Comparison: Binary comparison with hash verification
3. Compression & Archive Management ๐ฆ
Multiple Formats: ZIP, TAR, TAR.GZ support
Batch Compression: Compress multiple files/directories
Smart Extraction: Auto-detect archive format
4. Enhanced Search Capabilities ๐
Date-based Search: Find files by creation/modification date
Size-based Search: Search files by size range
Fuzzy Search: Find files with similar names
Semantic Search: Natural language file search
5. Code Quality & Refactoring ๐ ๏ธ
Refactoring Suggestions: AI-powered code improvements
Auto Formatting: Project-wide code formatting
Code Quality Metrics: Complexity, maintainability scores
Duplicate Detection: Find and remove code duplication
6. Security Features ๐
File Encryption: AES-256 encryption with password
Secret Scanning: Detect hardcoded credentials
Security Audit: Comprehensive security report
Permission Management: Safe permission changes
Shell Execution: Secure command execution with validation (NEW!)
7. Batch Operations ๐
Bulk Processing: Rename, move, copy, delete in batch
Pattern Matching: Operations based on file patterns
Transaction Support: Atomic multi-file operations
Progress Tracking: Real-time operation progress
8. Integration & Sync ๐
Cloud Storage: S3, GCS synchronization
Multi-VCS Support: Git, SVN, Mercurial
Auto-commit Rules: Pattern-based automatic commits
Remote FS Mount: SSHFS, NFS, SMB support
9. Monitoring & Analytics ๐
Performance Metrics: Operation timing and statistics
Error Analysis: Detailed error patterns and recovery
System Stats: Disk usage, I/O monitoring
Operation History: Complete audit trail
10. Enhanced Error Handling ๐จ
Smart Recovery: Automatic error recovery suggestions
Did You Mean: File path suggestions
Permission Hints: Solutions for permission issues
Detailed Context: Rich error information
๐ฏ Language-Specific Features (NEW in v2.2!)
Enhanced Code Analysis ๐ฌ
The system now provides deep language-specific analysis for multiple programming languages:
Python ๐
Decorators: Analyze function/class decorators with parameters
Data Classes: Extract fields and types from
@dataclassEnums: Parse enum classes and their values
Type Hints: Full support for Python type annotations
Java โ
Annotations: Parse all Java annotations with parameters
Interfaces: Extract interface methods and properties
Enums: Analyze enum types with constructors
Go ๐น
Interfaces: Parse Go interfaces and their method signatures
Struct Tags: Analyze struct field tags
Embedded Types: Handle interface composition
Rust ๐ฆ
Traits: Full trait analysis with associated types
Macros: Detect and categorize macro definitions
Enums: Parse complex enums with variants
Swift ๐ฆ
Protocols: Analyze protocol requirements
Extensions: Track type extensions and their methods
Enums: Parse enums with associated values and raw types
Generics: Extract generic parameters and constraints
Kotlin ๐ฏ
Data Classes: Parse data class fields with types
Sealed Classes: Track sealed class hierarchies
Annotations: Full annotation support
Interfaces: Analyze interface methods and properties
Scala ๐ง
Traits: Analyze traits and mixins
Case Classes: Parse case class parameters
Sealed Traits: Track ADT hierarchies
Elixir ๐ง
Behaviours: Parse behaviour callbacks
Protocols: Analyze protocol definitions
Macros: Detect macro definitions
Code Modification Support ๐
Extended code modification capabilities beyond JavaScript/TypeScript:
Supported Languages for Modification:
โ JavaScript/TypeScript: Full AST-based modifications
โ Python: Text-based intelligent modifications
โ Java: Smart pattern-based updates
โ Go: Structure-aware modifications
โ Rust: Safe code transformations
โ Swift: Protocol-oriented updates
โ Kotlin: Null-safe modifications
Modification Types:
Symbol Renaming: Rename functions, classes, variables
Import Management: Add/remove imports intelligently
Function Updates: Replace or add functions
Property Addition: Add class/struct properties
Pattern Replacement: Advanced regex-based updates
Core Features (Enhanced)
Intelligent File Operations
Cached Reading: Read files with smart caching
Safe Writing: Automatic backups before overwrites
Pattern Search: Advanced glob and regex patterns
Content Search: Full-text search with context
Code Intelligence
AST Analysis: Deep code structure understanding
Smart Modifications: Safe code transformations
Dependency Analysis: Project dependency graphs
Import Management: Automatic import optimization
Version Control (Enhanced in v2.1.1) ๐
Git Repository Management:
git_init: Initialize new repositories (regular or bare)git_clone: Clone repositories from URLs
Staging & Commits:
git_add: Stage files or all changesgit_commit: Commit with messagesgit_status: Check repository status
Branch Operations:
git_branch: List, create, delete, checkout branchesgit_checkout: Switch between branchesgit_merge: Merge branches (coming soon)
Remote Operations:
git_push: Push to remote repositoriesgit_pull: Pull from remote repositoriesgit_remote: Manage remotes (coming soon)
History & Inspection:
git_log: View commit historygit_diff: View changes (coming soon)
GitHub Integration:
github_create_pr: Create pull requests via GitHub CLIgithub_create_repo: Create GitHub repositories (coming soon)github_list_prs: List pull requests (coming soon)
Advanced Git Features:
git_stash: Stash changes (coming soon)git_rebase: Rebase branches (coming soon)git_tag: Tag management (coming soon)
Installation
Configuration
Add to your Claude Desktop configuration:
New Usage Examples
Language-Specific Analysis
Code Modification (Multi-Language)
Smart Diff
File Compression
Semantic Search
Security Scan
Batch Operations
Code Refactoring
File Encryption
Shell Execution (Enhanced!) ๐
Full Control with execute_shell:
Quick Execution with shell (NEW!):
Git Operations (New!)
Performance Benchmarks
Cache Hit Rate: Up to 90% for frequently accessed files
Batch Operations: 10x faster than sequential processing
Large File Handling: Stream processing for files >100MB
Search Performance: Indexed search 50x faster
Security Best Practices
Always scan for secrets before committing code
Use encryption for sensitive files
Regular security audits of your codebase
Permission validation before system operations
Sandboxed operations for untrusted paths
Advanced Configuration
Cache Settings
Monitoring Setup
Supported Languages
Analysis Support (Full)
JavaScript/TypeScript (.js, .jsx, .ts, .tsx, .mjs, .cjs)
Python (.py, .pyw)
Java (.java)
Go (.go)
Rust (.rs)
Swift (.swift)
Kotlin (.kt, .kts)
Scala (.scala)
Elixir (.ex, .exs)
Ruby (.rb)
PHP (.php)
C/C++ (.c, .cpp, .cc, .cxx)
C# (.cs)
Modification Support
JavaScript/TypeScript (AST-based)
Python (Pattern-based)
Java (Pattern-based)
Go (Pattern-based)
Rust (Pattern-based)
Swift (Pattern-based)
Kotlin (Pattern-based)
Troubleshooting
Common Issues
Permission Denied
Check file permissions with
get_file_metadataUse
change_permissionswith appropriate valuesRun security audit to identify issues
Large File Performance
Enable streaming for files >10MB
Use compression for archival
Consider cloud sync for backup
Search Not Finding Files
Try fuzzy search with lower threshold
Use semantic search for natural queries
Check file patterns and exclusions
Code Analysis Issues
Ensure file has proper extension
Check for syntax errors in code
Use language-specific analyzers
Contributing
We welcome contributions! Areas of focus:
Performance optimizations
New cloud storage integrations
Additional security patterns
Language-specific refactoring rules
More language analyzers and modifiers
Roadmap ๐บ๏ธ
โ Phase 1: Command Pattern (Complete)
Migrated all 39 commands to Command Pattern
Removed monolithic switch statement
Improved code organization and testability
โ Phase 2: Language Support (Complete in v2.2)
Added language-specific analyzers for 9+ languages
Extended code modification to 7 languages
Deep analysis of language features
๐ Phase 3: Service Architecture (In Planning)
Decompose FileSystemManager into 10 services
Implement dependency injection
Add Zod for runtime type validation
Unified error handling system
๐ Phase 4: Performance Optimization (Future)
Event-based file watching (100x latency improvement)
Stream processing for large files (20x memory efficiency)
Worker thread pool for parallel operations (6x speed improvement)
Smart caching and memory management
See REFACTORING.md for detailed progress.
Core Commands
Shell Commands ๐
execute_shell- Execute shell commands with multi-level security controlsThree security levels: strict, moderate (default), permissive
Full control over execution environment
Support for timeout, environment variables, working directory
shell- Quick shell command execution (always permissive mode)Simple syntax: just pass the full command as a string
Perfect for development tasks and quick commands
Example:
shell cmd="git status --short"
Security Commands
scan_secrets- Scan directory for hardcoded secretsencrypt_file- Encrypt files with passworddecrypt_file- Decrypt encrypted filessecurity_audit- Perform security audit on directory
Changelog
v2.3.2 (2025-05-31) - New Shell Commands! ๐
๐ New :
Quick and easy shell execution
Always runs in permissive mode
Simple syntax:
shell cmd="your command"Perfect for development workflows
๐ Enhanced :
Now properly registered as MCP command
Improved error messages and hints
Better Node.js tool detection
๐ Documentation:
Added examples for both shell commands
Updated Core Commands section
Clear usage instructions
v2.3.1 (2025-05-30) - Enhanced Shell Security! ๐
๐ฏ Multi-level Security System:
Three security levels: strict, moderate, permissive
Development-friendly "moderate" level
Customizable security policies
๐ Improved Developer Experience:
Automatic Node.js tool path detection
Better error messages with hints
Support for npm, npx, yarn, pnpm out of the box
๐ก๏ธ Smart Security:
Context-aware command validation
Whitelist for development tools
Temporary permission elevation
๐ Documentation:
Comprehensive shell security guide
Build and run guide
Migration instructions
v2.2.0 (2025-01-27) - Language Intelligence Update! ๐ง
๐ฏ Language-Specific Features:
Added analyzers for Python, Java, Go, Rust, Swift, Kotlin, Scala, Elixir
Deep analysis of decorators, annotations, interfaces, traits, protocols
Support for data classes, sealed classes, enums, generics
๐ Extended Code Modification:
Code modification now supports 7 languages beyond JS/TS
Pattern-based intelligent modifications
Safe symbol renaming, import management, function updates
๐ฌ Enhanced Code Analysis:
Language-specific feature extraction
Better understanding of code structure
Support for 13+ programming languages
๐ Documentation:
Added comprehensive language feature documentation
New usage examples for language-specific features
v2.1.1 (2025-01-26) - Enhanced Git Integration! ๐
๐ฏ New Git Commands Added:
Core Git operations: init, add, push, pull, clone
Branch management: create, delete, switch, list
GitHub integration: create pull requests
History viewing: commit logs
๐ง Improved GitIntegration Class:
Extended with 25+ new methods
GitHub CLI integration
Better error handling
๐ Documentation Updates:
Added Git command examples
Updated feature list
๐๏ธ Project Structure Improvements:
Reorganized files into logical directories
Cleaned up test structure
Updated package.json scripts
v2.1.0 (2025-01-26) - Phase 1 Complete! ๐
โ Phase 1: 100% Complete
All 39 commands migrated to Command Pattern
All tests passing (100% success rate)
Fixed all edge cases (transaction, extract_archive)
Added comprehensive test suite
Documentation fully updated
๐ Key improvements:
Transaction now uses system temp directory (no permission issues)
Extract archive handles absolute paths correctly
Git commands work properly in actual repositories
๐งช Test coverage:
Unit tests for core components
Integration tests for all 39 commands
Edge case tests for transactions
๐ Ready for Phase 2: Service Architecture decomposition
v2.0.0 (2025-01-26)
๐ 10 major improvements implemented
โก Performance enhancements with caching
๐ Security features added
๐ Monitoring and analytics
๐ Advanced search capabilities
๐ฆ Compression support
๐ ๏ธ Code refactoring tools
๐ Batch operations
๐ Cloud integration
๐จ Enhanced error handling
v1.0.0
Initial release with core features