list_adapters
View available database adapters to identify supported database types for establishing secure connections through the db-mcp server.
Instructions
List all registered database adapters
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server/McpServer.ts:160-185 (registration)Registration of the 'list_adapters' MCP tool, including its inline handler function. The tool has no input parameters and returns a JSON list of all registered database adapters with their ID, type, name, version, and connection status.// List adapters tool // eslint-disable-next-line @typescript-eslint/no-deprecated this.server.tool( 'list_adapters', 'List all registered database adapters', {}, () => { const adapters = []; for (const [id, adapter] of this.adapters) { adapters.push({ id, type: adapter.type, name: adapter.name, version: adapter.version, connected: adapter.isConnected() }); } return { content: [{ type: 'text' as const, text: JSON.stringify(adapters, null, 2) }] }; } );