delete_ssh_connection
Removes an SSH connection by ID from the Windows CLI MCP Server, enabling secure command-line access management for PowerShell, CMD, and Git Bash shells.
Instructions
Delete an existing SSH connection
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connectionId | Yes | ID of the SSH connection to delete |
Implementation Reference
- src/utils/sshManager.ts:83-87 (handler)The main handler function that deletes the specified SSH connection from the configuration file.const deleteSSHConnection = (connectionId: string): void => { const config = loadConfig(); delete config.ssh.connections[connectionId]; saveConfig(config); };
- src/index.ts:513-522 (schema)JSON Schema defining the input parameters for the tool, used in tool listing.inputSchema: { type: "object", properties: { connectionId: { type: "string", description: "ID of the SSH connection to delete" } }, required: ["connectionId"] }
- src/index.ts:510-523 (registration)Tool registration in the listTools response, including name, description, and schema.{ name: "delete_ssh_connection", description: "Delete an existing SSH connection", inputSchema: { type: "object", properties: { connectionId: { type: "string", description: "ID of the SSH connection to delete" } }, required: ["connectionId"] } },
- src/index.ts:855-861 (registration)Dispatch handler in callToolRequestSchema that validates arguments with Zod and calls the deleteSSHConnection function.case 'delete_ssh_connection': { const args = z.object({ connectionId: z.string(), }).parse(request.params.arguments); deleteSSHConnection(args.connectionId); return { content: [{ type: 'text', text: 'SSH connection deleted successfully.' }] }; }