feat: Add project_context tool and CWD auto-detection

New features:
- detectProjectFromCwd(): Maps directory paths to project keys
- project_context: Returns project, tasks, epics, lock status
- Auto-detection for 18 known projects (ST, VPN, OWUI, etc.)
- Falls back to extracting from Apps/X or Infrastructure/X paths

Use project_context at session start to see only relevant tasks.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-01-10 09:26:33 +02:00
parent 837fb8060c
commit 99f5828f60
4 changed files with 170 additions and 4 deletions

View File

@@ -272,4 +272,12 @@ export const toolDefinitions = [
},
},
},
{
name: 'project_context',
description: 'Get project context from current directory - returns detected project, open tasks, epics, and lock status. Use at session start.',
inputSchema: {
type: 'object',
properties: {},
},
},
];