Skip to content

Bicep MCP Get File Diagnostic using Windows Paths in WSL2 #19085

@CarlOchs

Description

@CarlOchs

Bicep version
Using ms-azuretools.vscode-bicep:0.40.2
Running in WSL2

Describe the bug
The Bicep MCP operation "Get Bicep File Diagnostics" threw an error:

Error: An error occurred reading file. Could not find a part of the path 'C:\home\cjochsjr\<code-source-path>\bicep\main.bicep'.

To Reproduce
In a VSCode chat session (running in WSL2 with a bicep project loaded) with the Bicep MCP running, submit the prompt: "Check for diagnostics in my main.bicep"


**Additional context**
None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: UpvoteThis issue requires more votes to be consideredQuality Sprint: YesbugSomething isn't workingstory: bicep MCPBicep MCP server & associated tools offered in the Bicep VS Code extension

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions