S

Specif-ai 规范文档交互工具

@vj-presidio/specif-ai-mcp-server
2 Stars 1.0k 次浏览 vj-presidio 更新于 2026-08-23

一个在标准输入输出上运行模型上下文协议服务器的命令行工具,能够与规范文档(如业务需求、产品需求和用户故事)进行交互,适用于Specif-ai平台。

该服务暂未提供标准配置,请参考 README 手动接入

可用工具 (9 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

set-project-path 1 个参数 需填 1 项

Set the project path and reload the solution, use this tool only when we not automatically able to infer the project path or asked by the user or us., we will try to auto infer it from the environment first.

必填参数:path

get-brds 1 个参数 需填 1 项

Get Business Requirement Documents for this project

必填参数:cwd

get-prds 1 个参数 需填 1 项

Get Product Requirement Documents for this project

必填参数:cwd

get-nfrs 1 个参数 需填 1 项

Get Non-Functional Requirement Documents for this project

必填参数:cwd

get-uirs 1 个参数 需填 1 项

Get User Interface Requirement Documents for this project

必填参数:cwd

get-bps 1 个参数 需填 1 项

Get Business Process Documents for this project

必填参数:cwd

get-user-stories 2 个参数 需填 2 项

Get User Stories for a particular PRD

必填参数:prdId、cwd

get-tasks 3 个参数 需填 3 项

Get Tasks for a particular User Story

必填参数:prdId、userStoryId、cwd

get-task 4 个参数 需填 4 项

Get a Task for a particular User Story in a particular PRD

必填参数:prdId、userStoryId、taskId、cwd

服务介绍

@vj-presidio/specif-ai-mcp-server

一个通过 stdio 运行 MCP(Model Context Protocol)服务器的 CLI 工具,适用于 Specif-ai

安装与使用概览

graph TD
    A[Installation Options]

    A --> B[Direct Binary Installation]
    A --> C[Package Manager Installation]

    B --> D[Unix Script]
    B --> E[Windows PowerShell]

    C --> F[NPM Global]
    C --> G[Bun Global]

    B --> H1[When to Use Binary Installation]
    H1 --> I1[System-wide installation]
    H1 --> I2[No Node.js required]
    H1 --> I3[Minimal dependencies]

    C --> H2[When to Use Package Manager]
    H2 --> J1[Already using Node.js/Bun]
    H2 --> J2[Need automatic updates]
    H2 --> J3[Project-specific versions]

    K[Usage Methods]
    K --> L[Direct CLI]
    K --> M[NPX]
    K --> N[BunX]

    L --> O1[Installed globally]
    L --> O2[Fastest startup]

    M --> P1[No installation needed]
    M --> P2[Version flexibility]

    N --> Q1[Bun runtime users]
    N --> Q2[Better performance]

安装

直接二进制安装(推荐)

您可以使用我们的安装脚本直接安装二进制文件:

# Unix (macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/vj-presidio/specif-ai-mcp-server/main/install.sh | sh

# Install specific version
curl -fsSL https://raw.githubusercontent.com/vj-presidio/specif-ai-mcp-server/main/install.sh | sh -s -- -v 1.2.3
# Windows (PowerShell)
iwr -useb https://raw.githubusercontent.com/vj-presidio/specif-ai-mcp-server/main/install.ps1 | iex

# Install specific version
iwr -useb https://raw.githubusercontent.com/vj-presidio/specif-ai-mcp-server/main/install.ps1 | iex -v 1.2.3

或者从 Releases 页面手动下载适合您平台的二进制文件。

包管理器安装

您可以使用 npm 全局安装:

# Latest version
npm install -g @vj-presidio/specif-ai-mcp-server@latest
# Specific version
npm install -g @vj-presidio/specif-ai-mcp-server@1.2.3

或使用 bun

# Latest version
bun install -g @vj-presidio/specif-ai-mcp-server@latest
# Specific version
bun install -g @vj-presidio/specif-ai-mcp-server@1.2.3

更新

要检查更新:

# Unix (macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/vj-presidio/specif-ai-mcp-server/main/update.sh | sh -s -- -c

# Windows (PowerShell)
iwr -useb https://raw.githubusercontent.com/vj-presidio/specif-ai-mcp-server/main/update.ps1 | iex -c

要更新到最新版本:

# Unix (macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/vj-presidio/specif-ai-mcp-server/main/update.sh | sh

# Windows (PowerShell)
iwr -useb https://raw.githubusercontent.com/vj-presidio/specif-ai-mcp-server/main/update.ps1 | iex

要更新到特定版本:

# Unix (macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/vj-presidio/specif-ai-mcp-server/main/update.sh | sh -s -- -v 1.2.3

# Windows (PowerShell)
iwr -useb https://raw.githubusercontent.com/vj-presidio/specif-ai-mcp-server/main/update.ps1 | iex -v 1.2.3

示例 MCP 客户端配置

使用最新版本的 npx

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

使用特定版本的 npx

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

使用最新版本的 bunx

{
  "specif-ai": {
    "command": "bunx",
    "args": ["@vj-presidio/specif-ai-mcp-server@latest"],
    "disabled": false,
    "autoApprove": []
  }
}

使用特定版本的 bunx

{
  "specif-ai": {
    "command": "bunx",
    "args": ["@vj-presidio/specif-ai-mcp-server@1.2.3"],
    "disabled": false,
    "autoApprove": []
  }
}

使用直接二进制文件或包管理器全局安装:

{
  "specif-ai": {
    "command": "specif-ai-mcp-server",
    "args": [],
    "disabled": false,
    "autoApprove": []
  }
}

选项

  • --help, -h: 显示帮助信息
  • --version: 显示版本信息

Specifai MCP 与流行 IDE 和扩展的集成

请参阅每个的设置说明

  1. Cline
  2. Cursor

设置项目路径

一旦服务器运行起来,您可以使用 set-project-path 工具设置项目路径。此工具接受包含您的规范文件的目录路径。设置路径后,服务器将从该目录加载所有文档。

示例工具用法:

{
  "name": "set-project-path",
  "arguments": {
    "path": "./path/to/project"
  }
}

可用工具

服务器提供了几个用于与您的规范文档交互的工具:

工具名称 描述
set-project-path 设置或更改项目目录路径
get-brds 获取业务需求文档
get-prds 获取产品需求文档
get-nfrs 获取非功能性需求
get-uirs 获取用户界面需求
get-bps 获取业务流程文档
get-user-stories 获取特定 PRD 的用户故事
get-tasks 获取特定用户故事的任务
get-task 获取特定任务的详细信息

要求

对于二进制安装:

  • curl(Unix)或 PowerShell(Windows)
  • sudo 权限(Unix,用于系统范围安装)

对于包管理器安装:

  • Node.js >= 16.0.0
  • Bun >= 1.0.0(如果使用 Bun 运行时)

许可证

MIT

相关 MCP 服务