cookbook/PC/function-calling/README.md
Demonstrates function calling capabilities of NexaAI/OmniNeural-4B model, integrated with Google Calendar via MCP protocol.
winget install OpenJS.NodeJS.LTS
pip install -r requirements.txt
Go to Google Cloud Console
Create/select a project and enable Google Calendar API
Go to OAuth consent screen follow the instructions to configure your consent screen.
Create OAuth 2.0 credentials:
gcp-oauth.keys.json on the same directory as this README.mdAdd your email as a test user in Audience
Authenication (only need to do once)
$env:GOOGLE_OAUTH_CREDENTIALS="gcp-oauth.keys.json"
npx @cocal/google-calendar-mcp auth
follow the instructions to authorize the application to access your Google Calendar.
Tip: Ensure the OAuth client ID is enabled for Calendar API at Credentials For detailed setup, see: https://github.com/nspady/google-calendar-mcp?tab=readme-ov-file#google-cloud-setup
# Text only
python main.py --text "what is the time now?"
# Image with text
python main.py --image image.png --text "help me add this event to my calendar"
# Audio with text
python main.py --audio audio.mp3 --text "transcribe and add to calendar"
python .\app\flask_ui.py