Skip to main content
Glama

server_info

Check server status and configuration to monitor the MCP AI Bridge server's operational state and settings.

Instructions

Get server status and configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'server_info' tool that collects and formats server information including configuration, available models, rate limits, and security settings.
    handleServerInfo() { const info = { name: process.env.MCP_SERVER_NAME || 'AI Bridge', version: process.env.MCP_SERVER_VERSION || '1.0.0', openai: { configured: !!this.openai, models: this.openai ? MODELS.OPENAI : [], }, gemini: { configured: !!this.gemini, models: this.gemini ? MODELS.GEMINI : [], }, rateLimits: { maxRequests: DEFAULTS.RATE_LIMIT.MAX_REQUESTS, windowMs: DEFAULTS.RATE_LIMIT.WINDOW_MS, }, security: { inputValidation: true, rateLimiting: true, promptMaxLength: DEFAULTS.PROMPT.MAX_LENGTH, }, }; return { content: [ { type: 'text', text: `🤖 AI BRIDGE SERVER INFO:\n\n${JSON.stringify(info, null, 2)}`, }, ], }; }
  • Input schema definition for the 'server_info' tool, which requires no parameters (empty properties).
    inputSchema: { type: 'object', properties: {}, },
  • src/index.js:149-157 (registration)
    Registers the 'server_info' tool in the getAvailableTools() method, making it discoverable via ListToolsRequest.
    tools.push({ name: 'server_info', description: 'Get server status and configuration', inputSchema: { type: 'object', properties: {}, }, });
  • src/index.js:178-179 (registration)
    Registers the handler dispatch for 'server_info' tool calls in the CallToolRequestSchema handler switch statement.
    case 'server_info': return this.handleServerInfo();

Other Tools

Latest Blog Posts

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/fakoli/mcp-ai-bridge'

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