remove_credential
Remove stored SSH credentials from the SSH MCP Server to manage access securely and maintain credential hygiene for remote command execution.
Instructions
Remove a stored SSH credential
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Implementation Reference
- src/index.ts:248-257 (handler)The handler function for the 'remove_credential' tool. It extracts the 'name' from arguments, deletes the corresponding credential from the SQLite database using a prepared statement, and returns a success message.case 'remove_credential': { const { name } = request.params.arguments as { name: string }; await db.run('DELETE FROM credentials WHERE name = ?', [name]); return { content: [{ type: 'text', text: `Credential ${name} removed successfully` }] }; }
- src/index.ts:121-130 (registration)The tool registration entry in the ListTools response, including the name, description, and input schema definition.name: 'remove_credential', description: 'Remove a stored SSH credential', inputSchema: { type: 'object', properties: { name: { type: 'string' }, }, required: ['name'], }, },
- src/index.ts:123-129 (schema)The input schema for the 'remove_credential' tool, specifying that it requires a 'name' string parameter.inputSchema: { type: 'object', properties: { name: { type: 'string' }, }, required: ['name'], },