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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "server_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:271-302 (handler)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)}`, }, ], }; } - src/index.js:152-155 (schema)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();