Skip to content

Fix wrapped configuration parameters in DSC server - #1739

Merged
Steve Lee (SteveL-MSFT) merged 4 commits into
PowerShell:mainfrom
Bpoe:bpoe-microsoft-server-parameter-formats
Oct 7, 2026
Merged

Steve Lee (SteveL-MSFT) merged 4 commits into
PowerShell:mainfrom
Bpoe:bpoe-microsoft-server-parameter-formats

Conversation

@Bpoe

Copy link
Copy Markdown
Collaborator

Accept JSON and YAML parameters with or without the top-level parameters wrapper, preserving parameter-file value syntax. Add regression coverage and document supported input formats.

PR Summary

PR Context

Accept JSON and YAML parameters with or without the top-level parameters wrapper, preserving parameter-file value syntax. Add regression coverage and document supported input formats.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 7, 2026 02:08
@Bpoe

Copy link
Copy Markdown
Collaborator Author

Fixes #1738

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Bare parameters named parameters can be incorrectly interpreted as wrapper objects.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds support for bare and wrapped JSON/YAML configuration parameters in the DSC MCP server.

Changes:

  • Detects wrapped parameter input.
  • Adds regression coverage for supported formats.
  • Documents parameter syntax.
File Description
dsc/​src/​server/​invoke_dsc_config.rs Normalizes parameter input.
dsc/​tests/​dsc_server.tests.ps1 Tests bare, wrapped, and value-wrapped forms.
docs/​concepts/​dsc-mcp-server.md Documents supported formats.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread dsc/src/server/invoke_dsc_config.rs Outdated
Brandon Poe (Bpoe) and others added 3 commits October 6, 2026 19:12
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@SteveL-MSFT
Steve Lee (SteveL-MSFT) added this pull request to the merge queue Oct 7, 2026
Merged via the queue into PowerShell:main with commit 1f6d670 Oct 7, 2026
20 checks passed
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.

3 participants