Skip to content

Add set_complexity to recap MCP #352

@acreeger

Description

@acreeger

Summary

Add a set_complexity tool to the recap MCP server that captures the assessed complexity of the current task. This provides important context for users to understand the scope of work.

Complexity Levels

  • trivial - Quick fix, single change
  • simple - Straightforward implementation, few files
  • complex - Multi-step, architectural decisions, significant scope

MCP Tool

server.registerTool(
  'set_complexity',
  {
    title: 'Set Complexity',
    description: 'Set the assessed complexity of the current task',
    inputSchema: {
      complexity: z.enum(['trivial', 'simple', 'complex']).describe('Task complexity level'),
      reason: z.string().optional().describe('Brief explanation for the assessment'),
    },
  },
  // ...
)

Schema Addition

{
  "filePath": "...",
  "goal": null,
  "complexity": {
    "level": "complex",
    "reason": "Multiple files affected, requires architectural changes",
    "timestamp": "2025-12-15T10:23:45Z"
  },
  "entries": [...],
  "artifacts": [...]
}

Prompt Updates

Update prompts to:

  1. Call set_complexity when complexity is determined or changes
  2. Do NOT use add_entry to report complexity - use the dedicated tool

Related

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions