Skip to content

Commit 0e2565c

Browse files
Explicit instructions for expected result format (#391)
## GitHub issue number #106 ## **Associated Risks** None ## ✅ **PR Checklist** - [X] **I have read the [contribution guidelines](https://github.com/microsoft/azure-devops-mcp/blob/main/CONTRIBUTING.md)** - [X] **I have read the [code of conduct guidelines](https://github.com/microsoft/azure-devops-mcp/blob/main/CODE_OF_CONDUCT.md)** - [X] Title of the pull request is clear and informative. - [X] 👌 Code hygiene - [ ] 🔭 Telemetry added, updated, or N/A - [ ] 📄 Documentation added, updated, or N/A - [ ] 🛡️ Automated tests added, or N/A ## 🧪 **How did you test it?** <img width="948" height="644" alt="image" src="https://github.com/user-attachments/assets/3b6bc9de-9f98-46f9-8926-e3caa23b0607" /> <img width="1070" height="928" alt="image" src="https://github.com/user-attachments/assets/0cff7735-cd8d-4dce-868f-5ca4e90f28fd" /> --------- Co-authored-by: Dan Hellem <[email protected]>
1 parent c7ac0ef commit 0e2565c

File tree

2 files changed

+406
-1
lines changed

2 files changed

+406
-1
lines changed

src/tools/testplans.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ function configureTestPlanTools(server: McpServer, tokenProvider: () => Promise<
115115
{
116116
project: z.string().describe("The unique identifier (ID or name) of the Azure DevOps project."),
117117
title: z.string().describe("The title of the test case."),
118-
steps: z.string().optional().describe("The steps to reproduce the test case. Make sure to format each step as '1. Step one|Expected result one\n2. Step two|Expected result two"),
118+
steps: z
119+
.string()
120+
.optional()
121+
.describe(
122+
"The steps to reproduce the test case. Make sure to format each step as '1. Step one|Expected result one\n2. Step two|Expected result two. USE '|' as the delimiter between step and expected result. DO NOT use '|' in the description of the step or expected result."
123+
),
119124
priority: z.number().optional().describe("The priority of the test case."),
120125
areaPath: z.string().optional().describe("The area path for the test case."),
121126
iterationPath: z.string().optional().describe("The iteration path for the test case."),

0 commit comments

Comments
 (0)