Some checks failed
CI / Code Quality (push) Failing after 17s
CI / Test (ubuntu-latest, 3.10) (push) Failing after 5s
CI / Test (ubuntu-latest, 3.11) (push) Failing after 4s
CI / Test (ubuntu-latest, 3.12) (push) Failing after 4s
CI / Test (ubuntu-latest, 3.13) (push) Failing after 4s
CI / Coverage (push) Failing after 25s
CI / Test (macos-latest, 3.13) (push) Has been cancelled
CI / Test (macos-latest, 3.10) (push) Has been cancelled
CI / Test (macos-latest, 3.11) (push) Has been cancelled
CI / Test (macos-latest, 3.12) (push) Has been cancelled
CI / Test (windows-latest, 3.10) (push) Has been cancelled
CI / Test (windows-latest, 3.11) (push) Has been cancelled
CI / Test (windows-latest, 3.12) (push) Has been cancelled
CI / Test (windows-latest, 3.13) (push) Has been cancelled
✨ Features: - 50+ development tools across 13 specialized categories - ⚡ Sneller Analytics: High-performance vectorized SQL (TB/s throughput) - 🎬 Asciinema Integration: Terminal recording and sharing - 🧠 AI-Powered Recommendations: Intelligent tool suggestions - 🔀 Advanced Git Integration: Smart operations with AI suggestions - 📁 Enhanced File Operations: Monitoring, bulk ops, backups - 🔍 Semantic Code Search: AST-based intelligent analysis - 🏗️ Development Workflow: Testing, linting, formatting - 🌐 Network & API Tools: HTTP client, mock servers - 📦 Archive & Compression: Multi-format operations - 🔬 Process Tracing: System call monitoring - 🌍 Environment Management: Virtual envs, dependencies 🎯 Ready for production with comprehensive documentation and MCP Inspector support!
49 lines
1.5 KiB
Python
49 lines
1.5 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
Simple demonstration of tre functionality working correctly
|
|
"""
|
|
|
|
import asyncio
|
|
|
|
from enhanced_mcp.file_operations import EnhancedFileOperations
|
|
|
|
|
|
async def simple_tre_demo():
|
|
"""Simple demo showing tre working correctly"""
|
|
|
|
file_ops = EnhancedFileOperations()
|
|
|
|
print("🌳 Simple tre Demo")
|
|
print("=" * 40)
|
|
|
|
# Test with minimal exclusions to show it works
|
|
result = await file_ops.tre_directory_tree(
|
|
root_path="/home/rpm/claude/enhanced-mcp-tools",
|
|
max_depth=2, # Depth 2 to see files and subdirectories
|
|
exclude_patterns=[r"\.git$", r"\.venv$"], # Only exclude .git and .venv
|
|
)
|
|
|
|
if result.get("success"):
|
|
stats = result["metadata"]["statistics"]
|
|
print("✅ SUCCESS!")
|
|
print(f"⚡ Found {stats['total']} items in {result['metadata']['execution_time_seconds']}s")
|
|
print(f"📊 {stats['files']} files, {stats['directories']} directories")
|
|
|
|
# Show first few items
|
|
tree = result["tree"]
|
|
print("\n📁 Contents:")
|
|
for item in tree.get("contents", [])[:8]:
|
|
icon = "📁" if item["type"] == "directory" else "📄"
|
|
print(f" {icon} {item['name']}")
|
|
|
|
if len(tree.get("contents", [])) > 8:
|
|
print(f" ... and {len(tree.get('contents', [])) - 8} more")
|
|
|
|
else:
|
|
print(f"❌ Error: {result.get('error')}")
|
|
print(f"💡 Suggestion: {result.get('suggestion', 'Check tre installation')}")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(simple_tre_demo())
|