A modern, AI-powered todo list and calendar management application that combines OpenAI's Assistant API with Google Calendar integration. Built with TypeScript and featuring both MCP (Model Context Protocol) and traditional API endpoints.
Clone the Repository
shell
git clone https://github.com/yourusername/todo-assistant.git
cd todo-assistant
Install Dependencies
shell
npm install
Environment Setup Create a .env
file in the root directory:
dotenv
OPENAI_API_KEY=your_openai_api_key
PORT=3000
CLIENT_ID=your_google_client_id
CLIENT_SECRET=your_google_client_secret
GOOGLE_REDIRECT_URI=http://localhost:3000/google/callback
Build and Run
```shell
# Build TypeScript
npm run build
# Start server
npm start
# Development mode with auto-reload
npm run dev
# Start with MCP enabled
npm run dev:mcp
```
CREATE TABLE todos (
id INTEGER PRIMARY KEY AUTOINCREMENT,
text TEXT NOT NULL,
completed BOOLEAN NOT NULL DEFAULT 0,
createdAt TEXT NOT NULL
)
CREATE TABLE calendar_events (
id INTEGER PRIMARY KEY AUTOINCREMENT,
todoId INTEGER NOT NULL,
title TEXT NOT NULL,
date TEXT NOT NULL,
time TEXT NOT NULL,
createdAt TEXT NOT NULL,
FOREIGN KEY (todoId) REFERENCES todos(id) ON DELETE CASCADE
)
POST /api/thread
- Create/get user threadPOST /api/chat
- Send/receive messagesGET /api/history/:userId
- Get chat historyPOST /api/tool-response
- Handle tool approvalsPOST /mcp
- Main MCP interaction endpointGET /mcp/health
- Health checkGET /mcp/tools
- Available tools listing"Add 'Buy groceries' to my todo list"
"Show all my todos"
"Mark todo #3 as complete"
"Add 'Team meeting' to calendar for tomorrow at 2pm"
"Show my calendar events for next week"
"Alışveriş yapmayı listeye ekle"
"Tüm görevlerimi göster"
"3 numaralı görevi tamamlandı olarak işaretle"
"Yarın saat 14:00'da takım toplantısını takvime ekle"
"Gelecek haftaki takvim etkinliklerimi göster"
http://localhost:3000/google/callback
.env
filegit checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)This project is licensed under the MIT License - see the LICENSE file for details.
For support, please open an issue in the GitHub repository or contact the maintainers.
AI-powered todo assistant with Google Calendar integration using OpenAI's API and Model Context Protocol (MCP) support for natural language task management.
No releases published
No packages published