1.3 KiB
1.3 KiB
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/backendto update a category'simageUrlfield. - 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_imageinapps/mcp-server. - Define the schema to accept
id(Category ID as a number) andimageUrl(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/backendandapps/mcp-server. - The
update_category_imagetool must be successfully registered in the MCP server. - (Optional if possible) A script or test confirms that calling the backend logic correctly updates the
imageUrlfield of a category.