UNPKG

@brianveltman/sonatype-mcp

Version:

Model Context Protocol server for Sonatype Nexus Repository Manager

40 lines 1.37 kB
import { validateInput, getSystemStatusSchema } from '../../utils/validation.js'; import { formatMCPError } from '../../utils/errors.js'; export function createGetSystemStatusTool(adminService) { return { name: 'nexus_get_system_status', description: 'Get system health status and checks', inputSchema: { type: 'object', properties: {}, additionalProperties: false }, handler: async (params) => { try { validateInput(getSystemStatusSchema, params); const status = await adminService.getSystemStatus(); return { content: [ { type: 'text', text: JSON.stringify(status, null, 2) } ] }; } catch (error) { const mcpError = formatMCPError(error); return { content: [ { type: 'text', text: `Error getting system status: ${mcpError.message}` } ], isError: true }; } } }; } //# sourceMappingURL=get-system-status.js.map