You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,20 +28,26 @@ This package supports WSL environments where PhpStorm runs on native Windows and
28
28
- Check if installed: `wslvar -v`
29
29
- Install if needed: `sudo apt install wslu`
30
30
31
-
#### How it works
31
+
<details>
32
+
<summary>How it works</summary>
33
+
32
34
1.**Detection**: Automatically detects WSL environment by checking `WSL_DISTRO_NAME` environment variable
33
35
2.**Username Resolution**: Uses `wslvar USERNAME` to get Windows username (WSL and Windows usernames may differ)
34
36
3.**File Writing**: Writes MCP config to Windows side via PowerShell commands
35
37
- Creates temporary file in Windows `%TEMP%` directory
36
38
- Uses Base64 encoding to safely transfer JSON content
37
39
- Copies to final location: `%LOCALAPPDATA%\github-copilot\intellij\mcp.json`
38
40
4.**Path Handling**: Converts WSL paths to Windows paths for absolute command and artisan paths
41
+
</details>
42
+
43
+
<details>
44
+
<summary>Troubleshooting WSL</summary>
39
45
40
-
#### Troubleshooting WSL
41
46
- Ensure `wslu` is installed and `wslvar` command works
42
47
- Check that PowerShell is accessible from WSL with `powershell.exe -Command "Write-Output 'test'"`
43
48
- Verify Windows username with `wslvar USERNAME`
44
49
- If MCP config file is not created, check Windows directory permissions
50
+
</details>
45
51
46
52
#### Alternative for WSL
47
53
If you encounter issues with WSL setup, consider using [laravel-boost-copilot-cli](https://github.com/invokable/laravel-boost-copilot-cli) which uses a different approach better suited for some WSL configurations.
0 commit comments