Skip to content

Epic: Configuration + Adapter Discovery System #31

@prosdev

Description

@prosdev

🎯 Overview

Enable per-project MCP adapter configuration and discovery with automatic Cursor integration, centralized storage, and a unified CLI experience.

Key Insight: Users install @lytics/dev-agent globally once, then configure adapters per-project. Each project's .dev-agent/config.json defines which adapters to load, and dev-agent mcp init automatically adds the project to Cursor's MCP config.

🏗️ Architecture

Core Components

  1. Centralized Storage - All repository indexes stored globally in ~/.dev-agent/indexes/ (enables cross-repo search, clean project dirs)
  2. Project Configuration - Per-project .dev-agent/config.json defines adapters and settings
  3. Adapter Discovery - Automatic discovery and loading of built-in, npm, and local adapters
  4. CLI Management - Unified commands for MCP setup and adapter management

User Flow

# One-time global install
npm install -g @lytics/dev-agent

# Per-project setup
cd my-project
dev-agent init              # Create config + index repository
dev-agent mcp init         # Add to Cursor MCP config
dev-agent adapter install @company/mcp-adapter-jira  # Install custom adapter

📋 Sub-Issues

This epic is broken down into three focused sub-issues:

✅ Success Criteria

  • Users can run dev-agent init && dev-agent mcp init to fully configure a project
  • Custom adapters can be installed via dev-agent adapter install
  • Team members can clone and get same adapter setup
  • Different projects can have different adapters from same global install
  • No manual editing of ~/.cursor/mcp.json required
  • Indexes stored centrally, enabling cross-repository search
  • Built-in adapters can be disabled per-project

🔗 Related Issues

Estimate: 3-4 days (across 3 sub-issues)
Priority: High (blocks documentation and release)
Milestone: v1.0 - MCP Integration Complete

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions