Skip to main content
Glama

Erick Wendel Contributions MCP

by ErickWendel
status.ts760 B
import type { McpResponse, McpTextContent } from '../types/index.ts'; import { checkApiStatus } from '../services/api.ts'; import { TOOL_CONFIG } from '../config/api.ts'; /** * MCP tool definition for checking API status */ export const checkStatusTool = { name: TOOL_CONFIG.status.name, description: TOOL_CONFIG.status.description, parameters: {}, handler: async (): Promise<McpResponse> => { try { const result = await checkApiStatus(); const content: McpTextContent = { type: "text", text: `API Status: ${result.isAlive ? "Online" : "Offline"}` }; return { content: [content], }; } catch (error) { throw new Error(`Failed to check API status: ${error.message}`); } } };

Implementation Reference

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/ErickWendel/erickwendel-contributions-mcp'

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