Deputy MCP

io.github.augbastos由 GitHub 帳號 augbastos 發布v0.4.2更新於 Nov 5, 2026

Deputy workforce data for AI agents: rosters, timesheets and shifts; read-only by default

已驗證STDIO僅桌面效率與工作流商業與電商

概覽

AI 產生的概覽

本機 MCP 伺服器,讓 AI 助理讀取你在 Deputy 的班次、排班表與工時表,並可選擇啟用打卡等寫入操作。

可以做什麼
  • 讀取個人 Deputy 資料:身分、個人排班、下一個班次、工時表、同事、行事曆連結與區域
  • 以主管權限查詢團隊資訊:團隊排班、目前值班人員、員工資料、班次搜尋
  • 僅在啟用寫入時操作班次:上班打卡、下班打卡、設定不可用時間、認領空缺班次
  • 透過瀏覽器 OAuth 登入工具完成登入
適用情境
適合公司以 Deputy 排班、想讓助理回答「下次什麼時候上班」「上週工作幾小時」「現在誰值班」等問題,並可選擇在對話中打卡上下班的情境。
執行需求
透過 uvx 在本機執行,需要 uv 與 Python 3.11 以上版本。三種存取模式只能擇一:OAuth(個人應用程式的 DEPUTY_OAUTH_CLIENT_ID 與 DEPUTY_OAUTH_CLIENT_SECRET,並需瀏覽器登入)、管理員 API 權杖(DEPUTY_API_TOKEN 搭配 DEPUTY_BASE_URL),或個人 iCal 訂閱(DEPUTY_CALENDAR_URL)。需要連線至 Deputy;OAuth 權杖預設存放於作業系統鑰匙圈。
安裝前請注意
只有將 DEPUTY_ALLOW_WRITES 設為 true 才會註冊寫入工具;認領空缺班次會略過 Deputy 的核准步驟,執行前應先確認。API 權杖、OAuth 用戶端密鑰與行事曆連結皆屬機密,行事曆連結內含私人權杖。若系統沒有鑰匙圈,DEPUTY_TOKEN_STORE 會以明文保存 OAuth 權杖。主管工具、寫入操作與權杖更新尚未在實際環境驗證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Deputy MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Deputy MCP

[CI] [Security] [License: MIT]

Ask Claude "when do I work next?" and get the answer from your Deputy roster.

Deputy MCP is a local MCP server that lets AI agents read your shifts, timesheets and team schedule, and, only if you turn it on, act on them. It runs on your machine, connects to Deputy, and works with a regular employee account.

What you can ask

  • "When do I work next?"
  • "How many hours did I work last week?"
  • "Who's on shift right now?" (manager access)
  • "Clock me in." (writes enabled)
  • "Take the open shift on Saturday." (writes enabled; asks you to confirm first)

Install

Needs uv and Python 3.11 or newer. Choose your access mode first:

ModeWho it's forStart here
OAuthAny employeeEmployee sign-in
API tokenDeputy adminsAdmin setup
Calendar feedNo API accessSet DEPUTY_CALENDAR_URL using the client setup; your own roster only, read-only

Employee OAuth

Create a personal app at https://once.deputy.com/my/oauth_clients with the redirect URI http://localhost:8823/callback. Create it there, not under your install's Settings → Developer: an app made inside an install fails sign-in with invalid_client. In Bash, replace the placeholders, sign in, then register the server with Claude Code:

bash
export DEPUTY_OAUTH_CLIENT_ID='your-client-id'export DEPUTY_OAUTH_CLIENT_SECRET='your-client-secret'uvx deputy-mcp loginclaude mcp add deputy \  -e DEPUTY_OAUTH_CLIENT_ID="$DEPUTY_OAUTH_CLIENT_ID" \  -e DEPUTY_OAUTH_CLIENT_SECRET="$DEPUTY_OAUTH_CLIENT_SECRET" \  -- uvx deputy-mcp

Login opens your browser and stores OAuth tokens in your OS keychain by default. Run login and Claude Code as the same OS user. No terminal (for example, the Claude Desktop bundle)? Set the two OAuth values and ask the assistant to sign you in: the deputy_login tool opens the same browser sign-in.

Admin API token

With your Deputy API token and install URL, register directly; no OAuth login is needed:

bash
claude mcp add deputy \  -e DEPUTY_API_TOKEN=your-deputy-token \  -e DEPUTY_BASE_URL=https://your-company.eu.deputy.com \  -- uvx deputy-mcp

Codex CLI

For your own roster, replace ... with your private calendar feed URL:

bash
codex mcp add deputy --env DEPUTY_CALENDAR_URL=... -- uvx deputy-mcp

The first uvx run downloads dependencies; if Codex reports the tools as unavailable, set startup_timeout_sec = 60 under [mcp_servers.deputy] in ~/.codex/config.toml.

Claude Desktop users: download the .mcpb bundle from the Releases page and drag it onto Settings → Extensions (double-clicking may not open it on Windows). Fill in one access mode under Configure, then ask Claude to sign you in. Other MCP clients and Docker: see other ways to install. All settings are listed in .env.example.

Tools

  • Your data (any account): deputy_whoami, deputy_get_my_roster, deputy_next_shift, deputy_get_my_timesheets, deputy_get_my_colleagues, deputy_get_my_calendar_url, deputy_get_areas
  • Team (manager access): deputy_get_team_roster, deputy_who_is_working, deputy_get_employee_info, deputy_search_shifts
  • Actions (only with DEPUTY_ALLOW_WRITES=true): deputy_clock_in, deputy_clock_out, deputy_set_unavailability, deputy_claim_open_shift

Safe by default

  • Read-only unless you set DEPUTY_ALLOW_WRITES=true; until then the action tools don't exist for the agent.
  • You confirm before a shift is claimed, since that skips Deputy's approval step.
  • No guessing: if a name matches several people, you get the list, not the first one.
  • Credential protection: by default, tokens go only to https://*.deputy.com and OAuth tokens live in your OS keychain; errors are scrubbed of secrets before an agent sees them.

Status

The everyday read tools and OAuth sign-in were tested against a real Deputy install with an employee account. Manager tools, actions and the OAuth token refresh are covered by automated tests but not yet verified on a live install. Not affiliated with Deputy.

More

License

MIT

來源:README.md,提交 4b9c7d4

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

2
  1. v0.4.2最新Oct 21, 2026
  2. v0.4.0Oct 21, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分