specifai-mcp-server

specifai-mcp-server

8

The Specifai MCP Server is designed to integrate and automate the Specifai project with any AI tool that supports the MCP protocol, providing several tools for interacting with specification documents. This server remains experimental, meaning its tools and features are under continuous development and refinement.

Specifai MCP Server

A Model Context Protocol (MCP) server for Specifai project integration and automation with any MCP-compatible AI tool. This server is designed to work with tool agnostic, meaning it can be used with any tool that supports the MCP protocol. This server currently expose tools to read all documents generated by Specifai project.

[!WARNING] This server is currently in experimental. The functionality and available tools are subject to change and expansion as we continue to develop and improve the server.

License: MIT npm version

Table of Contents

Installation

# Latest version
npx --yes @presidio-dev/specifai-mcp-server@latest

# Specific version
npx --yes @presidio-dev/specifai-mcp-server@1.2.3

We recommend npx to install the server, but you can use any node package manager of your preference such as yarn, pnpm, bun, etc.

Configuration

with npx with latest version:

{
  "specifai": {
    "command": "npx",
    "args": ["--yes", "@presidio-dev/specifai-mcp-server@latest"],
    "disabled": false,
    "autoApprove": []
  }
}

with npx with specific version:

{
  "specifai": {
    "command": "npx",
    "args": ["--yes", "@presidio-dev/specifai-mcp-server@1.2.3"],
    "disabled": false,
    "autoApprove": []
  }
}

Preparing your project

This is completely optional, but it's recommended to use it to avoid having to specify the project directory path every time you access the server. For AI IDE / Extension (Hai Build), it's recommended to use a .specifai-path file to specify the project directory path.

Make sure your project root directory contains a .specifai-path file. It's how the Specifai MCP server know where to find the specification documents generated by Specifai.

The file is a plain text file containing the absolute path to the project directory where the specification documents for an project are stored.

For example, if your project directory is located at /path/to/project, the .specifai-path file should contain the following line:

/path/to/project

Specifai MCP integration with popular IDE and extension

See the setup instructions for each

Available Tools

The server provides several tools for interacting with your specification documents:

Tool NameDescription
get-brdsGet Business Requirement Documents
get-prdsGet Product Requirement Documents
get-nfrsGet Non-Functional Requirements
get-uirsGet User Interface Requirements
get-bpdsGet Business Process Documents
get-user-storiesGet User Stories for a specific PRD
get-tasksGet Tasks for a specific User Story
get-taskGet details of a specific Task
set-project-pathSet or change the project directory path
get-task-by-idGet details of a specific Task by ID
list-all-tasksList all available tasks
searchFull text search across all documents

Requirements

Package manager installation:

  • Node.js >= 16.0.0
  • Bun >= 1.0.0 (if using Bun runtime)

Contributing

We welcome contributions to the Specifai MCP Server! Please see our for more information on how to get started.

Development Setup

For detailed instructions on setting up your development environment, please refer to our .

Architecture

To understand the project architecture, please see our .

Security

For information about our security policy and how to report security vulnerabilities, please see our .

License

This project is licensed under the MIT License - see the file for details.

Acknowledgements