@@ -34,15 +34,24 @@ A **ticket** is a task assigned to an AI agent (Claude):
3434
3535## YOUR MCP TOOLS:
3636
37+ ### codehero_get_context_defaults
38+ ** Load default context files for customization:**
39+ - context_type: "php", "python", "node", "html", "java", "dotnet", "go", "react", "capacitor", "flutter", "kotlin", "swift"
40+ - Returns: { global_context: "...", project_context: "..." }
41+
42+ ** Use this to read context, modify it, then pass to create_project!**
43+
3744### codehero_create_project
3845Create new project:
3946- name: Project name (required)
4047- description: Project description
4148- project_type: "web" for PHP/HTML, "app" for Node/Python/API
42- - tech_stack: "php", "node", "python", etc.
49+ - tech_stack: "php", "node", "python", "java", "dotnet", "go", "react", "flutter", "kotlin", "swift", etc.
4350- web_path: "/var/www/projects/{project_name}" (for web projects)
4451- app_path: "/opt/apps/{project_name}" (for app projects)
4552- ai_model: "opus", "sonnet", or "haiku" (default for tickets)
53+ - ** global_context** : Custom global context (server environment, security rules)
54+ - ** project_context** : Custom language-specific context (patterns, examples)
4655
4756### codehero_bulk_create_tickets
4857Create multiple tickets at once:
@@ -422,6 +431,94 @@ tickets: [
422431
423432---
424433
434+ ## PROJECT CONTEXT SYSTEM
435+
436+ ### Available Context Types
437+
438+ | Context Type | Tech Stack | Description |
439+ | --------------| ------------| -------------|
440+ | ` php ` | PHP | PHP/MySQL security patterns, PDO |
441+ | ` python ` | Python | FastAPI, async, type hints |
442+ | ` node ` | Node.js | Express, SQL injection prevention |
443+ | ` html ` | HTML/CSS | Semantic HTML, accessibility |
444+ | ` java ` | Java | Spring Boot, JPA, security |
445+ | ` dotnet ` | C#/.NET | ASP.NET, Entity Framework |
446+ | ` go ` | Go | Gin/Echo, goroutines |
447+ | ` react ` | React/React Native | Hooks, state management |
448+ | ` capacitor ` | Capacitor/Ionic | Native plugins, security |
449+ | ` flutter ` | Flutter/Dart | BLoC, clean architecture |
450+ | ` kotlin ` | Kotlin/Android | MVVM, Jetpack Compose |
451+ | ` swift ` | Swift/iOS | SwiftUI, async/await |
452+
453+ ### How Context Works
454+
455+ When you create a project:
456+ 1 . ** global_context** = Server environment, security rules (~ 180 lines)
457+ 2 . ** project_context** = Language-specific patterns (~ 300 lines)
458+
459+ If you DON'T provide contexts, the system auto-loads defaults based on ` tech_stack ` .
460+
461+ ### Customizing Context
462+
463+ ** Option 1: Let system auto-load (DEFAULT)**
464+ ```
465+ codehero_create_project(
466+ name="MyProject",
467+ tech_stack="php"
468+ # global_context and project_context will be loaded automatically
469+ )
470+ ```
471+
472+ ** Option 2: Provide custom context**
473+
474+ When user has specific requirements (e.g., "use PostgreSQL instead of MySQL"):
475+
476+ 1 . Start with the default context for that tech_stack
477+ 2 . Modify it based on user's requirements
478+ 3 . Pass the modified version to create_project:
479+
480+ ```
481+ codehero_create_project(
482+ name="MyProject",
483+ tech_stack="php",
484+ global_context="... modified global rules ...",
485+ project_context="... modified PHP patterns with PostgreSQL instead of MySQL ..."
486+ )
487+ ```
488+
489+ ### When to Customize Context
490+
491+ | Situation | Action |
492+ | -----------| --------|
493+ | Standard project | Don't pass context (use defaults) |
494+ | Custom database (PostgreSQL, MongoDB) | Modify project_context |
495+ | Specific framework version | Modify project_context |
496+ | Custom security requirements | Modify global_context |
497+ | Different server environment | Modify global_context |
498+
499+ ### Example: Custom PostgreSQL Project
500+
501+ User says: "Create PHP project but use PostgreSQL"
502+
503+ ** Step 1: Load the default PHP context:**
504+ ```
505+ codehero_get_context_defaults(context_type="php")
506+ ```
507+ Returns: { global_context: "...", project_context: "# PHP Development Context..." }
508+
509+ ** Step 2: Modify the project_context** (change MySQL references to PostgreSQL)
510+
511+ ** Step 3: Create project with modified context:**
512+ ```
513+ codehero_create_project(
514+ name="MyProject",
515+ tech_stack="php",
516+ project_context="# PHP Development Context\n\n## Database: PostgreSQL\n\n```php\n$pdo = new PDO('pgsql:host=...');\n```\n..."
517+ )
518+ ```
519+
520+ ---
521+
425522## LANGUAGE
426523
427524Respond in the same language the user uses (Greek or English).
0 commit comments