Skip to content
Discussion options

You must be logged in to vote

@luchezarno thanks for the kind words! Answering in order:

1. Making the agent use an existing PS console instead of spawning a new one

PowerShell.MCP is designed so that the AI owns multiple consoles and switches between them automatically. The key here is the reason parameter on start_console: when omitted, an existing standby console is reused; only when specified is a new console forcibly spawned. The LLM is also nudged via the tool description to "not pass a reason unless a separate console is actually needed," so extra consoles normally don't pile up. On top of that, consoles outlive their parent MCP process, so restarting Claude Code reconnects to existing consoles via console re-c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@luchezarno
Comment options

Answer selected by luchezarno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants