インストール不要。2分以内に動きます。
cloud.anythingmcp.com で無料トライアルを開始し、Deputy をワンクリックで追加して、AI クライアント(Claude、ChatGPT、Copilot、Cursor)を生成された MCP エンドポイントに向けるだけ。Docker も git clone も、開発経験も不要です。
概要
1 つのインストールの Deputy 勤怠・シフト管理:従業員、拠点とエリア、コピーと公開ができるシフト表(ロスター)、出退勤打刻と承認ができるタイムシート、休暇と勤務不可、メモ、マネージャーノート、そしてリソースクエリ API によるその他のあらゆるレコード。永続トークンで接続します。
こう聞いてみよう
Deputy のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → Deputy をクリック、認証情報を貼り付け、MCP API キーを発行すれば完了です。Docker も
git cloneもローカルサーバーも不要。
Deputy + Microsoft Copilot
1 つのインストールの Deputy 勤怠・シフト管理:従業員、拠点とエリア、コピーと公開ができるシフト表(ロスター)、出退勤打刻と承認ができるタイムシート、休暇と勤務不可、メモ、マネージャーノート、そしてリソースクエリ API によるその他のあらゆるレコード。永続トークンで接続します。
前提条件
完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:
DEPUTY_HOST, DEPUTY_ACCESS_TOKEN
ステップ 1 — 認証情報を取得
設定は約 5 分で、Deputy のシステム管理者が必要です。
- ログインした状態でブラウザのアドレスバーからインストールのアドレスを控えます。例:
mycompany.au.deputy.com(リージョンはau、eu、uk、米国はna)。https://とパスを付けずにDEPUTY_HOSTに入力します。 https://<インストールのアドレス>/exec/devapp/oauth_clientsを開き、OAuth クライアントを追加します(名前と説明は任意で、クライアント ID 自体は使いません)。次に Get an Access Token をクリックします。- 永続トークンは一度しか表示されないので、すぐに
DEPUTY_ACCESS_TOKENにコピーします。コネクタをインストールすると、deputy_get_meでインストールが確認されます。
トークンは発行したインストールでのみ有効で、作成したユーザーとしてそのユーザーの権限で動作します。システム管理者はすべての拠点を見られます。
個人データ: 従業員レコードには氏名、生年月日、連絡先、住所、給与データが含まれます。タスクに必要なものだけを求めてください。
Deputy の用語: 拠点(職場)は Company、エリア(部署)は OperationalUnit、シフトは Roster、実際の勤務時間は Timesheet、休暇の種類は LeaveRules レコードと呼ばれます。
読み取る内容:
- トークンのユーザー:
deputy_get_meと、本人のシフト、タイムシート、休暇、勤務不可、拠点、同僚(deputy_get_my_rosters、deputy_get_my_timesheets、deputy_get_my_leave、deputy_get_my_unavailability、deputy_get_my_locations、deputy_get_my_colleagues)。 - 構造と人:
deputy_list_locations、deputy_list_areas(各エリアは 1 つの拠点に属し、シフトとタイムシートはエリア ID を使います)、deputy_list_employees、deputy_get_employee、絞り込みにはdeputy_query_employees、今誰が勤務中かはdeputy_get_employee_shift_status。 - シフト:
deputy_list_rostersは 12 時間前から 36 時間先まで、deputy_query_rostersは任意の期間、従業員、エリアを対象にします(Date、Employee、OperationalUnitで絞り込み)。 - 勤務時間:
deputy_query_timesheetsとdeputy_get_timesheet(スロット、休憩、給与明細行、コメント、承認状態)。 - 休暇と勤務可否:
deputy_query_leave、deputy_get_employee_leave、deputy_get_employee_unavailability、deputy_query_availability。休暇の種類はobjectにLeaveRulesを指定したdeputy_query_resourceで取得します。 - その他すべて(チーム、祝日、イベント、研修、カスタムフィールド、売上データ、給与期間など):
deputy_get_resource_infoがオブジェクトのフィールドを一覧し、deputy_query_resourceが検索し、deputy_get_resourceが 1 件を読み取ります。
書き込む内容:
- シフト:
deputy_save_shiftはシフトを追加し、roster_idがあれば更新します。deputy_copy_rostersは一部エリアの期間を先へコピーします(例: 先週を今週へ)。deputy_publish_rostersは選んだ通知方法でシフトを公開します(notifyは 1 SMS とメール、2 SMS、3 メール、4 なし、5 従業員に確認を求める)。 - 勤務時間:
deputy_start_timesheet、deputy_pause_timesheet(もう一度呼ぶと休憩終了)、deputy_end_timesheetで従業員の出勤と退勤を打刻します。deputy_save_timesheetは終了済みタイムシートを追加または修正し、deputy_approve_timesheetは給与計算へエクスポートできるよう勤務時間を承認します。 - 休暇と勤務可否:
deputy_add_leave(ステータス 0 はマネージャーの承認待ち、1 は承認済みの休暇を記録し、タイムシートと残高に反映)、deputy_update_leave(status1、2、3 で承認、却下、取り消し)、deputy_add_unavailability(1 回限りまたは繰り返し、例: 隔週月曜日)。 - 従業員:
deputy_add_employee、deputy_update_employee、deputy_invite_employee(ログイン招待をメールで送信)、deputy_terminate_employee(ログインもシフト割り当てもできなくなります。元に戻せます)、deputy_reactivate_employee。 - ノートとお知らせ:
deputy_post_journalは従業員のプロフィールにマネージャー専用のノートを追加し、deputy_post_memoは拠点のニュースフィードに投稿します。特定のユーザーだけに送ったり、既読確認を求めたりもできます。
公開したシフト、招待、メモは実際の従業員に届くため、依頼する前にシフト内容と通知方法を確認してください。
インストール時はオフ: deputy_delete_employee、deputy_discard_rosters、deputy_discard_timesheet。元に戻せないため、チームが必要とするときにワークスペース管理者がオンにします。従業員を削除する代わりに deputy_terminate_employee を使えば元に戻せます。
クエリツール: deputy_query_* と deputy_query_resource は POST を送りますが、読み取りだけです。search 本文にはすべて満たすべき条件を入れます。例: {"s1":{"field":"Date","type":"ge","data":"2026-11-01"},"s2":{"field":"Date","type":"le","data":"2026-11-07"}}。演算子は eq、ne、gt、ge、lt、le、in、not in、starts、contains、is、is not です。sort({"Date":"asc"})と join(["EmployeeObject"])は任意です。
データ形式: ID は整数です。StartTime、EndTime と入力の start、end は秒単位の Unix タイムスタンプで、Date フィールドは拠点の現地日付(2026-11-03T00:00:00+11:00)です。時刻は拠点のタイムゾーンで換算します。Employee が 0 のロスターは空きシフト、Published が false なら下書きです。タイムシートの状態は TimeApproved、PayRuleApproved、Discarded、IsInProgress で分かり、TotalTime は時間単位です。休暇の Status は 0 承認待ち、1 承認済み、2 却下、3 取り消し、4 給与承認済みです。シフトの追加や更新は空の本文で 200 を返すため、AI は deputy_query_rosters で結果を確認します。
ページング: 1 回の応答は最大 500 件です。クエリツールは max(最大 500)と start(オフセット)を受け取り、ページが満杯なら AI は start を max だけ増やして再度呼び出します。ページングのない一覧ツールは、Deputy が許す範囲をすべて 1 回の応答で返します。
よくあるエラー: 401 はトークンの誤りか別のインストールのトークン、403 はトークンのユーザーに権限がないこと、404 はインストールのアドレスまたはレコード ID の誤り、400 はフィルター内のフィールド名の誤り(deputy_get_resource_info で確認)を意味します。
このコネクタはタイムシートを自ら給与システムへエクスポートせず、拠点やエリアを作成せず、削除用ツールがオフの間は何も削除しません。
ステップ 2 — アダプターをインストール
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
ステップ 3 — Microsoft Copilot にコネクタを追加
サーバーURL: AnythingMCP で MCP Servers を開き、このコネクタがあるサーバーを選んで URL(
https://cloud.anythingmcp.com/mcp/…)をコピーします。このガイドでYOUR_SERVER_IDと表示されている箇所に使ってください。
Microsoft Copilot は、Copilot Studio で作成したエージェントを通じて MCP サーバーを使います。AnythingMCP をツールとしてエージェントに追加し、そのエージェントを Microsoft 365 Copilot と Teams に公開します。Copilot Studio は Microsoft のクラウドから Streamable HTTP で接続し、AnythingMCP はこれに対応しています。
- Copilot Studio でエージェントを開き(または新規作成し)、Tools で Add a tool → New tool → Model Context Protocol を選びます。
- Server name(例:
AnythingMCP)、コネクタでできることを説明する Server description、Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_IDを入力します。Copilot Studio はこの説明をもとに、いつサーバーを呼び出すかを判断します。 - 認証で API key を選び、Type を Header、ヘッダー名を
X-API-Keyにして Create を選びます。 - Add tool で Create a new connection を選び、AnythingMCP の MCP API キー(MCP Servers → 対象のサーバー → API keys)を貼り付けて Add to agent を選びます。
- エージェントの Test ウィンドウで試します。
Deputyのツールが必要になる依頼をしてみましょう。 - Publish を選び、Channels → Microsoft 365 and Microsoft Teams で Make agent available in Microsoft Copilot を選択したまま Add channel を選びます。See agent in Teams で自分用にインストールされます。Microsoft 365 Copilot では @ を入力してエージェントを選びます。
ユーザーごとにサインインさせたい場合は、API キーの代わりに OAuth 2.0 → Dynamic discovery を選びます。各ユーザーは、エージェントが初めて呼び出すときに AnythingMCP にサインインします。
セルフホストの場合は、https://cloud.anythingmcp.com の代わりにインスタンスの公開 HTTPS アドレスを使ってください。Copilot Studio は Microsoft のクラウドから接続するため、localhost は使えません。
利用可能なツール
| Tool | What it does |
|---|---|
deputy_get_me | Who the token belongs to: user and employee id, name, company (location) ids, permissions and the install's settings |
deputy_get_my_rosters | Upcoming shifts of the token's own user (when am I next working), with times, area and location |
deputy_get_my_timesheets | Timesheets of the token's own user, newest first, with start and end times, breaks and approval state |
deputy_get_my_leave | Leave requests of the token's own user, with dates, leave type, hours and status |
deputy_get_my_unavailability | Unavailability periods the token's own user has entered (when am I unavailable) |
deputy_get_my_locations | Locations (workplaces) the token's own user can work in, with their areas |
deputy_get_my_colleagues | Colleagues of the token's own user (who do I work with): names, photos and contact details shared in Deputy |
deputy_list_employees | All employees the token may see, with id, name, main location (Company), role, active flag, start date, contact and payroll id |
deputy_get_employee | One employee by id: name, locations, role, contact details, start and termination date, payroll id |
deputy_query_employees | Search employees with filters, sorting and paging, e.g. active staff of one location: search… |
deputy_get_employee_shift_status | Whether an employee is working right now: current or next shift, open timesheet and break state |
deputy_list_locations | All locations (Deputy calls them Company records: workplaces with name, code, address id, time zone and active flag) |
deputy_list_areas | All areas (operational units / departments) with name, location (Company), colour and active flag |
deputy_list_rosters | Shifts (rosters) from 12 hours ago to 36 hours ahead across the install: employee, area, start and end (Unix seconds), published flag |
deputy_query_rosters | Search shifts (rosters) for any period, employee or area, e.g. one day: search {"s1":{"field":"Date","type":"eq","data":"2026-11-03"}}; a… |
deputy_query_timesheets | Search timesheets (actual worked time): employee, area, start and end (Unix seconds), total hours, cost, TimeApproved, PayRuleApproved… |
deputy_get_timesheet | One timesheet with its full details: slots, breaks, pay lines, comments and approval state |
deputy_query_leave | Search leave requests: employee, leave rule (type), location, DateStart, DateEnd, Days, TotalHours, Status (0 awaiting approval, 1… |
deputy_get_employee_leave | Leave requests of one employee with dates, type, hours and status |
deputy_get_employee_unavailability | Unavailability periods of one employee (one-off and recurring), with start, end and comment |
deputy_query_availability | Search availability and unavailability records of employees (EmployeeAvailability): employee, start and end (Unix seconds), type and… |
deputy_query_resource | Search any other Deputy resource with the same filter body as the other query tools: leave rules, teams, public holidays, events, memos… |
deputy_get_resource | Read one record of any Deputy resource by id, e.g. a Roster, Leave, LeaveRules or Company record |
deputy_get_resource_info | Field list of a Deputy resource: field names and types, and the joinable related objects |
deputy_add_employee | Add an employee to a location |
deputy_update_employee | Change fields of an employee record through the resource API |
deputy_invite_employee | Email the employee an invitation to log in to Deputy and use the app (sends a message) |
deputy_terminate_employee | Terminate an employee: they can no longer log in or be rostered |
deputy_reactivate_employee | Re-activate a terminated employee so they can be rostered again |
deputy_delete_employee | Delete an employee's account and data from Deputy |
deputy_post_journal | Add a journal entry (a private manager note) to an employee's profile |
deputy_add_leave | Create a leave request for an employee |
deputy_update_leave | Approve, decline or cancel a leave request (Status), or change its dates and comment |
deputy_add_unavailability | Record when an employee cannot work, once or repeating (e.g. every second Monday) |
deputy_save_shift | Add a shift, or update one when roster_id is given |
deputy_publish_rosters | Publish shifts so employees see them, with the chosen notification |
deputy_copy_rosters | Copy the shifts of a date range of some areas forward (e.g. last week to this week) |
deputy_discard_rosters | Discard (remove) shifts from the schedule |
deputy_start_timesheet | Clock an employee on in an area now: starts a running timesheet for them |
deputy_end_timesheet | Clock an employee off (ends a running timesheet), with an optional unscheduled meal break |
deputy_pause_timesheet | Start or end a break on a running timesheet (calling it again ends the break) |
deputy_save_timesheet | Create a finished timesheet, or update one when timesheet_id is given: times, area, breaks and comment, optionally approved at once |
deputy_approve_timesheet | Approve a timesheet (time approval) so it can be exported to payroll |
deputy_discard_timesheet | Discard a timesheet so it is not paid |
deputy_post_memo | Post a memo to the news feed of a location, optionally to selected locations or users, and optionally asking them to confirm they read it |
プロンプトの例
- 「シドニー店で今勤務しているのは誰で、次に入るのは誰ですか?」
- 「来週のキッチンエリアのシフト表を、空きシフトも含めて見せてください。」
- 「先週のタイムシートのうちまだ承認されていないものを、従業員と合計時間付きで一覧にしてください。」
- 「バーエリアの先週のシフトを今週にコピーして、公開する前に下書きを見せてください。」
- 「今月、承認待ちになっている休暇申請はどれですか?」
FAQ
どの Copilot が対象ですか? 職場で使う Microsoft 365 Copilot で、Copilot Studio のエージェントを通じて利用します。個人アカウント向けの Microsoft Copilot アプリでは、独自の MCP サーバーを追加できません。
何が必要ですか? エージェントを作成するために、Copilot Studio を利用できる職場アカウント(ライセンスまたは試用版)が必要です。Microsoft 365 Copilot や Teams でエージェントを使う人には、エージェントへのアクセス権が必要です。共有するか、管理者に組織向けに公開してもらってください。組織が Power Platform コネクタにデータ ポリシーを適用している場合は、MCP サーバーにも適用されます。
エージェントがツールを呼び出しません。 ヘッダー名が正確に X-API-Key であること、キーが URL と同じ MCP サーバーのものであることを確認し、Server description を具体的に書いてください。Copilot Studio はこの説明をもとにサーバーを呼び出すかどうかを判断します。変更のたびにエージェントを再公開し、開いているチャットでは "start over" と入力すると新しいバージョンになります。
次のステップ
このガイドは役に立ちましたか?