49 lines
1.4 KiB
Markdown
49 lines
1.4 KiB
Markdown
|
|
# Task ID: 87
|
||
|
|
|
||
|
|
**Title:** Add proxyModel Field to Project Schema
|
||
|
|
|
||
|
|
**Status:** cancelled
|
||
|
|
|
||
|
|
**Dependencies:** None
|
||
|
|
|
||
|
|
**Priority:** high
|
||
|
|
|
||
|
|
**Description:** Extend the Project database schema and API to support proxyModel field and proxyModelOverrides for per-content-type configuration.
|
||
|
|
|
||
|
|
**Details:**
|
||
|
|
|
||
|
|
Update `src/db/prisma/schema.prisma`:
|
||
|
|
|
||
|
|
```prisma
|
||
|
|
model Project {
|
||
|
|
// ... existing fields
|
||
|
|
proxyModel String? @default("default")
|
||
|
|
proxyModelOverrides Json? // { prompts: { "prompt-name": "model" }, toolResults: { "server/tool": "model" } }
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
Run `npx prisma migrate dev --name add_proxymodel_field`.
|
||
|
|
|
||
|
|
Update `src/mcpd/src/routes/projects.ts` to include the new fields in CRUD operations.
|
||
|
|
|
||
|
|
Update `src/cli/src/commands/get.ts` and `describe.ts` to display proxyModel.
|
||
|
|
|
||
|
|
Update `src/cli/src/commands/patch.ts` to support `--set proxyModel=<name>`.
|
||
|
|
|
||
|
|
**Test Strategy:**
|
||
|
|
|
||
|
|
Database migration test: verify migration applies cleanly. API tests: verify proxyModel field is returned in project GET, can be updated via PATCH. CLI tests: verify `mcpctl describe project <name>` shows proxyModel.
|
||
|
|
|
||
|
|
## Subtasks
|
||
|
|
|
||
|
|
### 87.1. Minimal placeholder subtask
|
||
|
|
|
||
|
|
**Status:** pending
|
||
|
|
**Dependencies:** None
|
||
|
|
|
||
|
|
This task requires complete rewrite before expansion.
|
||
|
|
|
||
|
|
**Details:**
|
||
|
|
|
||
|
|
Task 87 has been marked as DO NOT EXPAND and needs to be completely rewritten first. No subtasks should be generated until the task is properly redefined.
|