Skip to main content

User Story INVEST Analyzer

A tool for analyzing user stories using the INVEST criteria and providing improvement recommendations.

Installation

pip install refine-user-story-mcp

Setup

  1. Create a .env file with your Groq API credentials:
GROQ_API_KEY=your_groq_api_key_here
GROQ_MODEL=mixtral-8x7b-32768
  1. Import and use the tool in your Python code:
from refine_user_story_mcp import invest_analyze

# Sample user story
user_story = {
    "UserStory": {
        "Title": "User Registration",
        "Description": "As a website visitor, I want to register an account so that I can access member features.",
        "AcceptanceCriteria": [
            "User can enter email and password",
            "System validates email format",
            "User receives confirmation email"
        ],
        "AdditionalInformation": "Registration should be quick and intuitive."
    }
}

# Analyze the user story
result = invest_analyze(user_story=user_story, format_output=True)
print(result["content"][0]["text"])

Features

  • Analyzes user stories based on the INVEST criteria (Independent, Negotiable, Valuable, Estimable, Small, Testable)
  • Scores each criterion on a scale of 1-5
  • Provides detailed explanations and recommendations
  • Suggests improvements to the original user story
  • Returns results in either formatted text or raw JSON

Usage as MCP Tool

You can also use this as an MCP (Multi-Agent Conversational Protocol) tool:

from mcp.client import MCPClient

client = MCPClient()
client.register_tool("refine_user_story_mcp")

result = client.call_tool("invest_analyze", {"user_story": user_story})

License

MIT

Metadata

Release files for refine-user-story-mcp 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for refine-user-story-mcp 0.4.0
File Size Uploaded Provenance
refine_user_story_mcp-0.4.0.tar.gz 7.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for refine-user-story-mcp 0.4.0
File Interpreter ABI Platform
refine_user_story_mcp-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / refine_user_story_mcp-0.4.0.tar.gz

Download URL refine_user_story_mcp-0.4.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5cc89db43074905715e45d2d801717da05e09ffa47397a25e06e7bf43dd6b5e3
BLAKE2b-256 checksum
How to use checksums
c30436a65d78f69807f576a9e610f6e43a294eb0f5a36cb2310b7093b5220a54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / refine_user_story_mcp-0.4.0-py3-none-any.whl

Download URL refine_user_story_mcp-0.4.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e410083b86cbb8c3959905417e7ae9c0e9dfdeb44c9b9a5c25e31f5c269c597f
BLAKE2b-256 checksum
How to use checksums
d43c6d1269f383467e9a282d0053e8ad0ccd47c0fec72f7b8701f26b410d7220
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Security for refine-user-story-mcp 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page