File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ impl McpServer {
22
22
Self {
23
23
tool_router :
24
24
Self :: invoke_dsc_resource_router ( )
25
+ + Self :: list_dsc_functions_router ( )
25
26
+ Self :: list_dsc_resources_router ( )
26
27
+ Self :: show_dsc_resource_router ( )
27
- + Self :: list_dsc_functions_router ( ) ,
28
28
}
29
29
}
30
30
}
Original file line number Diff line number Diff line change @@ -17,9 +17,16 @@ Describe 'Tests for MCP server' {
17
17
$mcp.StandardInput.WriteLine ($request )
18
18
$mcp.StandardInput.Flush ()
19
19
if (! $notify ) {
20
+ write-verbose - verbose " peeking stdout"
20
21
while ($mcp.StandardOutput.Peek () -eq -1 ) {
21
22
Start-Sleep - Milliseconds 100
22
23
}
24
+ write-verbose - verbose " peeking stderr"
25
+ while ($mcp.StandardError.Peek () -ne -1 ) {
26
+ $stderr = $mcp.StandardError.ReadLine ()
27
+ Write-Verbose - Verbose " MCP STDERR: $stderr "
28
+ }
29
+ write-verbose - verbose " reading stdout"
23
30
$stdout = $mcp.StandardOutput.ReadLine ()
24
31
return ($stdout | ConvertFrom-Json - Depth 30 )
25
32
}
@@ -163,7 +170,9 @@ Describe 'Tests for MCP server' {
163
170
}
164
171
165
172
It ' Calling show_dsc_resource works' {
173
+ write-verbose - verbose " Listing resources to get a resource type"
166
174
$resource = (dsc resource list | Select-Object - First 1 | ConvertFrom-Json - Depth 20 )
175
+ write-verbose - verbose " Using resource type '$ ( $resource.type ) ' for show_dsc_resource test"
167
176
168
177
$mcpRequest = @ {
169
178
jsonrpc = " 2.0"
You can’t perform that action at this time.
0 commit comments