Skip to main content

x

Project description

MCP Inflectra Spira Server

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

Overview

This project implements a Model Context Protocol (MCP) server that allows AI assistants (like Claude) to interact with the Inflectra Spira platform, providing a bridge between natural language interactions and the Spira REST API.

This server supports all three editions of Spira:

  • SpiraTest: Test Management When You Need Quality, Agility & Speed
  • SpiraTeam: Project, Requirements Management & ALM For Agile Teams
  • SpiraPlan: Program Management & ALM For Scaling Agile & Enterprises

Features

The Spira MCP server current implements the following features:

My Work

This feature provides easy access to the list of artifacts that have been assigned to the current user

  • My Tasks: Provides operations for working with the Spira tasks I have been assigned
  • My Requirements: Provides operations for working with the Spira requirements I have been assigned
  • My Incidents: Provides operations for working with the Spira incidents I have been assigned
  • My Test Cases: Provides operations for working with the Spira test cases I have been assigned
  • My Test Sets: Provides operations for working with the Spira test sets I have been assigned

Workspaces

This feature provides tools that let you retrieve and modify the different workspaces inside Spira

  • Programs: Provides operations for working with Spira programs
  • Products: Provides operations for working with Spira products
  • Product Templates: Provides operations for working with Spira product templates

Program Artifacts

This feature provides tools that let you retrieve and modify the different artifacts inside a Spira program

  • Capabilities: Provides operations for working with the Spira capabilities in a program backlog
  • Milestones: Provides operations for working with the Spira milestones in a program

Product Artifacts

This feature provides tools that let you retrieve and modify the different artifacts inside a Spira product

  • Requirements: Provides operations for working with the Spira requirements in a product
  • Releases: Provides operations for working with the Spira releases in a product
  • Test Cases: Provides operations for working with the Spira test case folders and test cases in a product
  • Test Sets: Provides operations for working with the Spira test set folders and test sets in a product
  • Test Runs: Provides operations for working with the Spira test runs in a product
  • Tasks: Provides operations for working with the Spira tasks in a product
  • Incidents: Provides operations for working with the Spira incidents (e.g. bugs, enhancements, issues, etc.) in a product
  • Automation Hosts: Provides operations for working with the Spira automation hosts in a product

Template Configuration

This feature provides tools that let you view and modify the configuration and settings of Spira product templates

  • Artifact Types: Retrieves information on the artifact types in a product template, and their sub-types
  • Custom Properties: Retrieves information on the artifact types in a product template, and their custom properties

Automation

This feature provides tools that let you integrate automated DevOps tools such as test automation frameworks and CI/CD pipelines

  • Automated Test Runs: Provides operations for recording automated test run results into Spira
  • Builds: Provides operations for recording the results of CI/CD builds into Spira

Getting Started

Prerequisites

  • Python 3.10+
  • Inflectra Spira cloud account with appropriate permissions
  • Username and active API Key (RSS Token) for this instance

Installation

# Clone the repository
git clone https://github.com/Inflectra/mcp-server-spira.git
cd mcp-server-spira

# Install in development mode
uv pip install -e ".[dev]"

# Install from PyPi
pip install mcp-server-spira

Configuration

Create a .env file in the project root with the following variables:

INFLECTRA_SPIRA_BASE_URL=The base URL for your instance of Spira (typically https://mycompany.spiraservice.net or https://demo-xx.spiraservice.net/mycompany)
INFLECTRA_SPIRA_USERNAME=The login name you use to access Spira
INFLECTRA_SPIRA_API_KEY=The API Key (RSS Token) you use to access the Spira REST API

Note: Make sure your API Key is active and saved in your Spira user profile.

Running the Server

# Development mode with the MCP Inspector
mcp dev src/mcp_server_spira/server.py

# Production mode using shell / command line
python -m mcp_server_spira

# Install in Claude Desktop
mcp install src/mcp_server_spira/server.py --name "Inflectra Spira Server"

Usage Examples

Get Assigned Artifacts

Get me my assigned tasks in Spira/
Get me my assigned requirements in Spira/

View Project Structure

List all projects in my organization and show me the iterations for the Development team

Development

The project is structured into feature modules, each implementing specific Inflectra Spira capabilities:

  • features/mywork: Accessing a user's assigned artifacts and updating their status/progress
  • features/projects: Project management capabilities
  • features/programs: Program management features
  • utils: Common utilities and client initialization

For more information on development, see the CLAUDE.md file.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

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

Acknowledgments

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

mcp_server_spira-1.0.0.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

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

mcp_server_spira-1.0.0-py3-none-any.whl (46.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_spira-1.0.0.tar.gz.

File metadata

  • Download URL: mcp_server_spira-1.0.0.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for mcp_server_spira-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1dde6a099d36b8278ee46bd03a0b467791b296a7410dfbc4172742f30b42f185
MD5 92bc63f5923578d69b66bd2a118665e7
BLAKE2b-256 bd4955726835cad5c5549b36e2dad1dd2e2666fb0d01f342dcec76c8b1d15d27

See more details on using hashes here.

File details

Details for the file mcp_server_spira-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_spira-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 989cfc6316c2f2ca8b83a84b525afd9920d58917e56232d9c3b7996e8ff692dd
MD5 1018f110aa637ec69830f0a3807e69ab
BLAKE2b-256 76ccead70b0ebe45237e74fdda4b85f467c3e5fbb4546c2ae7325a0721a3e62c

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