Skip to main content
Glama

TODO MCP Server

by oseni99
handlers.py681 B
import uuid from typing import Optional DATASTORE = {} def add_task(title: str, content: str, due_date: Optional[str] = None): if not title or not content: raise ValueError("title and content are required") new_id = str(uuid.uuid4()) task = { "task_id": new_id, "title": title, "content": content, "due_date": due_date or "", "done": False, } DATASTORE[new_id] = task return task def list_tasks(): return list(DATASTORE.values()) def complete_task(task_id): task = DATASTORE.get(task_id) if not task: return {"error": "Task does not exist"} task["done"] = True return task

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/oseni99/todo-mcp'

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