@@ -25,7 +25,7 @@ const inputSchema = z.object({
2525 usernameOrAlias : usernameOrAliasParam ,
2626 projectId : z . string ( ) . min ( 1 ) . describe ( "DevOps Center Project ID selected from list_devops_center_projects for the same org." ) ,
2727 subject : z . string ( ) . min ( 1 ) . describe ( "Work item subject." ) ,
28- description : z . string ( ) . describe ( "Work item description." ) ,
28+ description : z . string ( ) . optional ( ) . describe ( "Work item description." ) ,
2929} ) ;
3030type InputArgs = z . infer < typeof inputSchema > ;
3131type InputArgsShape = typeof inputSchema . shape ;
@@ -69,7 +69,7 @@ export class SfDevopsCreateWorkItem extends McpTool<InputArgsShape, OutputArgsSh
6969- usernameOrAlias: DevOps Center org username or alias. If missing, use 'list_all_orgs' and ask user to select the DevOps Center org.
7070- projectId: DevOps Center Project ID from list_devops_center_projects for the same org.
7171- subject: Work item subject.
72- - description: Work item description.
72+ - description: Work item description (optional) .
7373
7474**Output:**
7575- success: Whether the create succeeded.
@@ -93,7 +93,7 @@ export class SfDevopsCreateWorkItem extends McpTool<InputArgsShape, OutputArgsSh
9393 usernameOrAlias : input . usernameOrAlias ,
9494 projectId : input . projectId ,
9595 subject : input . subject ,
96- description : input . description ,
96+ description : input . description ?? "" ,
9797 } ) ;
9898
9999 const executionTime = Date . now ( ) - startTime ;
0 commit comments