We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wblair8689/project-context-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_project_tracker.pyโข2.11 kB
"""
Test the Project Tracker functionality
"""
import os
import sys
import json
from pathlib import Path
# Add parent directory to path for imports
sys.path.insert(0, str(Path(__file__).parent.parent))
from project_tracker import ProjectTracker
def test_project_tracker():
"""Test basic project tracker functionality"""
# Use the actual project root
project_root = Path(__file__).parent.parent.parent
tracker = ProjectTracker(str(project_root))
print("๐งช Testing Project Tracker")
print(f"๐ Project Root: {project_root}")
# Test getting project status
print("\n๐ Getting project status...")
status = tracker.get_project_status()
print(f"โ Git available: {status['git_status']['available']}")
print(f"๐ Total files: {status['file_counts']['total']}")
print(f"๐ Python files: {status['file_counts']['python']}")
print(f"๐ฑ Swift files: {status['file_counts']['swift']}")
# Test feature group scanning
print(f"\n๐๏ธ Feature groups found: {len(status['feature_groups'])}")
for group in status['feature_groups']:
exists_indicator = "โ " if group['exists'] else "โ"
readme_indicator = "๐" if group.get('has_readme') else "โ"
print(f" {exists_indicator} {group['name']} {readme_indicator}")
# Test recent commits
print(f"\n๐ Recent commits: {len(status['recent_activity'])}")
for commit in status['recent_activity'][:2]:
print(f" ๐น {commit['hash']}: {commit['message'][:50]}...")
# Test feature group details
print(f"\n๐ Testing feature group details...")
details = tracker.get_feature_group_details("project_context_mcp")
if details:
print(f" ๐ Files in project_context_mcp: {len(details['files'])}")
for file_info in details['files'][:3]:
print(f" ๐ {file_info['name']}")
else:
print(" โ Could not get feature group details")
print("\n๐ Project Tracker test completed!")
return True
if __name__ == "__main__":
test_project_tracker()