Skip to main content
Glama

magg_status

Retrieve and monitor the status and statistics of the MAGG MCP server, enabling real-time insights into server performance and functionality.

Instructions

Get basic Magg server status and statistics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'magg_status' tool. It computes and returns statistics about configured servers (total, enabled, mounted, disabled), total tools available, and active prefixes.
    async def status(self) -> MaggResponse: """Get basic Magg server status and statistics.""" try: config = self.config total_tools = len(await self.mcp.get_tools()) status_data = { "servers": { "total": len(config.servers), "enabled": len(config.get_enabled_servers()), "mounted": len(self.server_manager.mounted_servers), "disabled": len(config.servers) - len(config.get_enabled_servers()) }, "tools": { "total": total_tools, }, "prefixes": {name: config.servers[name].prefix for name in self.server_manager.mounted_servers if name in config.servers and config.servers[name].prefix} } return MaggResponse.success(status_data) except Exception as e: return MaggResponse.error(f"Failed to get status: {str(e)}")
  • Registration of the 'magg_status' tool (as f'{self_prefix_}status') in the _register_tools method, which iterates over the tools list and calls self.mcp.tool() for each.
    tools = [ (self.add_server, f"{self_prefix_}add_server", None), (self.remove_server, f"{self_prefix_}remove_server", None), (self.list_servers, f"{self_prefix_}list_servers", None), (self.enable_server, f"{self_prefix_}enable_server", None), (self.disable_server, f"{self_prefix_}disable_server", None), (self.search_servers, f"{self_prefix_}search_servers", None), (self.smart_configure, f"{self_prefix_}smart_configure", None), (self.analyze_servers, f"{self_prefix_}analyze_servers", None), (self.status, f"{self_prefix_}status", None), (self.check, f"{self_prefix_}check", None), (self.reload_config_tool, f"{self_prefix_}reload_config", None), (self.load_kit, f"{self_prefix_}load_kit", None), (self.unload_kit, f"{self_prefix_}unload_kit", None), (self.list_kits, f"{self_prefix_}list_kits", None), (self.kit_info, f"{self_prefix_}kit_info", None), ]

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/sitbon/magg'

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