x
This commit is contained in:
1 parent
6096c727d9
commit
3965f4f4da
38 files changed
+1513
-752
No files matched your search
@@ -0,0 +1,26 @@
|
||||
# Original User Request
|
||||
|
||||
## Initial Request — 2026-06-28T19:40:16-04:00
|
||||
|
||||
Develop the `update_category_image` feature to allow updating the image URL of a category. This requires changes in both `apps/backend` (for the API and database update) and `apps/mcp-server` (for the MCP tool definition and handler).
|
||||
|
||||
Working directory: `/home/ti/git/homaroma`
|
||||
Integrity mode: development
|
||||
|
||||
## Requirements
|
||||
|
||||
### R1. Backend Implementation
|
||||
- Implement the logic in `apps/backend` to update a category's `imageUrl` field.
|
||||
- Expose an endpoint, service method, or procedure that the MCP server can call to perform this update.
|
||||
|
||||
### R2. MCP Tool Implementation
|
||||
- Create a new tool named `update_category_image` in `apps/mcp-server`.
|
||||
- Define the schema to accept `id` (Category ID as a number) and `imageUrl` (as a string).
|
||||
- Implement the handler to call the backend logic and return a clear success or error message.
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
### Verification (Programmatic)
|
||||
- [ ] The code must compile successfully without TypeScript errors in both `apps/backend` and `apps/mcp-server`.
|
||||
- [ ] The `update_category_image` tool must be successfully registered in the MCP server.
|
||||
- [ ] (Optional if possible) A script or test confirms that calling the backend logic correctly updates the `imageUrl` field of a category.
|
||||
Reference in new issue
Block a user