get-server-info
Retrieve detailed information about the MCP Firebird server and its available tools to enable secure access and data management for Firebird SQL databases using natural language.
Instructions
Obtiene información sobre el servidor MCP Firebird y las herramientas disponibles
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/metadata.ts:39-80 (handler)The handler function that implements the 'get-server-info' tool logic. It collects and formats server information including package metadata, list of available tools, features, and Node.js runtime details, returning it as a text content response.handler: async () => { try { const serverInfo = { name: pkg.name || 'MCP Firebird Server', version: pkg.version || '2.6.0-alpha.11', description: pkg.description || 'Servidor MCP para bases de datos Firebird', capabilities: { tools: Array.from(databaseTools.keys()), totalTools: databaseTools.size, features: [ 'SQL query execution', 'Database schema inspection', 'Performance analysis', 'Backup and restore', 'Database validation' ] }, runtime: { nodeVersion: process.version, platform: process.platform, uptime: process.uptime(), memoryUsage: process.memoryUsage() } }; return { content: [{ type: 'text', text: `Información del servidor MCP Firebird:\n\n${formatForClaude(serverInfo)}` }] }; } catch (error) { logger.error('Error getting server info:', { error }); return { content: [{ type: 'text', text: `Error obteniendo información del servidor: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } }
- src/tools/metadata.ts:35-81 (registration)Registers the 'get-server-info' tool within the setupMetadataTools function, specifying its title, description, empty input schema (no arguments needed), and references the inline handler.tools.set('get-server-info', { title: 'Get Server Information', description: 'Obtiene información sobre el servidor MCP Firebird y las herramientas disponibles', inputSchema: z.object({}), handler: async () => { try { const serverInfo = { name: pkg.name || 'MCP Firebird Server', version: pkg.version || '2.6.0-alpha.11', description: pkg.description || 'Servidor MCP para bases de datos Firebird', capabilities: { tools: Array.from(databaseTools.keys()), totalTools: databaseTools.size, features: [ 'SQL query execution', 'Database schema inspection', 'Performance analysis', 'Backup and restore', 'Database validation' ] }, runtime: { nodeVersion: process.version, platform: process.platform, uptime: process.uptime(), memoryUsage: process.memoryUsage() } }; return { content: [{ type: 'text', text: `Información del servidor MCP Firebird:\n\n${formatForClaude(serverInfo)}` }] }; } catch (error) { logger.error('Error getting server info:', { error }); return { content: [{ type: 'text', text: `Error obteniendo información del servidor: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } } });
- src/tools/metadata.ts:38-38 (schema)Zod schema for tool input: empty object, indicating no parameters are required.inputSchema: z.object({}),