Mcp Server Spira

io.github.Inflectra由 GitHub 账号 Inflectra 发布v1.1.1更新于 Oct 24, 2026

A Model Context Protocol (MCP) server enabling AI assistants to interact with Spira by Inflectra.

已验证STDIO仅桌面效率与工作流开发者工具

概览

AI 生成的概览

本地 MCP 服务器,让 AI 助手连接 Inflectra Spira,进行项目、测试与需求管理。

可以做什么
  • 搜索与读取工件:我负责的事项、产品内 11 类工件、项目群层级的能力与里程碑、按 ID 获取单个工件
  • 创建与更新工件,如事件、任务、需求、测试用例、风险、发布、构建与测试步骤
  • 记录自动化测试运行结果,并为工件添加评论
  • 以关联关系(相关、依赖、覆盖)链接两个工件
  • 浏览工作区:列出或获取产品、项目群与模板,读取模板元数据
  • 在本地查看各类工件的字段结构,无需调用 API
适用场景
适合团队在 SpiraTest、SpiraTeam 或 SpiraPlan 中管理项目、需求与测试用例,并希望助手在对话或 CI/CD 中查询待办、跨产品搜索、提交或更新工件与测试结果的场景。
运行要求
以 Python 包形式在本地通过 stdio 运行(pip install mcp-server-spira),需要 Python 环境。需设置三个环境变量:INFLECTRA_SPIRA_BASE_URL、INFLECTRA_SPIRA_USERNAME 和 INFLECTRA_SPIRA_API_KEY(来自 Spira 用户配置的 RSS 令牌)。可选 SPIRA_PROJECT_ID、SPIRA_CREATE_TAGS、SPIRA_UPDATE_TAGS。需能访问 Spira 实例的网络。
安装前请注意
API 密钥是个人访问令牌,会存放在客户端配置或 .env 文件中,需妥善保管。写入类工具会在你的 Spira 实例中创建和更新工件、记录测试运行、添加评论与关联;SPIRA_CREATE_TAGS 或 SPIRA_UPDATE_TAGS 会让助手写入的所有内容自动附加标签。所有查询与改动都会发送到你的 Spira 服务器。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Server Spira,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

MCP Inflectra Spira Server

A Model Context Protocol (MCP) server that lets AI assistants interact with Inflectra Spira — covering project management, test management, and requirements management.

Works with SpiraTest, SpiraTeam, and SpiraPlan.


Table of Contents


Quick Start

Install from PyPI:

bash
pip install mcp-server-spira

Add to your MCP client config:

json
{  "mcpServers": {    "inflectra-spira": {      "command": "python",      "args": ["-m", "mcp_server_spira"],      "env": {        "INFLECTRA_SPIRA_BASE_URL": "https://myinstance.spiraservice.net",        "INFLECTRA_SPIRA_USERNAME": "mylogin",        "INFLECTRA_SPIRA_API_KEY": "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX}"      }    }  }}

For Cline, add "type": "stdio" to the server config. For Claude Desktop:

bash
mcp install src/mcp_server_spira/server.py --name "Inflectra Spira Server"

Configuration

Set these environment variables (or use a .env file):

VariableRequiredDescription
INFLECTRA_SPIRA_BASE_URLYesBase URL for your Spira instance
INFLECTRA_SPIRA_USERNAMEYesYour Spira login name
INFLECTRA_SPIRA_API_KEYYesAPI Key (RSS Token) from your Spira user profile
SPIRA_PROJECT_IDNoDefault product ID — avoids passing product_id on every call
SPIRA_CREATE_TAGSNoComma-separated tag string merged into Tags on every artifact the MCP creates; empty or unset disables injection
SPIRA_UPDATE_TAGSNoComma-separated tag string merged into Tags on every artifact the MCP updates; empty or unset disables injection

Available Tools

13 tools organized by scope. All data-retrieval tools return structured JSON with field projection, filtering, and a consistent response envelope.

Search Tools

ToolDescription
mywork_search_artifactsYour assigned items (task, incident, requirement, test_case, test_set) with filtering and field projection
product_search_artifactsSearch artifacts in a product (11 types). Supports cross-product fan-out, server-side filtering, and nested sub-artifact includes.
product_get_artifactSingle artifact by ID with full details and optional sub-artifact includes
program_search_artifactsSearch program-level artifacts (capability, milestone)

Write Tools

ToolDescription
product_create_artifactCreate artifacts (incident, task, requirement, test_case, risk, release, test_set, build, test_step, mitigation, requirement_step)
product_update_artifactUpdate existing artifacts
product_record_test_runRecord automated test results from CI/CD
create_commentAdd a comment to an artifact
create_associationLink two artifacts (related-to, depends-on, coverage)

Workspace & Configuration Tools

ToolDescription
workspace_searchList products, programs, or product templates with field projection
workspace_getGet a single product, program, or template by ID
template_get_metadataTypes, statuses, priorities, severities, custom properties, and more for a template
get_artifact_schemaField schema for any artifact type (local-only, no API call)

Usage Examples

Try these prompts with your AI assistant:

Show me my assigned tasks in Spira
List all products in my Spira instance
Get the open incidents in product 55
Search for critical requirements across products 55 and 60
Get the field schema for incidents

License

MIT — see LICENSE.

Built with MCP Python SDK · Spira REST API v7.0

来源:README.md,提交 ebbc26f

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分