from abc import ABC, abstractmethod
from typing import Any, Dict, Optional
class ResourceProvider(ABC):
"""Base class for all resource providers in the MCP server."""
@abstractmethod
async def get_resource(
self, uri: str, params: Optional[Dict[str, Any]] = None
) -> Dict[str, Any]:
"""
Retrieve a resource.
Args:
uri: The resource URI
params: Optional parameters for the resource
Returns:
The resource data
"""
pass
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/jango-blockchained/mcp-freecad'
If you have feedback or need assistance with the MCP directory API, please join our Discord server