MCP Server for Spira, enabling LLMs to create and manage requirements, test cases, and test steps.
- Requirements Management: Create, retrieve, and update feature requirements with priority status
- Test Case Management: Create and retrieve detailed test cases linked to requirements
- Test Steps Support: Create test steps for test cases
-
create-requirement- Create a feature requirement with status set as High on Spira
- Inputs:
name(string): Name of the requirement
-
get-requirement-by-id- Fetch a requirement by its ID from Spira
- Inputs:
requirementId(number): ID of the requirement to fetch
-
update-requirement- Update an existing requirement in Spira
- Inputs:
requirementId(number): ID of the requirement to updatename(string, optional): New name for the requirementdescription(string, optional): New description for the requirementimportanceId(number, optional): New importance IDstatusId(number, optional): New status IDrequirementTypeId(number, optional): New requirement type ID
-
create-test-case- Create a test case on Spira
- Inputs:
name(string): Test case namedescription(string): Detailed test case descriptionrelease(string): Release to associate with the test caserequirements(string[]): Array of requirements to link to this test case
-
get-test-case-by-id- Fetch a test case by its ID from Spira
- Inputs:
testCaseId(number): ID of the test case to fetch
-
create-test-step- Create test step for a given test case
- Inputs:
testCaseId(string): ID of the test case to add steps todescription(string): Description of the test stepexpectedResult(string): Expected result of the test stepposition(string): Position/order of the test step
- Node.js (v14 or higher)
- npm or yarn package manager
- A Spira api token
# Install dependencies
npm install
# Build the project
npm run buildTo use this MCP server, you need to generate an API token from your Spira instance:
- Make sure you are logged in to your Spira application
- Click on your user avatar from the top right of any page in the app
- From the dropdown click your name
- This opens your user profile. Scroll down until you see the label "Enable RSS Feeds"
- Make sure "Enable RSS Feeds" is set to "Yes"
- Look at the "RSS / API Key": if this is blank, click "Generate New"
- You can now click on the RSS key to copy it automatically to your clipboard
To use this with Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-spira": {
"env": {
"SPIRA_BASE_URL": "https://yourcompany.spiraservice.net/services/v5_0/RestService.svc",
"SPIRA_USERNAME": "your_username",
"SPIRA_API_KEY": "{your_token}",
"SPIRA_PROJECT_ID": "project_id"
},
"args": ["@gitfudge0/mcp-spira"],
"command": "npx",
"disabled": false
}
}
}After setting up the MCP server, you can use it with Claude to:
-
Create requirements:
Please create a requirement for adding user authentication to our system -
Fetch a requirement:
Can you fetch the requirement with ID 123 for me? -
Create test cases:
Create a test case for verifying that a user can log in with valid credentials -
Fetch a test case:
Can you get the details of test case with ID 456? -
Create test steps:
Add a test step to test case 456 for verifying the login button is clickable
This project is licensed under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request