@@ -11,8 +11,8 @@ title: Using DSC with Model Context Protocol (MCP) Server
11
11
12
12
Microsoft's Desired State Configuration (DSC) platform includes a built-in Model Context Protocol
13
13
(MCP) server that enables AI agents and development tools to interact with DSC resources and
14
- functions through a standardized interface. This integration provides intelligent assistance for
15
- discovering, invoking, and understanding DSC resources and functions on your system.
14
+ configurations through a standardized interface. This integration provides intelligent assistance
15
+ for discovering, invoking, and understanding DSC resources and functions on your system.
16
16
17
17
The DSC MCP server exposes DSC's core functionality to AI agents, enabling them to help you
18
18
discover resources, understand their schemas, and work with DSC functions in an intelligent way.
@@ -32,38 +32,46 @@ Model Context Protocol (MCP) is an open standard that enables AI agents to secur
32
32
external data sources and tools. To learn more about MCP and how it works with AI agents, see
33
33
[ Use MCP servers in VS Code] [ 00 ] .
34
34
35
- ## Available DSC MCP tools
35
+ ## How AI agents use DSC MCP tools
36
36
37
- The DSC MCP server provides three core tools for AI agents to interact with your DSC environment:
37
+ The DSC MCP server enables AI agents to intelligently assist you by understanding what's
38
+ available in your local DSC environment. Here's how agents use these capabilities to help
39
+ fulfill your requests:
38
40
39
- ### ` list_dsc_resources `
41
+ ### Discovering available resources
40
42
41
- Lists summary information for all DSC resources available on the local machine, including:
43
+ When you ask an agent to help with system configuration tasks, the agent can discover what DSC
44
+ resources are available on your machine. For example:
42
45
43
- - Resource type name and kind
44
- - Description and capabilities
45
- - Adapter requirements (for adapted resources)
46
+ - ** You ask** : "How can I manage Windows registry settings?"
47
+ - ** Agent discovers** : The ` Microsoft.Windows/Registry ` resource is available
48
+ - ** Agent provides** : Specific guidance on using that resource for your registry management
49
+ needs
46
50
47
- You can optionally filter to show only adapted resources that require a specific adapter type.
51
+ This discovery helps agents provide accurate, system-specific recommendations rather than
52
+ generic advice.
48
53
49
- ### ` show_dsc_resource `
54
+ ### Understanding resource capabilities
50
55
51
- Retrieves detailed information about a specific DSC resource, including:
56
+ When you need to configure something specific, agents can examine the exact properties and
57
+ capabilities of relevant resources. For instance:
52
58
53
- - Complete resource metadata (type, version, capabilities, author)
54
- - Full JSON schema for the resource's properties
55
- - Resource kind and description
59
+ - ** You ask ** : "I need to configure a Windows service to start automatically"
60
+ - ** Agent examines ** : The ` Microsoft.Windows/WindowsService ` resource schema
61
+ - ** Agent provides ** : The exact property names and valid values needed for your configuration
56
62
57
- ### ` list_dsc_functions `
63
+ This ensures the guidance you receive matches what's actually available on your system.
58
64
59
- Enumerates all available DSC functions that can be used in configuration expressions, with:
65
+ ### Working with DSC functions
60
66
61
- - Function names, categories, and descriptions
62
- - Function metadata and usage information
63
- - Optional filtering by function name patterns (supports wildcards)
67
+ When you're building configuration expressions, agents can discover what functions are available
68
+ to help solve your specific needs:
64
69
65
- These tools provide AI agents with information about your local DSC environment,
66
- enabling them to provide guidance and assistance when working with DSC configurations.
70
+ - ** You ask** : "How do I combine multiple arrays in a DSC configuration?"
71
+ - ** Agent discovers** : Functions like ` union() ` , ` intersection() ` , and ` concat() ` are available
72
+ - ** Agent provides** : Examples using the appropriate function for your use case
73
+
74
+ This helps agents suggest the most suitable approach using your available DSC capabilities.
67
75
68
76
> [ !NOTE]
69
77
> Additional MCP tools will become available in future releases to expand the capabilities
0 commit comments