Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/devrev_mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ async def handle_list_tools() -> list[types.Tool]:
"owned_by": {"type": "array", "items": {"type": "string"}, "description": "The DevRev IDs of the users who are assigned to the work item"},
"stage": {"type": "string", "description": "The stage name of the work item. Use valid_stage_transition tool to get the list of valid stages you an update to."},
"sprint": {"type": "string", "description": "The DevRev ID of the sprint to be assigned to an issue."},
"subtype": {"type": "string", "description": "The subtype of the work item. Remember to use list_subtypes tool to get the list of valid subtypes."}
},
"required": ["id", "type"],
},
Expand Down Expand Up @@ -678,6 +679,10 @@ async def handle_call_tool(
if sprint:
payload["sprint"] = sprint

subtype = arguments.get("subtype")
if subtype:
payload["custom_schema_spec"] = {"subtype": subtype, "tenant_fragment": True, "validate_required_fields": True}

response = make_devrev_request(
"works.update",
payload
Expand Down