Skip to main content
Glama

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
NameRequiredDescriptionDefault
connectionIdYesID of the SSH connection to delete

Implementation Reference

  • 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); };
  • 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.' }] }; }

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/simon-ami/win-cli-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server