list_credentials
Retrieve all stored SSH credentials on the SSH MCP Server to manage and access secure remote connections effectively.
Instructions
List all stored SSH credentials
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:238-246 (handler)Handler function for the 'list_credentials' tool. It queries the SQLite database for all credentials and returns them as a formatted JSON string in the tool response.case 'list_credentials': { const credentials = await db.all('SELECT * FROM credentials'); return { content: [{ type: 'text', text: JSON.stringify(credentials, null, 2) }] }; }
- src/index.ts:111-119 (registration)Registration of the 'list_credentials' tool in the list of available tools provided by the ListToolsRequestSchema handler.{ name: 'list_credentials', description: 'List all stored SSH credentials', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/index.ts:114-118 (schema)Input schema definition for the 'list_credentials' tool, specifying no required parameters.inputSchema: { type: 'object', properties: {}, required: [], },