Labsco
M-Pineapple logo

Claude Project Coordinator

โ˜… 46

from M-Pineapple

Manage and coordinate multiple Xcode/Swift projects with features like project tracking, smart search, and analytics.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup
<div align="center"> <img src="assets/logo.svg" alt="Claude Project Coordinator logo" width="240"/>

Claude Project Coordinator

</div>

๐Ÿšจ Critical Update for v1.3.0+ Users

If you're experiencing incorrect project creation dates (all showing today's date), run:

Copy & paste โ€” that's it
./scripts/repair-analytics-dates.sh

This fixes a bug where analytics were re-migrated on every restart. Fixed in v1.3.2.


An MCP (Model Context Protocol) server for managing and coordinating multiple Xcode/Swift projects. This server provides tools for tracking project status, searching code patterns, and maintaining a knowledge base of development insights.

Features

  • ๐Ÿš€ Project Management: Track multiple Xcode projects with status, notes, and metadata
  • ๐Ÿ” Smart Search: Search across projects and documentation for code patterns
  • ๐Ÿ“š Knowledge Base: Maintain patterns, templates, and troubleshooting guides
  • ๐Ÿค– Auto-Detection: Automatically detects SwiftUI, UIKit, SPM, and other technologies
  • ๐Ÿ’พ Persistent Storage: All data stored locally in structured JSON format
  • ๐Ÿ” Security First: Comprehensive input validation and path traversal protection
  • ๐Ÿ“Š Project Analytics: Time tracking, activity heat maps, and health scoring (v1.3.0+)
  • ๐Ÿ“ˆ Technology Trends: Analyze framework usage and adoption patterns (v1.3.0+)

Security Features (v1.2.0+)

  • ๐Ÿ›ก๏ธ Input Validation: Comprehensive validation of all user inputs
  • ๐Ÿšซ Path Traversal Protection: Blocks malicious paths like ../../../etc/passwd
  • ๐Ÿ“ Directory Access Control: Configurable allowed directories for projects
  • ๐Ÿšจ Injection Prevention: Validates search patterns to prevent command injection
  • โš–๏ธ Reasonable Limits: Input length limits to prevent buffer overflow attacks
  • ๐Ÿ“ Clear Error Messages: Helpful guidance when security validation fails
  • โš™๏ธ Hardcoded Security: Security policies are compiled into the binary for reliability

Project Activity Heat Map (Past 7 Days)

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ TodoApp (15 activity points - 6 events) ๐Ÿ”ฅ๐Ÿ”ฅ WeatherStation (8 activity points - 3 events) ๐Ÿ”ฅ PortfolioSite (3 activity points - 2 events) ๐Ÿ’ค OldBlogEngine (0 activity points)

Daily Activity Breakdown:

  • Monday: 4 events
  • Tuesday: 8 events
  • Wednesday: 3 events
Copy & paste โ€” that's it

## MCP Tools Available

### `list_projects`
Lists all tracked projects with their metadata

### `add_project`
Adds a new project to track
- Parameters: `name`, `path`, `description` (optional)
- **Security**: Validates project name, path, and description

### `get_project_status`
Gets detailed information about a specific project
- Parameters: `projectName`
- **Security**: Validates project name

### `update_project_status`
Updates project status and/or notes
- Parameters: `projectName`, `status` (optional), `notes` (optional)
- **Security**: Validates all text inputs

### `search_code_patterns`
Searches through projects and knowledge base
- Parameters: `pattern`
- **Security**: Validates search pattern for injection attempts

## Project Structure

Claude-Project-Coordinator/ โ”œโ”€โ”€ Sources/ โ”‚ โ””โ”€โ”€ ProjectCoordinator/ โ”‚ โ”œโ”€โ”€ main.swift # Entry point โ”‚ โ”œโ”€โ”€ MCPServer.swift # MCP protocol implementation โ”‚ โ”œโ”€โ”€ ProjectManager.swift # Project management logic โ”‚ โ””โ”€โ”€ SecurityValidator.swift # Input validation and security configuration โ”œโ”€โ”€ KnowledgeBase/ โ”‚ โ”œโ”€โ”€ projects/ # Project data storage โ”‚ โ”œโ”€โ”€ patterns/ # Code patterns โ”‚ โ”œโ”€โ”€ templates/ # Project templates โ”‚ โ””โ”€โ”€ tools/ # Development tools/guides โ”œโ”€โ”€ scripts/ โ”‚ โ””โ”€โ”€ build.sh # Build script โ”œโ”€โ”€ Package.swift # Swift package manifest โ”œโ”€โ”€ CHANGELOG.md # Version history โ””โ”€โ”€ README.md # This file

Copy & paste โ€” that's it

## Knowledge Base

The Knowledge Base comes pre-populated with:
- SwiftUI patterns and best practices
- Xcode keyboard shortcuts
- Troubleshooting guides
- Project templates

You can add your own content by creating markdown files in the appropriate directories.

## Project Analytics (v1.3.0+)

The analytics system runs automatically in the background, tracking:

### Time Tracking
- Automatically tracks time spent in each project status
- No manual timers needed - just update status normally
- View complete timeline with: `get_project_timeline`

### Activity Monitoring
- Records all interactions: status changes, notes, searches
- Generates heat maps showing project activity levels
- Identify your most and least active projects

### Technology Analysis
- Tracks framework and tool usage across all projects
- Identifies emerging technologies you're experimenting with
- Shows adoption trends over time

### Health Scoring
- Multi-factor analysis of project health (0-100 score)
- Factors: activity level, staleness, documentation, task completion
- Provides actionable recommendations for improvement

**Note**: Analytics are presented as formatted text in Claude chat, optimized for readability and quick insights. See [ANALYTICS-EXAMPLES.md](https://github.com/M-Pineapple/Claude-Project-Coordinator/blob/HEAD/ANALYTICS-EXAMPLES.md) for real output examples.

## ๐Ÿ’– Support This Project

If CPC has helped streamline your development workflow or saved you time managing projects, consider supporting its development:

<a href="https://www.buymeacoffee.com/mpineapple" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>

Your support helps me:
- Maintain and improve CPC with new features
- Keep the project open-source and free for everyone
- Dedicate more time to addressing user requests and bug fixes
- Explore new tools that enhance developer productivity

Thank you for considering supporting my work! ๐Ÿ™

## How It Works

The Project Coordinator:
1. Communicates with Claude Desktop using the MCP protocol over stdio
2. Validates all inputs through the comprehensive security system
3. Stores project data as JSON files in `KnowledgeBase/projects/`
4. Stores analytics data in `KnowledgeBase/analytics/`
5. Automatically detects technologies by scanning project directories
6. Maintains an index for quick searching and retrieval
7. Tracks all project interactions for analytics

## Security Considerations

**For Individual Developers:**
- Default security settings are designed for personal development workflows
- Protects against common attack vectors while maintaining usability
- Security settings can be customized by modifying source code and rebuilding

**For Organizations:**
- Organizations should evaluate their own security requirements
- Additional security measures may be needed for production environments
- Consider implementing additional authentication and audit logging for shared use
- Hardcoded configuration prevents runtime tampering

## Example Files & Documentation

- **[ANALYTICS-EXAMPLES.md](https://github.com/M-Pineapple/Claude-Project-Coordinator/blob/HEAD/ANALYTICS-EXAMPLES.md)** - Real output examples and productive prompts
- **[CHANGELOG.md](https://github.com/M-Pineapple/Claude-Project-Coordinator/blob/HEAD/CHANGELOG.md)** - Detailed version history
- **Security Features** - See the Security Configuration section above

## Contributing

Contributions are welcome! Please feel free to:
- Report bugs
- Suggest new features
- Submit pull requests
- Improve documentation
- Share your patterns and templates

## Technical Details

- Built with Swift using no external dependencies
- Uses JSON-RPC for MCP communication
- Async/await for modern Swift concurrency
- Actor-based architecture for thread safety
- Comprehensive input validation and security hardening

## License

MIT License - feel free to use this in your own projects!

## Changelog

See [CHANGELOG.md](https://github.com/M-Pineapple/Claude-Project-Coordinator/blob/HEAD/CHANGELOG.md) for detailed version history and security improvements.

## Acknowledgments

Built as part of exploring the Model Context Protocol (MCP) ecosystem for enhancing AI-assisted development workflows.

---

Made with โค๏ธ from ๐Ÿ Pineapple