We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wblair8689/project-context-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
reload_tool.py•639 B
"""
Add a reload capability to the MCP server
This tool allows hot-reloading of specific functions
"""
import importlib
import sys
@self.mcp.tool()
async def reload_server_module() -> str:
"""Reload server modules to pick up code changes"""
try:
# Reload the context_server module
if 'context_server' in sys.modules:
importlib.reload(sys.modules['context_server'])
return "✅ Successfully reloaded context_server module"
else:
return "❌ context_server module not found in sys.modules"
except Exception as e:
return f"❌ Error reloading module: {str(e)}"