Commit Graph

9 Commits

Author SHA1 Message Date
2255b65ef6 feat: add data_date to project summary response
Include the schedule data date (last_recalc_date from XER) in the
get_project_summary tool response. This shows when the schedule
was last calculated in P6.

Changes:
- Add last_recalc_date column to projects table schema
- Parse last_recalc_date in PROJECT table handler
- Include last_recalc_date in db loader
- Return data_date field in get_project_summary query
- Update contract test to verify data_date presence
2026-01-06 22:42:10 -05:00
8fc2a87607 chore: add MCP server configuration for project 2026-01-06 22:31:08 -05:00
70c1cf3094 docs: add README with installation and usage instructions 2026-01-06 22:29:53 -05:00
ccc8296418 feat: implement XER MCP Server with 9 schedule query tools
Implement complete MCP server for parsing Primavera P6 XER files and
exposing schedule data through MCP tools. All 4 user stories complete.

Tools implemented:
- load_xer: Parse XER files into SQLite database
- list_activities: Query activities with pagination and filtering
- get_activity: Get activity details by ID
- list_relationships: Query activity dependencies
- get_predecessors/get_successors: Query activity relationships
- get_project_summary: Project overview with counts
- list_milestones: Query milestone activities
- get_critical_path: Query driving path activities

Features:
- Tab-delimited XER format parsing with pluggable table handlers
- In-memory SQLite database for fast queries
- Pagination with 100-item default limit
- Multi-project file support with project selection
- ISO8601 date formatting
- NO_FILE_LOADED error handling for all query tools

Test coverage: 81 tests (contract, integration, unit)
2026-01-06 21:27:35 -05:00
2cd54118a1 docs: add implementation task list with 67 tasks
Task breakdown by user story:
- US1 Load XER File (P1): 17 tasks
- US2 Query Activities (P1): 10 tasks
- US3 Query Relationships (P2): 9 tasks
- US4 Query Summary (P3): 9 tasks

TDD mandated: test tasks precede implementation tasks.
Parallel opportunities identified for models, table handlers,
and concurrent user story development after US1.
2026-01-06 21:02:52 -05:00
d3474b0f8b docs: add implementation plan and clarify no-file-loaded errors
Plan artifacts:
- plan.md: Technical context, constitution check, project structure
- research.md: XER format, MCP SDK, SQLite schema decisions
- data-model.md: Entity definitions and database schema
- contracts/mcp-tools.json: MCP tool schemas (9 tools)
- quickstart.md: Usage guide with examples
- CLAUDE.md: Agent context file

Spec updates:
- Add FR-015: NO_FILE_LOADED error requirement
- Add acceptance scenarios for no-file-loaded errors to US3, US4
2026-01-06 20:57:55 -05:00
0170eb7fef docs: add project schedule tools feature specification
Feature spec for MCP tools to query XER schedule data:
- 4 user stories (load file, query activities, relationships, summary)
- 14 functional requirements including pagination (100 item default)
- Clarifications: P6 critical flags, multi-project selection, internal calendars
2026-01-06 19:58:42 -05:00
257135bac0 docs: establish project constitution v1.0.1
Define governance for XER MCP Server with 5 core principles:
- Test-First Development (TDD mandatory)
- Extensibility Architecture (pluggable handlers)
- MCP Protocol Compliance (strict spec adherence)
- XER Format Fidelity (no data loss)
- Semantic Versioning (MAJOR.MINOR.PATCH)

Technical standards: Python 3.14, type hints, testing gates
2026-01-06 19:37:19 -05:00
6df5818c13 Initial commit from Specify template 2026-01-06 19:22:06 -05:00