Files
Peder Bergan 0fa563436c Preserve converted PATH when starting the MCP, LSP and DAP servers (#19509)
## Description

PATH is normalized on the startup stack, but the MCP, LSP and DAP
servers create fresh configuration or evaluation stacks from the engine
state. Those stacks therefore see the original string PATH.

I merged the converted startup environment into the engine before each
server handoff. Environment and configuration files can now filter PATH
as a list in all three modes. MCP tools and debugged scripts also see
the converted PATH when configuration is disabled. Existing startup
output capture stays in place.

Regression tests cover both `env.nu` and `config.nu` in all three modes,
check the filtered PATH and verify that startup output stays out of
server stdout. Separate tests check configuration-free MCP `evaluate`
calls and DAP debug runs.

## User-facing changes (Release notes)

Fixed PATH remaining a string when starting `nu --mcp`, `--lsp` or
`--dap`. Startup files, MCP tools and debugged scripts can now use the
usual list operations on PATH.

## Additional notes

Fixes #17154.
2026-11-14 08:51:57 -06:00
..

What is this?

This folder contains tests that test Nushell as a whole, not focused on any specific component.