
Cal Auto Python
io.github.danielsousaoliveira由 GitHub 帳號 danielsousaoliveira 發布v0.1.0更新於 Oct 24, 2026
Schedule a GitHub Projects backlog into Google Calendar, as a CLI or an MCP server.
概覽
把 GitHub Projects 待辦看板接到 Google 日曆與 Google Tasks,讓助理把工作排進空閒時間並建立行程與待辦。
- 可以做什麼
- 依日期範圍讀取日曆行程與全天事項,並列出未完成的 Google Tasks
- 列出 GitHub Projects V2 看板上的工作項目,可依狀態篩選
- 在既有行程之間把工作項目排入工作時段,僅做計算、不動用帳戶
- 預覽或執行待辦同步,建立日曆行程與待辦,並略過已排程項目
- 建立單一日曆行程或單一 Google 任務,並回報各整合是否已設定
- 適用情境
- 適合以 GitHub Projects 看板卡片管理工作、並希望助理把待辦排成 Google 日曆中的一週計畫,或彙整已排程內容與仍未完成事項的情境。
- 執行需求
- 以 Python 套件在本機執行(pip install cal-auto-python),預設透過 stdio 通訊,也可用僅綁定本機的 HTTP 模式。需要具備 Projects 讀取權限的 GitHub 個人存取權杖(GITHUB_TOKEN)、看板的 Projects V2 節點 ID(GITHUB_PROJECT_ID)、IANA 時區(CAL_AUTO_TIMEZONE),以及一次性的 Google OAuth 桌面用戶端 credentials.json 與 authorize 授權步驟產生的 token.json。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Cal Auto Python,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Automatic Calendar in Python
mcp-name: io.github.danielsousaoliveira/cal-auto-python
[PyPI] [Python] [CI] [License: MIT] [MCP Registry]
An MCP server that connects your GitHub Projects backlog to Google Calendar and Google Tasks. Point your assistant at it and ask it to show what's on your calendar, list your backlog, plan a week of work into your free time, or turn that plan into real events and to-dos.
[Asking Claude Code what the week looks like]
A backlog board on the left becomes a scheduled week on the right, with each markdown checkbox carried across as its own to-do:
Install
This installs the cal-auto-python command, which runs both the CLI and the MCP server.
One-off authorisation
Before the server can read or write your calendar, you authorise it once against your Google account:
This opens a browser window, asks you to sign in and grant calendar/tasks access, and stores the
resulting token on disk (token.json in the config directory below). Do this before starting the
server for the first time, and again any time authorisation expires — see
Troubleshooting.
Authorisation needs a Google OAuth client:
- In the Google Cloud Console, create a project (or reuse one) and enable the Google Calendar API and Google Tasks API.
- Under APIs & Services → Credentials, create an OAuth client ID of type Desktop app, and download the resulting JSON.
- Save it as
credentials.jsonin the config directory (see Configuration for where that is and how to change it).
Connect it to your assistant
The server speaks MCP over stdio by default, which is what these clients expect. Every capability behaves the same regardless of client.
Claude Code
Register it in one command:
Add -s user to make it available in every project instead of only the current one. To keep the
token out of ~/.claude.json and out of the process list, put your settings in a file and pass
that instead — note that the path must be absolute, since Claude Code starts the server from
whichever directory you launch it in:
Then /mcp lists the server and its tools, and the prompts appear as /auto-calendar:plan-week
and /auto-calendar:whats-scheduled. Use claude mcp list to check registration and
claude mcp remove auto-calendar to undo it.
Claude Desktop
Add to claude_desktop_config.json:
Cursor
Add to .cursor/mcp.json in your project (or the global ~/.cursor/mcp.json):
Generic (any stdio-capable MCP client)
To poke at the server without a client, point the MCP Inspector at it:
[sync_backlog previewing a plan in the MCP Inspector]
Web-based clients, or anyone wanting to run the server on one machine and talk to it from another, can't launch a stdio child process. For them, run the server over HTTP instead:
HTTP mode is single-user and intended for local use only. The server reads one person's stored
Google authorisation from disk and has no notion of separate users; it adds no authorisation of its
own on top of the HTTP endpoint. Exposing it on a shared or public network would hand everyone who
can reach it access to that one calendar, so only bind it to 127.0.0.1 or a private, trusted
network.
Prerequisites
- A GitHub personal access token with read access to the Projects V2 board you want to
schedule from: a classic token with the
read:projectscope (plusrepoif the board tracks items in private repositories), or a fine-grained token granted read access to Projects. Set it asGITHUB_TOKEN. - The board's Projects V2 node ID, e.g.
PVT_xxxxxxxxxx. Find it by querying the GitHub GraphQL API for the project, or from its URL and the Projects API docs. Set it asGITHUB_PROJECT_ID. - A Google OAuth client (Desktop app type) as described in One-off authorisation above.
Capabilities
Two prompts wrap the common workflows, so they show up as one-click starting points in clients
that support them (slash commands in Claude Code and Claude Desktop, for instance). Both take
optional start_date and end_date (YYYY-MM-DD) and default to the next seven days.
[The prompts offered as slash commands in Claude Code]
The CLI exposes the same scheduling logic directly:
sync previews by default; pass --apply to create events and tasks, and --start/--end
(YYYY-MM-DD) or --working-day-start/--working-day-end (HH:MM) to override the default
range (today plus the next two days) and working hours.
[cal-auto-python sync planning and creating events]
Configuration
Every variable below is optional except GITHUB_TOKEN, GITHUB_PROJECT_ID, and
CAL_AUTO_TIMEZONE, which has no default and must be set.
Configuration is read from the process environment. MCP clients pass these in the env block of
their server config. For CLI use you can either export them, or copy .env.example to .env and
point the command at it explicitly:
--env-file loads the given file (and only when passed — nothing is read from the working
directory automatically). Only CAL_AUTO_* and GITHUB_* keys are applied; anything else in the
file is ignored with a warning. Variables already set in the environment win over the file.
Troubleshooting
Authorisation error / "Google account has not been authorised"
Run cal-auto-python authorize again. This also fixes an expired authorisation that couldn't be
refreshed automatically (Google revokes a refresh token after long inactivity or if access is
revoked from your Google Account settings) — the server reports this explicitly rather than
failing silently.
Events show up at unexpected times
Check CAL_AUTO_TIMEZONE. It must be a valid IANA name (e.g. Europe/Lisbon, not CET or a UTC
offset) and must match the timezone you actually work in — the scheduler places events using this
value, not your system timezone.
list_tracker_items or sync_backlog return nothing, even though the board has cards
CAL_AUTO_SCHEDULABLE_STATUSES (default Backlog) must match your board's status column names
exactly, including case. Open the board and copy the status name verbatim, or pass an explicit
statuses argument to list_tracker_items to confirm what the board actually reports.
Roadmap
[x] Retrieve project data from github
[x] Add events and tasks to google calendar
[x] Schedule based on priority
[x] Fix duplicated events and tasks
[x] Replace the hardcoded entry point with a real CLI
[x] Run as an MCP server ( cal-auto-python server)
[x] Optimize event distribution
[x] Update or move an event when the plan changes
Contributing
Adding another task tracker or calendar backend? See docs/ARCHITECTURE.md for the layers and a walkthrough, and CONTRIBUTING.md for how to run the tests, linter, and type checker.
References
來源:README.md,提交 379bf50
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分