Skip to content

Feature/stage tool #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 30, 2025
Merged

Feature/stage tool #26

merged 5 commits into from
Jun 30, 2025

Conversation

floatingIce91
Copy link
Contributor

@floatingIce91 floatingIce91 commented Jun 26, 2025

Add Valid Stage Transition Tool

https://app.devrev.ai/devrev/works/ISS-187541

Overview

Added mcp_devrev_valid_stage_transition tool to retrieve available stage transitions for DevRev work items and parts.

Features

  • Multi-type Support: Works with issues (ISS-), tickets (TKT-), and enhancements (ENH-)
  • Workflow Validation: Returns only valid stage transitions from current stage
  • Complete Transition Data: Provides both stage names and internal IDs
  • Support Subtypes: Works with custom types

Usage

# Get valid transitions for an issue
valid_transitions = mcp_devrev_valid_stage_transition(type="issue", id="ISS-12345")

Benefits

  • Prevents invalid stage transition attempts
  • Enables workflow automation with valid transition data
  • Provides clear visibility into available next steps

Returns

List of valid transitions with:

  • Target stage name (e.g., "completed", "in_review")
  • Target stage ID for API operations

This tool enhances DevRev workflow management by ensuring users only attempt valid stage transitions.

@floatingIce91 floatingIce91 requested a review from a team as a code owner June 26, 2025 11:49
@shivam-gupta-devrev
Copy link
Contributor

Let's do some extensive testing here before merging.

@floatingIce91
Copy link
Contributor Author

Yeah I will do it before merging

@floatingIce91 floatingIce91 merged commit 9a0eb39 into main Jun 30, 2025
2 checks passed
@floatingIce91 floatingIce91 deleted the feature/stageTool branch June 30, 2025 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants