CalendarAgent
Automate calendar tasks like scheduling meetings via prompts, inspect metadata, and build extensible agent‑based workflows.
GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
6
Forks
0
Issues
0
📅 CalendarAgent
A .NET 8 tool to automate Google Calendar scheduling and inspection, integrated with MCP and GitHub Copilot.
📌 Objective
Automate calendar tasks like scheduling meetings via prompts, inspect metadata, and build extensible agent‑based workflows.
✅ Prerequisites
Before you begin, install and set up the following:
npm (comes with Node.js)
-
npm install -g mcp-inspector
Google Cloud Credentials:
- Create a project in Google Cloud Console.
- Enable the Google Calendar API.
- Download the
credentials.json
file. - Place it in the root directory of the project.
📦 Project structure & configuration
- Uses Central Package Management (CPM) for NuGet dependencies.
- Code style enforced with StyleCop.
- Includes
mcp.json
file for MCP configuration in the project root.
✨ Setup & build instructions (VS Code)
Clone the repository:
git clone https://github.com/kanhaiyatyagi63/CalendarAgent.git cd CalendarAgent
Install .NET dependencies:
dotnet restore
Create VS Code workspace folder:
- In the root of your project, create a folder named:
.vs
- Change or set your solution path inside .vs as needed.
- In the root of your project, create a folder named:
Open project in VS Code:
Code .
Build the solution:
dotnet build
Configure MCP:
- Copy or move
mcp.json
into the.vs
folder if you want to keep configs separate. - Open
mcp.json
inside the.vs
folder. - Start the MCP server:
mcp-inspector
- Copy or move
✏️ Use with GitHub Copilot (example)
After opening the project in VS Code and running the MCP server:
- In VS Code, open the Copilot sidebar.
- Select the agent you configured from your MCP server.
- Enter a prompt, for example:
💭 Prompt:
Schedule a meeting with xyz@gmail.com, abc@gmail.com for Generative AI from tomorrow 4 PM to 6 PM
- Ask for a login to generate the
token.json
for the first time only.
Copilot will use your agent and the MCP server to process the request and schedule the meeting.