MCP cover image
See in Github
2025-03-18

Assistant TODO alimenté en AI avec intégration du calendrier Google en utilisant la prise en charge de l'API et du protocole de contexte de modèle d'OpenAI (MCP) pour la gestion des tâches en langage naturel.

1

Github Watches

1

Github Forks

1

Github Stars

Todo Assistant with AI and Google Calendar Integration

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.

Mcp-server_openai-chat ./images/ekran1.png
Todo Assistant Main Screen

Mcp-server_openai-chat ./images/ekran4.png
Todo Assistant Main Screen

Mcp-server_openai-chat ./images/ekran3.png
Todo Assistant Main Screen

🌟 Key Features

  • AI-Powered Chat Interface: Natural language interaction using OpenAI's GPT-3.5 Turbo
  • Smart Todo Management: Add, remove, list, and toggle todos using natural language
  • Google Calendar Integration: Seamlessly sync todos with Google Calendar
  • Multi-Language Support: Full support for English and Turkish
  • Tool Approval System: Secure approval workflow for sensitive operations
  • MCP (Model Context Protocol): Standardized AI tool interactions
  • Responsive Design: Modern, mobile-friendly web interface
  • Persistent Storage: SQLite database for reliable data management

🛠️ Technical Stack

  • Backend:

    • Node.js with Express
    • TypeScript
    • SQLite (via better-sqlite3)
    • OpenAI Assistant API
    • Google Calendar API
  • Frontend:

    • HTML5 & CSS3
    • Modern JavaScript
    • Responsive Design
  • AI & Integration:

    • OpenAI GPT-3.5 Turbo
    • Model Context Protocol (MCP)
    • OAuth 2.0 for Google Calendar

📋 Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn
  • OpenAI API key
  • Google Cloud Console account
  • SQLite

🚀 Getting Started

  1. Clone the Repository

    git clone https://github.com/yourusername/todo-assistant.git
    cd todo-assistant
    
  2. Install Dependencies

    npm install
    
  3. Environment Setup Create a .env file in the root directory:

    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
    
  4. Build and Run

    # 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
    

🗄️ Database Structure

Todos Table

CREATE TABLE todos (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    text TEXT NOT NULL,
    completed BOOLEAN NOT NULL DEFAULT 0,
    createdAt TEXT NOT NULL
)

Calendar Events Table

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
)

🔌 API Endpoints

Traditional REST API

  • POST /api/thread - Create/get user thread
  • POST /api/chat - Send/receive messages
  • GET /api/history/:userId - Get chat history
  • POST /api/tool-response - Handle tool approvals

MCP Endpoints

  • POST /mcp - Main MCP interaction endpoint
  • GET /mcp/health - Health check
  • GET /mcp/tools - Available tools listing

💡 Usage Examples

English Commands

"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"

Turkish Commands

"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"

🔒 Security Features

  • Tool approval workflow for sensitive operations
  • OAuth 2.0 authentication for Google Calendar
  • Secure credential management
  • Input validation and sanitization

🌐 Google Calendar Setup

  1. Go to Google Cloud Console
  2. Create a new project or select existing
  3. Enable Google Calendar API
  4. Configure OAuth 2.0 credentials:
    • Set application type as "Web application"
    • Add authorized redirect URI: http://localhost:3000/google/callback
    • Download credentials and update .env file

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • OpenAI for their powerful Assistant API
  • Google Calendar API team
  • Contributors and testers

📞 Support

For support, please open an issue in the GitHub repository or contact the maintainers.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • modelcontextprotocol
  • Serveurs de protocole de contexte modèle

  • Mintplex-Labs
  • L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • OffchainLabs
  • Aller la mise en œuvre de la preuve de la participation Ethereum

  • n8n-io
  • Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.

  • huahuayu
  • Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.

    Reviews

    4 (1)
    Avatar
    user_OPAXJDto
    2025-04-15

    Mcp Server Js by yepcode is an exceptional tool for developers. Its intuitive interface and seamless integration make server management a breeze. The product link, https://mcp.so/server/mcp-server-js/yepcode, leads to comprehensive resources that further enhance its effectiveness. Highly recommended for anyone seeking reliable and efficient server solutions.