en-US/PowerShell.MCP-Help.xml

<?xml version="1.0" encoding="utf-8"?>
<helpItems xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" schema="maml" xmlns="http://msh">
  <command:command>
    <command:details>
      <command:name>Get-MCPOwner</command:name>
      <maml:description>
        <maml:para>Gets information about the MCP client that owns this console.</maml:para>
      </maml:description>
      <command:verb>Get</command:verb>
      <command:noun>MCPOwner</command:noun>
    </command:details>
    <maml:description>
      <maml:para>Returns ownership information for the current PowerShell console, including
whether it is owned by an MCP proxy, the proxy's PID, the agent ID, the
client name (e.g., Claude Desktop, Claude Code, VS Code), and the name the
proxy gave the console (e.g., Lithium, as in the window title "#43036 Lithium").
 
ConsoleName is the name as the proxy gave it, so it stays the same if the window title is changed
afterwards. It is empty while the console is not owned, and until its owner has named it.</maml:para>
    </maml:description>
    <command:syntax>
      <command:syntaxItem>
        <maml:name>Get-MCPOwner</maml:name>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters />
    <command:inputTypes />
    <command:returnValues>
      <command:returnValue>
        <dev:type>
          <maml:name>PowerShell.MCP.Status</maml:name>
        </dev:type>
        <maml:description>
          <maml:para>EngineReady, Owned, ProxyPid, AgentId, ClientName, ConsoleName and LastError properties.</maml:para>
        </maml:description>
      </command:returnValue>
    </command:returnValues>
    <maml:alertSet>
      <maml:alert>
        <maml:para />
      </maml:alert>
    </maml:alertSet>
    <command:examples>
      <command:example>
        <maml:title>--------- EXAMPLE 1 ---------</maml:title>
        <maml:introduction>
          <maml:para>Get-MCPOwner</maml:para>
          <maml:para>&#x80;</maml:para>
          <maml:para>EngineReady : True
Owned : True
ProxyPid : 22208
AgentId : cc19706b
ClientName : Claude Desktop
ConsoleName : Lithium
LastError :</maml:para>
        </maml:introduction>
        <dev:code />
        <dev:remarks />
      </command:example>
      <command:example>
        <maml:title>--------- EXAMPLE 2 ---------</maml:title>
        <maml:introduction>
          <maml:para>Get-MCPOwner</maml:para>
          <maml:para>&#x80;</maml:para>
          <maml:para>EngineReady : True
Owned : False
ProxyPid :
AgentId :
ClientName :
ConsoleName :
LastError :</maml:para>
        </maml:introduction>
        <dev:code />
        <dev:remarks />
      </command:example>
    </command:examples>
    <command:relatedLinks>
      <maml:navigationLink>
        <maml:linkText>Online Version</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Get-MCPProxyPath</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Register-PwshToClaudeCode</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Register-PwshToClaudeDesktop</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Stop-AllPwsh</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
    </command:relatedLinks>
  </command:command>
  <command:command>
    <command:details>
      <command:name>Get-MCPProxyPath</command:name>
      <maml:description>
        <maml:para>Gets the path to the PowerShell.MCP.Proxy executable for the current platform.</maml:para>
      </maml:description>
      <command:verb>Get</command:verb>
      <command:noun>MCPProxyPath</command:noun>
    </command:details>
    <maml:description>
      <maml:para>Returns the full path to the platform-specific PowerShell.MCP.Proxy executable.
Use this path in your MCP client configuration.</maml:para>
    </maml:description>
    <command:syntax>
      <command:syntaxItem>
        <maml:name>Get-MCPProxyPath</maml:name>
        <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>Escape</maml:name>
          <maml:description />
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          </dev:type>
        </command:parameter>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters>
      <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="Named" aliases="none">
        <maml:name>Escape</maml:name>
        <maml:description>
          <maml:para>If specified, escapes backslashes for use in JSON configuration files.</maml:para>
        </maml:description>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
        </dev:type>
      </command:parameter>
    </command:parameters>
    <command:inputTypes />
    <command:returnValues>
      <command:returnValue>
        <dev:type>
          <maml:name>System.String</maml:name>
        </dev:type>
        <maml:description>
          <maml:para>Full path to the PowerShell.MCP.Proxy executable for the current platform.</maml:para>
        </maml:description>
      </command:returnValue>
    </command:returnValues>
    <maml:alertSet>
      <maml:alert>
        <maml:para />
      </maml:alert>
    </maml:alertSet>
    <command:examples>
      <command:example>
        <maml:title>--------- EXAMPLE 1 ---------</maml:title>
        <maml:introduction>
          <maml:para>Get-MCPProxyPath
Returns: C:\Program Files\PowerShell\7\Modules\PowerShell.MCP\bin\win-x64\PowerShell.MCP.Proxy.exe</maml:para>
        </maml:introduction>
        <dev:code />
        <dev:remarks />
      </command:example>
      <command:example>
        <maml:title>--------- EXAMPLE 2 ---------</maml:title>
        <maml:introduction>
          <maml:para>Get-MCPProxyPath -Escape
Returns: C:\\Program Files\\PowerShell\\7\\Modules\\PowerShell.MCP\\bin\\win-x64\\PowerShell.MCP.Proxy.exe</maml:para>
        </maml:introduction>
        <dev:code />
        <dev:remarks />
      </command:example>
    </command:examples>
    <command:relatedLinks>
      <maml:navigationLink>
        <maml:linkText>Online Version</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Get-MCPOwner</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Register-PwshToClaudeCode</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Register-PwshToClaudeDesktop</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Stop-AllPwsh</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
    </command:relatedLinks>
  </command:command>
  <command:command>
    <command:details>
      <command:name>Register-PwshToClaudeCode</command:name>
      <maml:description>
        <maml:para>Registers PowerShell.MCP as an MCP server in Claude Code.</maml:para>
      </maml:description>
      <command:verb>Register</command:verb>
      <command:noun>PwshToClaudeCode</command:noun>
    </command:details>
    <maml:description>
      <maml:para>Registers this module's proxy executable as the 'pwsh' MCP server at user scope, via the claude CLI.
 
The registration serves both the Claude Code CLI and the local Code sessions of the Claude Desktop
app, which read the same settings. (A cloud Code session does not run servers on this machine.) The
app's chat sessions read a file of their own; register it there with Register-PwshToClaudeDesktop.
 
If a 'pwsh' entry already exists at that scope (typically written by an earlier install, and still
pointing at that install's proxy), it is replaced, because 'claude mcp add' refuses a name that is
already registered.
The old entry is read as stored in Claude Code's .claude.json and only its command is repointed, so
its arguments (proxy flags such as --no-profile), environment variables (settings such as
POWERSHELL_MCP_TIMEOUT_CEILING) and any other field carry over exactly; the new entry is added with
'claude mcp add-json'. If it cannot be added, the old one is put back.
-ConsoleLaunch and -NoProfile set those two proxy flags on the new entry; a parameter that is not
given leaves its flag as it is.
 
An entry at local or project scope for the current directory takes precedence over the user-scope
entry there. It is left alone, and a warning names it.
 
A legacy "PowerShell" entry pointing at PowerShell.MCP.Proxy is removed first.
 
Claude Code can also run commands in hidden shells of its own: the built-in Bash and PowerShell
tools. The user cannot see what runs there, and the AI tends to reach for them out of habit.
Once registration succeeds, the cmdlet offers to disable them by adding "Bash" and "PowerShell"
to permissions.deny in the user settings (~/.claude/settings.json, or settings.json under
CLAUDE_CONFIG_DIR).
It asks when it runs in an interactive console, including when an AI runs it through the pwsh
MCP server (the question appears in the shared console, for the user to answer).
Anywhere it cannot ask, it changes nothing and explains the parameters below instead.</maml:para>
    </maml:description>
    <command:syntax>
      <command:syntaxItem>
        <maml:name>Register-PwshToClaudeCode</maml:name>
        <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>ConsoleLaunch</maml:name>
          <maml:description />
          <command:parameterValueGroup>
            <command:parameterValue required="false" variableLength="false">Auto</command:parameterValue>
            <command:parameterValue required="false" variableLength="false">Handoff</command:parameterValue>
            <command:parameterValue required="false" variableLength="false">Minimized</command:parameterValue>
          </command:parameterValueGroup>
          <command:parameterValue required="true" variableLength="false">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
          </dev:type>
        </command:parameter>
        <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>NoProfile</maml:name>
          <maml:description />
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          </dev:type>
        </command:parameter>
      </command:syntaxItem>
      <command:syntaxItem>
        <maml:name>Register-PwshToClaudeCode</maml:name>
        <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>DisableBuiltInShellTools</maml:name>
          <maml:description />
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          </dev:type>
        </command:parameter>
        <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>ConsoleLaunch</maml:name>
          <maml:description />
          <command:parameterValueGroup>
            <command:parameterValue required="false" variableLength="false">Auto</command:parameterValue>
            <command:parameterValue required="false" variableLength="false">Handoff</command:parameterValue>
            <command:parameterValue required="false" variableLength="false">Minimized</command:parameterValue>
          </command:parameterValueGroup>
          <command:parameterValue required="true" variableLength="false">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
          </dev:type>
        </command:parameter>
        <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>NoProfile</maml:name>
          <maml:description />
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          </dev:type>
        </command:parameter>
      </command:syntaxItem>
      <command:syntaxItem>
        <maml:name>Register-PwshToClaudeCode</maml:name>
        <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>KeepBuiltInShellTools</maml:name>
          <maml:description />
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          </dev:type>
        </command:parameter>
        <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>ConsoleLaunch</maml:name>
          <maml:description />
          <command:parameterValueGroup>
            <command:parameterValue required="false" variableLength="false">Auto</command:parameterValue>
            <command:parameterValue required="false" variableLength="false">Handoff</command:parameterValue>
            <command:parameterValue required="false" variableLength="false">Minimized</command:parameterValue>
          </command:parameterValueGroup>
          <command:parameterValue required="true" variableLength="false">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
          </dev:type>
        </command:parameter>
        <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>NoProfile</maml:name>
          <maml:description />
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          </dev:type>
        </command:parameter>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters>
      <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="Named" aliases="none">
        <maml:name>ConsoleLaunch</maml:name>
        <maml:description>
          <maml:para>Sets the proxy's --console-launch option: how consoles open on Windows.
Minimized opens a minimized classic console window that never takes the keyboard focus; Handoff is
the launch before 1.17.0; Auto, the default, removes the option.
Not given, the entry keeps what it has. No effect on macOS and Linux.</maml:para>
        </maml:description>
        <command:parameterValueGroup>
          <command:parameterValue required="false" variableLength="false">Auto</command:parameterValue>
          <command:parameterValue required="false" variableLength="false">Handoff</command:parameterValue>
          <command:parameterValue required="false" variableLength="false">Minimized</command:parameterValue>
        </command:parameterValueGroup>
        <command:parameterValue required="true" variableLength="true">System.String</command:parameterValue>
        <dev:type>
          <maml:name>System.String</maml:name>
        </dev:type>
      </command:parameter>
      <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="Named" aliases="none">
        <maml:name>DisableBuiltInShellTools</maml:name>
        <maml:description>
          <maml:para>Disables Claude Code's built-in Bash and PowerShell tools without asking, so that every command
runs in the pwsh console where the user can see it.
If the pwsh MCP server ever fails to start, Claude Code then has no shell until "Bash" and
"PowerShell" are removed from permissions.deny again.</maml:para>
        </maml:description>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
        </dev:type>
      </command:parameter>
      <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="Named" aliases="none">
        <maml:name>KeepBuiltInShellTools</maml:name>
        <maml:description>
          <maml:para>Leaves the built-in tools as they are, without asking.</maml:para>
        </maml:description>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
        </dev:type>
      </command:parameter>
      <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="Named" aliases="none">
        <maml:name>NoProfile</maml:name>
        <maml:description>
          <maml:para>Adds the proxy's --no-profile option, so consoles start without your $PROFILE.
-NoProfile:$false removes it. Not given, the entry keeps what it has.</maml:para>
        </maml:description>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
        </dev:type>
      </command:parameter>
    </command:parameters>
    <command:inputTypes />
    <command:returnValues>
      <command:returnValue>
        <dev:type>
          <maml:name>None. Passes through output from the claude CLI.</maml:name>
        </dev:type>
        <maml:description>
          <maml:para>None.</maml:para>
        </maml:description>
      </command:returnValue>
    </command:returnValues>
    <maml:alertSet>
      <maml:alert>
        <maml:para />
      </maml:alert>
    </maml:alertSet>
    <command:examples>
      <command:example>
        <maml:title>--------- EXAMPLE 1 ---------</maml:title>
        <maml:introduction>
          <maml:para>Register-PwshToClaudeCode</maml:para>
          <maml:para>&#x80;</maml:para>
          <maml:para>Registers the server, then asks whether to disable the built-in shell tools (recommended; Yes is the default).</maml:para>
        </maml:introduction>
        <dev:code />
        <dev:remarks />
      </command:example>
      <command:example>
        <maml:title>--------- EXAMPLE 2 ---------</maml:title>
        <maml:introduction>
          <maml:para>Register-PwshToClaudeCode -DisableBuiltInShellTools</maml:para>
          <maml:para>&#x80;</maml:para>
          <maml:para>Registers the server and disables the built-in shell tools without asking.</maml:para>
        </maml:introduction>
        <dev:code />
        <dev:remarks />
      </command:example>
      <command:example>
        <maml:title>--------- EXAMPLE 3 ---------</maml:title>
        <maml:introduction>
          <maml:para>Update-Module PowerShell.MCP
Register-PwshToClaudeCode</maml:para>
          <maml:para>&#x80;</maml:para>
          <maml:para>Points Claude Code at the proxy of the version just installed.</maml:para>
        </maml:introduction>
        <dev:code />
        <dev:remarks />
      </command:example>
      <command:example>
        <maml:title>--------- EXAMPLE 4 ---------</maml:title>
        <maml:introduction>
          <maml:para>Register-PwshToClaudeCode -ConsoleLaunch Minimized</maml:para>
          <maml:para>&#x80;</maml:para>
          <maml:para>Registers the server with consoles opening minimized on Windows, without taking the keyboard focus.
Later re-registrations keep the option.</maml:para>
        </maml:introduction>
        <dev:code />
        <dev:remarks />
      </command:example>
    </command:examples>
    <command:relatedLinks>
      <maml:navigationLink>
        <maml:linkText>Online Version</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Register-PwshToClaudeDesktop</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
    </command:relatedLinks>
  </command:command>
  <command:command>
    <command:details>
      <command:name>Register-PwshToClaudeDesktop</command:name>
      <maml:description>
        <maml:para>Registers PowerShell.MCP as an MCP server in Claude Desktop.</maml:para>
      </maml:description>
      <command:verb>Register</command:verb>
      <command:noun>PwshToClaudeDesktop</command:noun>
    </command:details>
    <maml:description>
      <maml:para>Adds or updates the 'pwsh' entry in Claude Desktop's claude_desktop_config.json. Existing settings in
the file are preserved, including the entry's own 'args' and 'env': only its command is repointed at
this module's proxy, so proxy flags (such as --no-profile) and environment settings (such as
POWERSHELL_MCP_TIMEOUT_CEILING) survive a re-registration.
 
-ConsoleLaunch and -NoProfile set those two proxy flags in the entry's 'args'; a parameter that is
not given leaves its flag as it is.
 
This registers the server for the Claude Desktop app's chat sessions. A Code session in the app
reads the same settings as the Claude Code CLI; register it there with Register-PwshToClaudeCode.
 
The file is found where the installed Claude Desktop reads it. On Windows that is
%LOCALAPPDATA%\Claude-Data\claude_&lt;id&gt;\ for the Microsoft Store version from 3.1623 on, the
package's LocalCache\Roaming\Claude\ for older Store versions, and %APPDATA%\Claude\ otherwise.
-ConfigPath names the file directly.
 
A file that is not valid JSON is left unchanged, with an error. The new content is written to a
temporary file first and then moved over the old one, so an interrupted write cannot leave it
half-written.</maml:para>
    </maml:description>
    <command:syntax>
      <command:syntaxItem>
        <maml:name>Register-PwshToClaudeDesktop</maml:name>
        <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>ConsoleLaunch</maml:name>
          <maml:description />
          <command:parameterValueGroup>
            <command:parameterValue required="false" variableLength="false">Auto</command:parameterValue>
            <command:parameterValue required="false" variableLength="false">Handoff</command:parameterValue>
            <command:parameterValue required="false" variableLength="false">Minimized</command:parameterValue>
          </command:parameterValueGroup>
          <command:parameterValue required="true" variableLength="false">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
          </dev:type>
        </command:parameter>
        <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>NoProfile</maml:name>
          <maml:description />
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          </dev:type>
        </command:parameter>
        <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>ConfigPath</maml:name>
          <maml:description />
          <command:parameterValue required="true" variableLength="false">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
          </dev:type>
        </command:parameter>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters>
      <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="Named" aliases="none">
        <maml:name>ConfigPath</maml:name>
        <maml:description>
          <maml:para>The claude_desktop_config.json to edit, for when Claude Desktop reads it from somewhere this cmdlet
does not look. Not given, the cmdlet finds it as described above.</maml:para>
        </maml:description>
        <command:parameterValue required="true" variableLength="true">System.String</command:parameterValue>
        <dev:type>
          <maml:name>System.String</maml:name>
        </dev:type>
      </command:parameter>
      <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="Named" aliases="none">
        <maml:name>ConsoleLaunch</maml:name>
        <maml:description>
          <maml:para>Sets the proxy's --console-launch option: how consoles open on Windows.
Minimized opens a minimized classic console window that never takes the keyboard focus; Handoff is
the launch before 1.17.0; Auto, the default, removes the option.
Not given, the entry keeps what it has. No effect on macOS and Linux.</maml:para>
        </maml:description>
        <command:parameterValueGroup>
          <command:parameterValue required="false" variableLength="false">Auto</command:parameterValue>
          <command:parameterValue required="false" variableLength="false">Handoff</command:parameterValue>
          <command:parameterValue required="false" variableLength="false">Minimized</command:parameterValue>
        </command:parameterValueGroup>
        <command:parameterValue required="true" variableLength="true">System.String</command:parameterValue>
        <dev:type>
          <maml:name>System.String</maml:name>
        </dev:type>
      </command:parameter>
      <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="Named" aliases="none">
        <maml:name>NoProfile</maml:name>
        <maml:description>
          <maml:para>Adds the proxy's --no-profile option, so consoles start without your $PROFILE.
-NoProfile:$false removes it. Not given, the entry keeps what it has.</maml:para>
        </maml:description>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
        </dev:type>
      </command:parameter>
    </command:parameters>
    <command:inputTypes />
    <command:returnValues>
      <command:returnValue>
        <dev:type>
          <maml:name>System.Object</maml:name>
        </dev:type>
        <maml:description>
          <maml:para>None.</maml:para>
        </maml:description>
      </command:returnValue>
    </command:returnValues>
    <maml:alertSet>
      <maml:alert>
        <maml:para />
      </maml:alert>
    </maml:alertSet>
    <command:examples>
      <command:example>
        <maml:title>--------- Example 1 ---------</maml:title>
        <maml:introduction>
          <maml:para>Register-PwshToClaudeDesktop</maml:para>
          <maml:para>&#x80;</maml:para>
          <maml:para>Registers PowerShell.MCP in Claude Desktop configuration.</maml:para>
        </maml:introduction>
        <dev:code />
        <dev:remarks />
      </command:example>
      <command:example>
        <maml:title>--------- Example 2 ---------</maml:title>
        <maml:introduction>
          <maml:para>Register-PwshToClaudeDesktop -ConsoleLaunch Minimized</maml:para>
          <maml:para>&#x80;</maml:para>
          <maml:para>Registers it with consoles opening minimized on Windows, without taking the keyboard focus. Later
re-registrations keep the option.</maml:para>
        </maml:introduction>
        <dev:code />
        <dev:remarks />
      </command:example>
    </command:examples>
    <command:relatedLinks>
      <maml:navigationLink>
        <maml:linkText>Online Version</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Register-PwshToClaudeCode</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Get-MCPOwner</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Get-MCPProxyPath</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Stop-AllPwsh</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
    </command:relatedLinks>
  </command:command>
  <command:command>
    <command:details>
      <command:name>Stop-AllPwsh</command:name>
      <maml:description>
        <maml:para>Stops all pwsh processes to release DLL locks.</maml:para>
      </maml:description>
      <command:verb>Stop</command:verb>
      <command:noun>AllPwsh</command:noun>
    </command:details>
    <maml:description>
      <maml:para>Stops all pwsh processes on the system to release DLL locks.
Useful for PowerShell module developers before dotnet build.
 
With -PwshPath: starts a new pwsh session from the specified binary with
PowerShell.MCP loaded, then stops all other pwsh processes.
 
WARNING: This stops ALL pwsh processes, including those used by other users
or other MCP clients on the same machine.</maml:para>
    </maml:description>
    <command:syntax>
      <command:syntaxItem>
        <maml:name>Stop-AllPwsh</maml:name>
        <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="0" aliases="none">
          <maml:name>PwshPath</maml:name>
          <maml:description />
          <command:parameterValue required="true" variableLength="false">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
          </dev:type>
        </command:parameter>
        <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>WhatIf</maml:name>
          <maml:description />
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          </dev:type>
        </command:parameter>
        <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named" aliases="none">
          <maml:name>Confirm</maml:name>
          <maml:description />
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          </dev:type>
        </command:parameter>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters>
      <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="Named" aliases="cf">
        <maml:name>Confirm</maml:name>
        <maml:description>
          <maml:para>Prompts you for confirmation before running the cmdlet.</maml:para>
        </maml:description>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
        </dev:type>
      </command:parameter>
      <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="0" aliases="none">
        <maml:name>PwshPath</maml:name>
        <maml:description>
          <maml:para>Path to the pwsh binary to start.
If specified, a new session is started
from this binary with PowerShell.MCP imported before stopping other processes.</maml:para>
        </maml:description>
        <command:parameterValue required="true" variableLength="true">System.String</command:parameterValue>
        <dev:type>
          <maml:name>System.String</maml:name>
        </dev:type>
      </command:parameter>
      <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="Named" aliases="wi">
        <maml:name>WhatIf</maml:name>
        <maml:description>
          <maml:para>Runs the command in a mode that only reports what would happen without performing the actions.</maml:para>
        </maml:description>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
        </dev:type>
      </command:parameter>
    </command:parameters>
    <command:inputTypes />
    <command:returnValues />
    <maml:alertSet>
      <maml:alert>
        <maml:para />
      </maml:alert>
    </maml:alertSet>
    <command:examples>
      <command:example>
        <maml:title>--------- EXAMPLE 1 ---------</maml:title>
        <maml:introduction>
          <maml:para>Stop-AllPwsh
Stops all pwsh processes. Use before rebuilding a PowerShell module to release DLL locks.</maml:para>
        </maml:introduction>
        <dev:code />
        <dev:remarks />
      </command:example>
      <command:example>
        <maml:title>--------- EXAMPLE 2 ---------</maml:title>
        <maml:introduction>
          <maml:para>Stop-AllPwsh -PwshPath (Get-PSOutput)
Starts a new session using the built pwsh binary, then stops all other pwsh processes.
Use in the PowerShell repository after Start-PSBuild.</maml:para>
        </maml:introduction>
        <dev:code />
        <dev:remarks />
      </command:example>
    </command:examples>
    <command:relatedLinks>
      <maml:navigationLink>
        <maml:linkText>Online Version</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Get-MCPOwner</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Get-MCPProxyPath</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Register-PwshToClaudeCode</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
      <maml:navigationLink>
        <maml:linkText>Register-PwshToClaudeDesktop</maml:linkText>
        <maml:uri />
      </maml:navigationLink>
    </command:relatedLinks>
  </command:command>
</helpItems>