Skip to content

Fast Google Calendar daemon for FGP - universal package manager for AI agents

Notifications You must be signed in to change notification settings

fast-gateway-protocol/calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fgp-calendar

Fast Google Calendar daemon for FGP - the universal package manager for AI agents.

Features

  • 10x faster than MCP - Persistent daemon with warm connections
  • Multi-agent support - Works with Claude Code, Cursor, Windsurf, Continue
  • One-command install - fgp install calendar

Installation

fgp install calendar

This will:

  1. Install the daemon to ~/.fgp/services/calendar/
  2. Detect your installed AI agents
  3. Install appropriate skill files for each agent
  4. Configure OAuth (you'll need to complete the flow once)

Setup

  1. Place Google OAuth credentials in ~/.fgp/auth/google/credentials.json
  2. Start the daemon: fgp start calendar
  3. Complete OAuth flow when prompted (first time only)

Usage

Get Today's Events

fgp call calendar.today

Get Upcoming Events

fgp call calendar.upcoming -p '{"days": 7, "limit": 20}'

Search Events

fgp call calendar.search -p '{"query": "meeting"}'

Create Event

fgp call calendar.create -p '{"summary": "Team sync", "start": "2026-01-15T14:00:00Z", "end": "2026-01-15T15:00:00Z"}'

Find Free Time

fgp call calendar.free_slots -p '{"duration_minutes": 30, "days": 7}'

Methods

Method Description
calendar.today Get today's events
calendar.upcoming Get events for next N days
calendar.search Search events by query
calendar.create Create a new event
calendar.free_slots Find available time slots

Performance

Metric Value
Cold start ~50ms
Warm call ~10-30ms
MCP baseline ~300-500ms

Requirements

  • Python 3.8+
  • Google API libraries: pip install google-api-python-client google-auth-oauthlib python-dateutil
  • Google OAuth credentials (see Google Calendar API docs)

Troubleshooting

OAuth Authorization Failed

Symptom: Browser opens but authorization fails

Solutions:

  1. Ensure Google Calendar API is enabled in your Cloud project
  2. Check OAuth credentials are "Desktop application" type
  3. Verify credentials.json exists in ~/.fgp/auth/google/
  4. Delete token and re-authorize:
    rm ~/.fgp/auth/google/calendar_token.pickle
    fgp restart calendar

No Events Returned

Symptom: calendar.today returns empty when you have events

Check:

  1. Correct calendar selected (default is primary)
  2. Events are not marked as "free" (show as busy)
  3. Try with date range: calendar.upcoming with larger days value

Timezone Issues

Symptom: Event times appear wrong

Solutions:

  1. Ensure events have timezone specified in ISO format
  2. Use UTC times with Z suffix: 2026-01-15T14:00:00Z
  3. Or specify timezone: 2026-01-15T14:00:00-08:00

Free Slots Not Found

Symptom: calendar.free_slots returns empty when time is available

Check:

  1. Working hours configured correctly (default 9am-5pm)
  2. Duration is reasonable (try shorter duration)
  3. Days ahead is sufficient

Connection Refused

Symptom: "Connection refused" errors

Solution:

# Check daemon status
pgrep -f fgp-calendar

# Restart
fgp stop calendar
fgp start calendar

License

MIT

About

Fast Google Calendar daemon for FGP - universal package manager for AI agents

Topics

Resources

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •