How markoinla/build-together works
Project Overview
• Build Together is a project management web application designed for “vibe coders” to collaborate using both AI and human input. It incorporates a dynamic web interface, a RESTful API backend, and specialized support for MCP (Model Context Protocol) integration with popular AI coding assistants (e.g., Cursor, Windsurf, Claude Code).
Main Components
a. Web Application Backend:
• The core application is built in Python (using Flask, as indicated by the file structure and Flask-Migrate in migrations).
• Sub-components include:
• Route Handlers (found in app/routes/): Different endpoints for pages (e.g., dashboard, project details, sprint details) and dynamic HTMX interactions.
• API Endpoints (in app/api/): Provide JSON/REST interface for managing projects, sprints, tasks, and issues.
• Database Models (in app/models/): Represent entities like project, sprint, task, and issue.
• Utility Functions (in app/utils/): For processing markdown and other support tasks.
b. Frontend Assets & Styling:
• Templates (in app/templates/) provide the Jinja2-based HTML views.
• Static assets (in app/static/) include CSS (with Tailwind, DaisyUI, and custom themes) and JavaScript (e.g., main.js for client-side dynamic behaviors).
• There is also a separate frontend folder that contains build configurations (package.json, tailwind.config.js, etc.), indicating a modern workflow for styling and possibly additional JS tooling.
c. MCP (Model Context Protocol) Server:
• Dedicated directory (mcp/) responsible for starting and running the MCP server.
• Contains MCP tool definitions (in mcp/tools) that the AI assistants use for actions on the project.
• The run_mcp.sh script is used to launch the MCP server as a separate process.
d. Database and Migrations:
• Migrations directory shows use of Flask-Migrate for schema evolution and versioning.
• The init_db.py script is used to initialize the database with the proper schema and sample data.
e. Configuration & Setup:
• The config.py file holds application configurations (e.g., PORT, SECRET_KEY, DATABASE_URL).
• Setup scripts (setup.sh, run.sh) are provided to streamline environment setup and start the application.
Relationships and Interactions
• The web server (app.py) acts as the entry point to the backend, connecting the routes, models, and API calls.
• HTTP requests from clients pass through the route handlers, which may render a template (using data from models) or perform CRUD operations via the API.
• The API layer exposes endpoints (e.g., /api/projects, /api/tasks) that interact with the database layer using the defined models.
• The MCP server (separate process launched via mcp/run_mcp.sh) communicates with the backend endpoints. It enables external AI coding assistants to operate through natural language for actions like creating or updating projects, sprints, tasks, etc.
• Frontend assets (HTML templates, CSS, and JavaScript) provide the client interface with HTMX facilitating dynamic updates without full page reloads.
• The model data and state changes from the backend are also made available to the REST API for external integration.
Architectural Patterns and Design Principles
• MVC-like Separation: Models (in app/models), Views (in app/templates and static files), and Controllers (in app/routes and app/api).
• Modular Organization: Different directories for API endpoints, utility functions, and MCP integration encourage clean separation of concerns.
• Use of REST and HTMX: Ensures that the application is both API-driven and capable of dynamic, client-side updates.
• MCP Integration: Provides a mechanism for AI assistants to communicate with the web application via specialized protocols.