Skip to main content
Glama

FastMCP Todo Server

context.py645 B
from typing import Any, Dict, Optional from dataclasses import dataclass, field from pymongo import MongoClient @dataclass class Context: """ A context object to hold request-specific state that can be passed through the system. This helps avoid passing multiple arguments through function calls and provides a consistent way to access common objects like database connections or user information. """ user: Optional[Dict[str, Any]] = None database: Optional[MongoClient] = None # You can add other request-scoped objects here, e.g., logger, settings metadata: Dict[str, Any] = field(default_factory=dict)

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/MadnessEngineering/fastmcp-todo-server'

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