Skip to main content

MCP server for OpenSpec - AI-native spec-driven development

Project description

OpenSpec MCP Server

A Model Context Protocol (MCP) server for OpenSpec - bringing spec-driven development to AI assistants like Cursor, Claude Desktop, and more.

What is OpenSpec MCP?

OpenSpec MCP Server exposes OpenSpec's powerful spec-driven development workflow through the standardized MCP protocol. This allows AI assistants to:

  • Create and manage change proposals
  • Read and update specification documents
  • Track task progress
  • Validate spec formats
  • Archive completed changes

Installation

Using uvx (Recommended)

No installation needed! Just configure your AI tool to use:

uvx openspec-mcp

Using pip

pip install openspec-mcp

Configuration

Cursor

Add to .kiro/settings/mcp.json or ~/.kiro/settings/mcp.json:

{
  "mcpServers": {
    "openspec": {
      "command": "uvx",
      "args": ["openspec-mcp"],
      "env": {
        "OPENSPEC_DEBUG": "false"
      },
      "disabled": false,
      "autoApprove": [
        "list_changes",
        "list_specs",
        "show_change",
        "read_spec",
        "read_tasks"
      ]
    }
  }
}

Claude Desktop

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

{
  "mcpServers": {
    "openspec": {
      "command": "uvx",
      "args": ["openspec-mcp"],
      "env": {
        "OPENSPEC_DEBUG": "false"
      }
    }
  }
}

Available Tools

Project Management

  • init_openspec - Initialize OpenSpec project structure
  • list_changes - List all active changes with progress
  • list_specs - List all specification documents

Change Management

  • create_proposal - Create a new change proposal
  • show_change - Show detailed information about a change
  • archive_change - Archive a completed change

Specification Management

  • read_spec - Read a specification document
  • read_tasks - Read tasks for a change
  • update_task_status - Update task completion status

Validation

  • validate_change - Validate change document format

Usage Examples

In Cursor

User: Please create a change proposal for adding two-factor authentication

AI: I'll use OpenSpec MCP to create this change proposal.
    [Calls create_proposal tool]
    
    Change proposal created: openspec/changes/add-two-factor-auth
    
    Let me help you fill in the details...

Testing with MCP Inspector

npx @modelcontextprotocol/inspector uvx openspec-mcp

Environment Variables

  • OPENSPEC_WORKING_DIR - Working directory (default: current directory)
  • OPENSPEC_DEBUG - Enable debug logging (default: false)
  • OPENSPEC_LOG_LEVEL - Log level: DEBUG, INFO, WARNING, ERROR (default: INFO)
  • OPENSPEC_STRICT - Enable strict validation mode (default: true)

Development

# Clone the repository
git clone https://github.com/Fission-AI/OpenSpec
cd OpenSpec/openspec-mcp

# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run with coverage
pytest --cov=openspec_mcp --cov-report=html

# Format code
black src tests
ruff check src tests

# Type checking
mypy src

License

MIT License - see LICENSE file for details

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openspec_mcp-0.1.0.tar.gz (53.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openspec_mcp-0.1.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file openspec_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: openspec_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 53.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for openspec_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4ed2bb45fb2a2401fc25c37167e0cb6122feb39d1e0aeacbed41b22bd5d56b38
MD5 5f73959e03b0b61710caa750d13caf18
BLAKE2b-256 7e1b78634c6cea06ae6f9f6f2e2cb5dc5403b1afd280c22d39d130b068750e1c

See more details on using hashes here.

File details

Details for the file openspec_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: openspec_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for openspec_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 496096f8d1d03d71913adc6a4df2af12891d48b237c1f532367ced9d010526c7
MD5 2a8cbc697ee5c648d9d376f8a5ea3be5
BLAKE2b-256 ecf457ea8de16300559ae989cccc78bf566ab94fbe8ce21515a2dd95ef6de8b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page