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.06 KiB
"""
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()