Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MCP server supporting spec-driven development. Automates EARS-format requirements definition and comprehensive design document generation.

License

mzkmnk/spec-pilot

Repository files navigation

Spec Pilot

An MCP (Model Context Protocol) server that supports specification-driven development

Spec Pilot is an MCP server that supports specification-driven development through a structured workflow that spans everything from drafting system specifications to delivering design assets. It automates requirement definition in the EARS (Easy Approach to Requirements Syntax) format and generates comprehensive design documents.

Overview

  • Structured development workflow: Step-by-step process from specifications → requirements → design
  • EARS-based requirements management: Clear, testable acceptance criteria
  • Comprehensive design generation: From architecture to implementation strategies
  • Implementation task generation: Translate specs into actionable development plans
  • Multilingual support: Output available in Japanese and English
  • MCP protocol: Easy integration with AI agents

Verified By

This project has been independently assessed by MseeP.ai.

MseeP.ai Security Assessment Badge

Key Features

1. Workspace Initialization (spec.init)

  • Create the .kiro/specs/<slug> directory
  • Generate project configuration files
  • Save language settings

2. Requirements Collection (spec.create-requirements)

  • Structure user stories
  • Generate acceptance criteria in the EARS format
  • Produce testable requirements documents

3. Design Document Generation (spec.design)

  • Design system architecture
  • Define component designs and API specifications
  • Plan migration and testing strategies
  • Address performance and security considerations

4. Implementation Task Generation (spec.create-tasks)

  • Convert requirements and design artifacts into actionable task lists
  • Provide TDD-ready task breakdowns and requirement traceability
  • Output tasks in a hierarchy suitable for issue trackers

5. Greeting (greeting)

  • Provide a basic greeting and display project policies

Usage

Spec Pilot exposes five MCP prompts. Each one accepts defined arguments and returns structured responses.

Available Prompts

Prompt Name Description Required Arguments Optional Arguments
greeting Greeting and policy info name (string) -
spec.init Initialize workspace specDescription (string) locale (ja/en)
spec.create-requirements Generate requirements specName (string) -
spec.design Generate design document specName (string) -
spec.create-tasks Generate implementation tasks specName (string) -
spec.impl-tasks Derive execution plans specName (string), tasks (string) -

Examples

Amazon Q CLI

Initialize a project:

@spec.init "Build a user authentication system" "en"

Generate requirements:

@spec.create-requirements "user-auth-system"

Generate a design document:

@spec.design "user-auth-system"

Generate implementation tasks:

@spec.create-tasks "user-auth-system"

Execute selected implementation tasks:

@spec.impl-tasks "user-auth-system" "all tasks in phase 1"

File Details

Global Settings (.kiro/spec-pilot.json)

{
  "locale": "ja"
}

Project Settings (config.json)

{
  "title": "project-name",
  "description": "Project description"
}

Generated Documents

  • requirements.md: Structured requirements document with EARS-based acceptance criteria
  • design.md: Comprehensive design document covering architecture, component design, migration strategy, and more
  • tasks.md: Hierarchical implementation task list derived from requirements and design artifacts (TDD compatible)

Configuration

Supported Languages

  • ja (Japanese) - default
  • en (English)

Language settings are managed in .kiro/spec-pilot.json, which is created automatically during the first run.

Development & Build

Development Scripts

# Development
pnpm build          # TypeScript build
pnpm test           # Run tests
pnpm test:watch     # Watch mode for tests

# Code quality
pnpm lint           # Run ESLint checks
pnpm lint:fix       # Auto-fix ESLint issues
pnpm format         # Check formatting with Prettier
pnpm format:write   # Automatically format with Prettier
pnpm typecheck      # Run type checking

# Miscellaneous
pnpm clean          # Remove build artifacts

Build Artifacts

  • dist/index.js - Main MCP server
  • dist/index.d.ts - TypeScript type definitions
  • prompts/ - Prompt templates

Roadmap

Completed Features

  • Workspace initialization (spec.init)
  • Requirements generation (spec.create-requirements)
  • Design document generation (spec.design)
  • Implementation task generation (spec.create-tasks)
  • Multilingual support (Japanese & English)
  • Generation of EARS-based acceptance criteria
  • TDD-style task breakdowns and requirement traceability

Planned Features

  • Publish as an npm package
    • Optimize package metadata
    • Automate version management
    • Set up CI/CD pipelines for automated publishing
    • Release stable versions to the npm registry

Technical Specifications

  • Language: TypeScript 5.6+
  • Runtime: Node.js 22+
  • Package Manager: pnpm
  • Build Tool: tsdown
  • Test Framework: Vitest
  • Protocol: Model Context Protocol 1.18+

License

MIT License — see LICENSE for details.

About

MCP server supporting spec-driven development. Automates EARS-format requirements definition and comprehensive design document generation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •