2.2 KiB
2.2 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec | |
|---|---|---|---|---|---|---|---|
| 02-mcp-profile-resolution | MCP profile resolution | done | 2 |
|
plan.md | ../../specs/tasks/requirements/mcp-task-agent-profile-default.md |
Task 02: MCP Profile Resolution
Acceptance
- Omitted-profile
create_task_kandevcalls obey the saved policy for top-level tasks and subtasks, while explicitagent_profile_idalways wins. current_taskpreserves the existing profile chain;workspace_defaultskips parent/source profiles, preserves workflow step/default precedence, then uses the new task's target workspace default and creates no task when neither default can be resolved.- Executor/executor-profile inheritance and deferred-start metadata behavior remain unchanged.
- The
create_task_kandevtool description explains explicit override and both omitted-profile policies without changing the tool input schema.
Verification
cd apps/backend && go test ./internal/mcp/handlers/... ./internal/mcp/server/... ./internal/backendapp/...
Files Likely Touched
apps/backend/internal/mcp/handlers/handlers.goapps/backend/internal/mcp/handlers/handlers_test.goapps/backend/internal/mcp/server/server.goapps/backend/internal/mcp/server/server_test.goapps/backend/internal/backendapp/helpers.goapps/backend/internal/backendapp/helpers_test.go
Dependencies
01-backend-preference-contractsupplies the normalized enum and preference reader behavior.
Inputs
- Spec: What, Failure modes, and all MCP creation scenarios.
- Plan: MCP profile resolution.
- Existing symbols:
handleCreateTask,resolveMCPLaunchMetadata,resolveMCPAutoStartConfigWithError,inheritFromTask,errMCPAgentProfileRequired, andregisterMCPAndDebugRoutes. - Preserve the existing
create_task_kandevtool schema and forwarding behavior inapps/backend/internal/mcp/server/handlers.go; update only the tool description and its registration coverage.
Output Contract
Report policy resolution and wiring changes, table-driven cases added, exact tests run, files touched, blockers, and residual compatibility risks. Set this task to done and update its plan checkbox only after targeted verification passes.