Skip to content

Commit e94124f

Browse files
committed
make optional
1 parent 01825c3 commit e94124f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/mcp-provider-devops/src/tools/sfDevopsCreateWorkItem.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
});
3030
type InputArgs = z.infer<typeof inputSchema>;
3131
type 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

Comments
 (0)