deliver-cli

deliver-cli

Transforms AI agents into spec-driven product engineers by managing the software project lifecycle through requirements, design, implementation, and archiving phases with state-aware MCP tools.

Category
访问服务器

README

Deliver CLI

npm version License: MIT MCP

English | 简体中文

Deliver CLI is a senior-grade, state-aware Model Context Protocol (MCP) server that transforms your AI agent into a spec-driven product engineer. Version 3.0 (Agent-Optimized) is redesigned for high-density, low-token communication.

Why Deliver CLI v3?

The traditional approach to AI coding often leads to scope creep and forgotten requirements. deliver-cli (v3) is optimized for senior AI agents:

  • TOON Status Output (Context Efficiency): sc_status now returns a compact, YAML-like format instead of verbose Markdown. This reduces token usage per turn by ~70%, keeping your context window lean.
  • State-Aware Autopilot: The tool knows exactly what stage the project is in. The AI doesn't have to track whether it's doing "Requirements" or "Design"—it just calls mcpx with server="spec" tool="sc_plan" and instruction="Use PostgreSQL" and the tool handles the transition automatically.
  • Zero-Overhead Execution: Subprocesses have been eliminated; the MCP server invokes the CLI logic directly for maximum speed and reliable error handling.
  • Minimalist Syntax: Feature names and project identifiers are now optional. The tool defaults to the last-used project, reducing payload size for every subsequent tool call.
  • One-Shot vs. Step-Through Modes: Users can toggle between Step-Through (the default "Draft -> Approve -> Confirm" cycle) and One-Shot mode. In One-Shot mode, the AI progresses through all phases—including archiving the project—without stopping for human approval.
  • Lifecycle Directory Management: Automatically organizes work into projects/active/ and projects/completed/.
  • Persistent Task-Epoch Memory: A "short-term memory" system (.epoch-context.md) that tracks active focus, pending intentions, and hypotheses via mcpx with server="spec" tool="sc_epoch" and focus="implement auth".
  • The "GPS Breadcrumb" System: At the end of every tool call, deliver-cli outputs an explicit "Next Step" directive.

TOON Format (New in v3)

Instead of verbose Markdown, mcpx with server="spec" and tool="sc_status" returns a compact block:

spec_status:
  feature: code-analytics
  phase: requirements
  status: drafting
  next_step: write Requirements.md
  blockers: [template_tags_present]
  mode: one-shot

Workflow Diagram

stateDiagram-v2
    direction TB

    state "Phase 1: Requirements (PRD)" as REQ {
        [*] --> InitReq: sc_init
        InitReq --> EditReq: AI Drafts
        EditReq --> ReviewReq: Remove tags
        ReviewReq --> ApproveReq: sc_approve
        ApproveReq --> [*]: sc_plan
    }

    state "Phase 2: Technical Design" as DES {
        [*] --> ScaffoldDes: Reset Epoch Context
        ScaffoldDes --> EditDes: AI Drafts
        EditDes --> ReviewDes: Remove tags
        ReviewDes --> ApproveDes: sc_approve
        ApproveDes --> [*]: sc_plan
    }

    state "Phase 3: Implementation Tasks" as TSK {
        [*] --> ScaffoldTasks: Reset Epoch Context
        ScaffoldTasks --> EditTsk: AI Drafts
        EditTsk --> ReviewTsk: Remove tags
        ReviewTsk --> ApproveTsk: sc_approve
        ApproveTsk --> [*]: sc_plan
    }

    state "Phase 4: Implementation" as IMP {
        [*] --> StartTask: sc_todo_start
        StartTask --> Work: Coding & Epoch Updates
        Work --> CompleteTask: sc_todo_complete
        CompleteTask --> [*]: All Tasks [x]
    }
    
    state Archive {
        [*] --> MoveToCompleted: sc_plan (Archive)
    }

    REQ --> DES
    DES --> TSK
    TSK --> IMP
    IMP --> Archive
    Archive --> [*]: Feature Delivered

MCP Semantic Tools

Spec CLI provides a suite of surgical MCP tools to guide the AI agent through the workflow.

Tool Name Purpose Example Arguments
mcpx with server="spec" tool="sc_init" and name="auth-system" Initialize a new feature specification in projects/active/. {"name": "auth-system", "mode": "one-shot"}
mcpx with server="spec" tool="sc_plan" and instruction="Use PostgreSQL" Progress the workflow state. Automatically archives when finished. {"instruction": "Use PostgreSQL"}
mcpx with server="spec" and tool="sc_approve" Explicitly approve the current drafted phase after review. {}
mcpx with server="spec" tool="sc_feedback" and feedback="..." Provide user feedback or answers to questions. {"feedback": "The logo should be blue"}
mcpx with server="spec" tool="sc_status" and feature="auth-system" Get a health check of the active project and snappy next steps. {"feature": "auth-system"}
mcpx with server="spec" and tool="sc_todo_list" List all implementation tasks and their status. {}
mcpx with server="spec" tool="sc_todo_start" and id="1.1" Mark a specific task as being actively worked on. {"id": "1.1"}
mcpx with server="spec" tool="sc_todo_complete" and id="1.1" Mark a specific task as completed. {"id": "1.1"}
mcpx with server="spec" tool="sc_epoch" and focus="implement auth" Update the task-epoch context for short-term memory. {"focus": "implement auth"}
mcpx with server="spec" tool="sc_mode" and mode="one-shot" Toggle project mode between one-shot and step-through. {"mode": "one-shot"}
mcpx with server="spec" and tool="sc_archive" Manually move the project to the projects/completed/ folder. {}
mcpx with server="spec" tool="sc_help" and topic="sc_plan" Learn how to use the tools and get deep documentation. {"topic": "sc_plan"}
mcpx with server="spec" and tool="sc_verify" A dedicated tool to validate that the last action worked. {}
mcpx with server="spec" and tool="sc_refresh" Force a refresh and synchronization of the internal workflow state machine. {}

Command Line Interface

While primarily used via MCP, Spec CLI also provides a powerful standalone interface.

Command Description
mcpx with server="spec" tool="sc_init" and name="<name>" Initialize a new feature specification.
mcpx with server="spec" tool="sc_plan" and instruction="Use PostgreSQL" Progress the workflow state.
mcpx with server="spec" and tool="sc_approve" Explicitly approve the current phase.
mcpx with server="spec" tool="sc_feedback" and feedback="<text>" Provide user feedback or answers.
mcpx with server="spec" and tool="sc_todo_list" List implementation tasks.
mcpx with server="spec" tool="sc_epoch" and focus="<text>" Update short-term memory context.
mcpx with server="spec" tool="sc_mode" and mode="<mode>" Toggle between 'one-shot' and 'step-through'.
mcpx with server="spec" and tool="sc_archive" Manually archive the project.
mcpx with server="spec" tool="sc_status" and feature="auth-system" Get a health check of the active project.
mcpx with server="spec" and tool="sc_verify" Verify current state and check consistency.
mcpx with server="spec" tool="sc_help" and topic="sc_plan" Show help documentation.

Installation & Setup

Prerequisites

  • Node.js: Version 18.0.0 or higher.
  • Package Manager: npm, yarn, or pnpm.

Installation Options

Option 1: Quick Start (npx)

Run it without installing globally:

npx -y @epoch-ai/deliver-cli

Option 2: Global Installation

For frequent use as a standalone CLI:

npm install -g @epoch-ai/deliver-cli

Option 3: MCP Client Configuration

To use this with AI assistants, add it to your configuration file:

Claude Desktop Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "deliver-cli": {
      "command": "npx",
      "args": ["-y", "@epoch-ai/deliver-cli"]
    }
  }
}

Gemini CLI Configure deliver-cli globally in ~/.gemini/settings.json or locally in .gemini/settings.json:

{
  "mcpServers": {
    "deliver-cli": {
      "command": "npx",
      "args": ["-y", "@epoch-ai/deliver-cli"]
    }
  }
}

Claude Code

claude mcp add deliver-cli -s user -- npx -y @epoch-ai/deliver-cli

Development

Getting Started

  1. Clone the Repo:
    git clone https://github.com/benjamesmurray/deliver-cli.git
    cd deliver-cli
    
  2. Install Dependencies:
    npm install
    
  3. Build the Project:
    npm run build
    
  4. Run Tests:
    npm test
    

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选