AI Todo

•

Demonstrates an API-first Model Context Protocol approach with a FastAPI backend and a Next.js client for todo management.

This project showcases an API-first approach to the Model Context Protocol (MCP), featuring a FastAPI backend that simultaneously exposes both a traditional REST API and a dedicated MCP endpoint. It provides a robust todo service where the backend acts as the single source of truth, offering its capabilities through both REST endpoints and MCP tools. A Next.js frontend, designed to be thin, consumes the REST API for its user interface while also enabling automated workflows via MCP. This architecture allows assistants within MCP-compatible clients to directly invoke the same server-side tools utilized by the UI, streamlining development and ensuring consistent logic across different interaction paradigms.

Características Principales

01API-first architecture combining FastAPI backend and Next.js frontend
02MCP endpoint enabling AI assistants to invoke server-side todo management tools
03Next.js client with multi-tab UI for CRUD operations and an AI chat interface
04Dual exposure of backend logic via REST API and MCP tools
05Chat feature displaying per-response tool-call details for transparency
060 GitHub stars

Casos de Uso

01Orchestrating backend services through both traditional UIs and AI assistants
02Demonstrating an API-first strategy for Model Context Protocol implementation
03Building AI-powered applications with integrated tool-calling capabilities