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

reserva fijada con el sistema
Sistema de reserva fijo con integración de calendario de Google, confirmaciones de correo electrónico e integración del servidor MCP
3 years
Works with Finder
1
Github Watches
1
Github Forks
0
Github Stars
Booking System (Fixed)
This repository contains the fixed version of the booking system for Andriana Delcheva, addressing several critical issues with the previous implementation. The system is designed to run on Cloudflare Workers and integrates with Google Calendar and MCP Servers.
🛠️ Fixed Issues
This implementation resolves the following issues that were present in the original system:
- Fixed Booking Completion - Users can now successfully select a date and complete bookings.
- Fixed Confirmation Emails - Email confirmations are now sent after successful bookings.
- Fixed Google Calendar Integration - Bookings now create events in Google Calendar.
- Implemented Availability Checking - The system checks for available slots before confirming bookings.
- Implemented MCP Server Integration - Backend processing uses MCP Servers for enhanced functionality.
🌟 Key Features
- Multi-step Booking Process - Intuitive step-by-step booking flow for better UX
- Real-time Availability Checking - Checks Google Calendar for conflicts
- Automated Email Confirmations - Sends details to the customer
- Google Calendar Integration - Creates calendar events with service details
- MCP Server Integration - Tracks booking events and provides enhanced processing
- Comprehensive Error Handling - Provides meaningful feedback to users
- Responsive Design - Works on mobile and desktop devices
🚀 Deployment
Prerequisites
- Cloudflare Workers account
- Google Cloud project with Calendar API enabled
- Google service account with access to the Calendar
- MCP Server for backend processing
Setup Instructions
- Clone the repository
git clone https://github.com/Konstrex/booking-system-fixed.git
cd booking-system-fixed
- Install dependencies
npm install
- Configure environment variables
The following environment variables need to be set either in the wrangler.toml file or using Cloudflare's secrets:
-
Google Calendar Integration
-
GOOGLE_CLIENT_EMAIL
- Already configured to "andrianadelcheva@totemic-point-453101-s4.iam.gserviceaccount.com" -
GOOGLE_PRIVATE_KEY
- Your service account private key -
GOOGLE_CALENDAR_ID
- The ID of the calendar to use
-
-
Email Configuration
-
EMAIL_FROM
- Email address to send confirmations from -
BUSINESS_NAME
- Name of the business (already set to "Andriana Delcheva") -
BUSINESS_EMAIL
- Business email for reply-to
-
-
MCP Server Integration
-
MCP_ENABLED
- Set to "true" to enable MCP integration -
MCP_SERVER_URL
- URL of the MCP server -
MCP_API_KEY
- API key for authenticating with the MCP server
-
- Set secrets using Wrangler
For sensitive information, use Wrangler's secret management:
wrangler secret put GOOGLE_PRIVATE_KEY
wrangler secret put GOOGLE_CALENDAR_ID
wrangler secret put MCP_SERVER_URL
wrangler secret put MCP_API_KEY
- Deploy to Cloudflare Workers
npm run deploy:prod
📝 Google Calendar Setup
To ensure the Google Calendar integration works properly:
-
Ensure the service account has appropriate permissions by adding it to your Google Calendar:
- Open Google Calendar
- Go to Calendar Settings
- Under "Share with specific people," add the service account email:
andrianadelcheva@totemic-point-453101-s4.iam.gserviceaccount.com
- Set permissions to "Make changes and manage sharing"
-
The JWT authentication is configured to use the correct token_uri:
https://oauth2.googleapis.com/token
📧 Email Configuration
The system uses MCP Servers for handling email notifications. After a successful booking, an email is sent containing:
- Subject: "Booking Confirmation"
- Appointment details (date, time, service)
- Google Calendar link
- Booking reference number
🤖 MCP Server Integration
MCP Servers are used for enhanced functionality:
-
Event Notifications - MCP is notified about key events:
- Availability checks
- Booking creations
- Email confirmations
- Calendar event creations
-
Error Handling - MCP receives detailed error information for monitoring and debugging.
-
Booking Processing - The system can offload the entire booking process to MCP if configured.
🧪 Testing
To test the system locally:
npm run dev:local
For end-to-end testing:
- Select a date and service
- Check available time slots
- Enter customer details
- Complete the booking
- Verify the appointment appears in Google Calendar
- Confirm the confirmation email is received
📚 Technical Implementation Details
Fixed Booking Flow
The booking flow has been completely reworked to ensure a single API request is made when booking. Key improvements:
- Multi-step form with validation at each step
- Single API call for the final booking request
- Clear error messages for failed bookings
- Loading indicators during API calls
Fixed Google Calendar Integration
The Google Calendar integration now:
- Uses proper JWT authentication with the service account
- Checks for existing events before booking
- Creates detailed calendar events with all booking information
- Properly formats dates and times
- Includes attendees and reminders
Enhanced Error Handling
Comprehensive error handling has been implemented:
- Validation errors with specific messages
- Network error handling with retry options
- Server error logging with MCP integration
- User-friendly error messages
📋 API Endpoints
Check Availability
POST /api/availability
Request body:
{
"date": "2025-03-15",
"duration": 60
}
Response:
{
"success": true,
"availableSlots": [
{ "startTime": "09:00", "endTime": "10:00" },
{ "startTime": "10:00", "endTime": "11:00" },
/* ... */
]
}
Book Appointment
POST /api/book
Request body:
{
"name": "John Doe",
"email": "john@example.com",
"phone": "+1234567890",
"date": "2025-03-15",
"time": "10:00",
"services": [
{
"name": "Massage",
"duration": 60,
"price": 80
}
],
"notes": "Optional notes",
"agreed": true
}
Response:
{
"success": true,
"message": "Booking created successfully",
"bookingId": "BK-JOHNDO-123456",
"eventId": "calendar_event_id"
}
🔄 Continuous Improvement
Future improvements could include:
- Adding a dashboard for managing bookings
- Implementing booking cancellation/rescheduling
- Adding payment integration
- Creating a customer account system
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Converts Figma frames into front-end code for various mobile frameworks.
A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.
Advanced software engineer GPT that excels through nailing the basics.
A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!
A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.
Espejo de https: //github.com/suhail-ak-s/mcp-typesense-server
本项目是一个钉钉 MCP (Protocolo del conector de mensajes )服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 支持员工信息查询和消息发送等功能。 支持员工信息查询和消息发送等功能。
Reviews

user_lOOrqOnL
As a dedicated user of the Pharo MCP Server by Paul Wilke, I've found it to be an indispensable tool for my projects. Its robust performance, seamless integration, and reliable functionality have greatly enhanced my productivity. Whether you’re a beginner or an advanced user, this server caters to all needs efficiently. Check it out at the provided link for a transformative experience!