Jumpshell MCP Server
Jumpshell exposes module functions as MCP tools over stdio so chat agents can call them directly.
Canonical Paths
- Runtime server script:
src/pwsh/mcp/server.ps1 - MCP config installer script:
src/pwsh/mcp/Install-Mcp.ps1 - Module MCP management functions:
src/pwsh/Mcp.ps1 - MCP template used by extension packaging:
mcps/jumpshell.json
Legacy root-level mcp/ compatibility files were removed.
Setup Paths
Option A: VS Code/Cursor Extension (recommended)
Run command:
Jumpshell: Install MCP Configuration
Relevant extension settings:
jumpshell.installMcpOnSkillsInstalljumpshell.mcpConfigScope(userorworkspace)jumpshell.workspaceMcpDirectory(auto,vscode, orcursor)jumpshell.moduleRootPath(optional explicit module/repo path)
Option B: Module command
Import-Module .\Jumpshell.psd1 -Force
Install-JumpshellMcp -Scope User
# or
Install-JumpshellMcp -Scope Workspace
Option C: Direct script
pwsh ./src/pwsh/mcp/Install-Mcp.ps1 -ModuleRoot (Resolve-Path .) -Scope User
Runtime Lifecycle Commands
Import-Module .\Jumpshell.psd1 -Force
Get-JumpshellMcp
Start-JumpshellMcpServer
Stop-JumpshellMcpServer -Force
Autostart Behavior
On module import, Jumpshell attempts:
Start-JumpshellMcpServer -OnImport -Quiet
Autostart is skipped when:
JUMPSHELL_MCP_DISABLE_AUTOSTART=1JUMPSHELL_MCP_SERVER_MODE=1
Disable autostart for a session:
$env:JUMPSHELL_MCP_AUTOSTART = '0'
Config Shape
Template file mcps/jumpshell.json contains:
servers.jumpshell.type = stdiocommand = pwshargsfor-File ${serverScript}and-ModuleRoot ${moduleRoot}- environment values:
JUMPSHELL_MCP_DISABLE_AUTOSTART=1TERM_PROGRAM=mcp
Logs and State
State/log paths are written under Jumpshell runtime directory:
~/.jumpshell/mcp/server-state.json~/.jumpshell/mcp/server.stdout.log~/.jumpshell/mcp/server.stderr.log
Troubleshooting
- Validate module path resolution:
Import-Module .\Jumpshell.psd1 -Force
Get-JumpshellMcp | Format-List ModuleRoot,ServerScript,IsRunning
- Reinstall config:
Install-JumpshellMcp -Scope User
- Restart process and inspect logs:
Stop-JumpshellMcpServer -Force
Start-JumpshellMcpServer
Get-Content ~/.jumpshell/mcp/server.stderr.log -Tail 200
- In editor, verify server entry exists (
jumpshell) and reset cached tools if needed.