"""Mock classes for testing."""
from typing import Callable, Type
class MockRequestHandler:
"""Mock for mcp.server.handler.RequestHandler class."""
def __init__(self):
"""Initialize the mock handler."""
self.config = None
def mock_register_handler(name: str) -> Callable[[Type], Type]:
"""Mock for mcp.server.handler.register_handler decorator.
Args:
name: Name of the handler
Returns:
Decorator function
"""
def decorator(cls):
"""Decorator function.
Args:
cls: Class to decorate
Returns:
The decorated class
"""
return cls
return decorator
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/ydb-platform/ydb-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server