Skip to content

MCP server wrapper — expose run() as a callable tool #52

Description

@UditAkhourii

Idea

`run()` in src/engine.ts is a clean, well-typed async function, but today the only way to invoke ADHD is via the CLI or the Claude Code skill. Any agent that isn't running with this skill installed has no way to call into it mid-task.

Proposal

  • Add an MCP server (e.g. `src/mcp-server.ts`) that exposes a single tool, `adhd_brainstorm(problem, context?, framesPerRun?, ...)`, mapping directly onto `RunOptions` and returning `RunResult` (or a rendered-text summary for smaller context budgets).
  • Ship it as a bin entry (`adhd-mcp`) alongside the existing `adhd` CLI bin in package.json, so it can be registered in any MCP-compatible client's config with one line.
  • This multiplies the addressable surface a lot for very little new logic — it's a thin adapter over the existing engine, not a new feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions