To improve the efficiency of maintaining the knowledge base, this ticket is for implementing an endpoint to create or update a single document. This allows for fast, incremental updates without requiring a full, time-consuming rebuild of the entire knowledge base every time a single file changes.
Acceptance Criteria
- The server is extended to implement a
PUT /documents/:id endpoint, where :id is the URL-encoded path of the document.
- If the document already exists in the ChromaDB collection, it is updated with the new content.
- If the document does not exist, it is created.
- The endpoint accepts the new file content in its request body.
- Appropriate error handling is implemented.
Agent Instructions
To work on this ticket, please start your session with the following prompt:
Please follow the instructions in @AGENTS.md.
Once you are initialized, I want to work on a sub-task for the "Architect AI Tooling as a Model Context Protocol (MCP) Servers" epic.
My task is to implement: MCP Server: Implement Knowledge Create/Update Endpoint
You will need to read the epic context from @.github/ISSUE/epic-architect-ai-tooling-as-mcp.md and the specific ticket details from @.github/ISSUE/ticket-implement-knowledge-create-update-endpoint.md before we begin.
To improve the efficiency of maintaining the knowledge base, this ticket is for implementing an endpoint to create or update a single document. This allows for fast, incremental updates without requiring a full, time-consuming rebuild of the entire knowledge base every time a single file changes.
Acceptance Criteria
PUT /documents/:idendpoint, where:idis the URL-encoded path of the document.Agent Instructions
To work on this ticket, please start your session with the following prompt: