Skip to main content
Glama

Binalyze AIR MCP Server

Official
by binalyze
MIT License
66
7
  • Linux
  • Apple
settings.ts1.47 kB
import { z } from 'zod'; import { api, BannerSettings } from '../api/settings/settings'; // Schema for update banner message arguments export const UpdateBannerMessageArgsSchema = z.object({ enabled: z.boolean().describe('Whether the banner message is enabled or disabled'), }); // Format banner update response for display function formatBannerUpdateResponse(success: boolean, statusCode: number, errors: string[]): string { if (success) { return `Banner message updated successfully (Status code: ${statusCode})`; } else { return `Failed to update banner message (Status code: ${statusCode})\nErrors: ${errors.join(', ')}`; } } export const settingsTools = { // Update the banner message settings async updateBannerMessage(args: z.infer<typeof UpdateBannerMessageArgsSchema>) { try { const settings: BannerSettings = { enabled: args.enabled }; const response = await api.updateBannerMessage(settings); return { content: [ { type: 'text', text: formatBannerUpdateResponse(response.success, response.statusCode, response.errors) } ] }; } catch (error) { const errorMessage = error instanceof Error ? error.message : 'Unknown error'; return { content: [ { type: 'text', text: `Failed to update banner message: ${errorMessage}` } ] }; } } };

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/binalyze/air-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server