Commit d09d418
authored
feat(mcp): Prefab UI parity for the 3 remaining mutations (#46)
Brings add_order_comment, update_order_due_date, and bulk_update_order_status into the find/view/decide/mutate Prefab UI cluster from #20. Each gets:
- Typed Pydantic preview schema (CommentPreview / DueDateChangePreview / BulkStatusChangePreview) replacing the ad-hoc dict[str, Any] previews
- Typed Pydantic result schema with confirmed: bool to accurately represent the user-declined elicitation path
- Prefab UI builder rendering the find/view/decide/mutate card shape consistent with update_order_status
- Markdown templates (preview + result) for non-Prefab clients
Bug fix included: all four result schemas (StatusChangeResult plus the three new ones) had `confirmed: Literal[True]` that contradicted their use on the user-declined path. Now `confirmed: bool` with declined-path constructors passing False explicitly. Test added pinning the contract.
Closes #39.1 parent 0b67bdd commit d09d418
11 files changed
Lines changed: 774 additions & 59 deletions
File tree
- statuspro_mcp_server
- src/statuspro_mcp
- templates
- tools
- tests/tools
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments