feat(x2a): add x2a-list-modules MCP tool#2838
feat(x2a): add x2a-list-modules MCP tool#2838eloycoto merged 4 commits intoredhat-developer:mainfrom
Conversation
Code Review by Qodo
1.
|
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
Review Summary by QodoAdd x2a-list-modules MCP tool and extract module status logic to shared package
WalkthroughsDescription• Add x2a-list-modules MCP tool for listing project modules with statuses • Extract module status calculation logic to shared x2a-node package • Refactor module reconciliation into reusable utility functions • Update backend routes to use new shared reconciliation utilities Diagramflowchart LR
A["x2a-backend<br/>modules.ts"] -->|"extract logic"| B["x2a-node<br/>moduleStatus.ts"]
A -->|"extract logic"| C["x2a-node<br/>modulesReconcile.ts"]
D["x2a-mcp-extras<br/>createListModulesAction.ts"] -->|"import from"| B
D -->|"import from"| C
E["x2a-backend<br/>X2ADatabaseService"] -->|"import from"| B
A -->|"use"| C
File Changes1. workspaces/x2a/plugins/x2a-backend/src/router/modules.ts
|
1a0e9e2 to
82c35fe
Compare
Code Review by Qodo
1. Date fields violate schema
|
Review Summary by QodoAdd x2a-list-modules MCP tool and refactor module status utilities
WalkthroughsDescription• Add x2a-list-modules MCP tool for listing project modules with statuses • Refactor module status calculation logic into shared x2a-node package • Extract reconcileModuleJobs and listModulesWithReconciledStatuses utilities • Add Zod schema exports for job status and artifact type enums Diagramflowchart LR
A["x2a-backend<br/>modules.ts"] -->|extract| B["x2a-node<br/>moduleStatus.ts"]
A -->|extract| C["x2a-node<br/>modulesReconcile.ts"]
D["x2a-mcp-extras<br/>createListModulesAction.ts"] -->|import| B
D -->|import| C
E["x2a-common<br/>literals"] -->|export| F["Job Status<br/>& Artifact Type"]
D -->|use| F
File Changes1. workspaces/x2a/plugins/x2a-backend/src/router/modules.ts
|
a76f79a to
5a69964
Compare
Signed-off-by: Marek Libra <marek.libra@gmail.com>
5d05a70 to
44d72ff
Compare
|
Rebased |
|



Adds
/projects/:projectId/modulesInput parameter:
projectIdExample output: