get-server-info
Retrieve details about the MCP Firebird server and its available tools to understand database access capabilities.
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 asynchronous handler function that executes the 'get-server-info' tool. It retrieves package information from package.json, lists available database tools, collects runtime statistics, and returns formatted server information or an error 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:38-38 (schema)The input schema for the 'get-server-info' tool, defined as an empty Zod object schema indicating no input parameters are required.inputSchema: z.object({}),
- src/tools/metadata.ts:35-81 (registration)The registration of the 'get-server-info' tool in the setupMetadataTools function, including title, description, schema, and 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 }; } } });