Skip to content

Use your AI chat with MCP to manage leave

An MCP server lets AI clients work with leave data without opening the web app. From inside the chat you can look up people, balances, leave and holidays, submit or approve leave, and adjust workspace settings. The server both reads and writes: write tools wait for the change to complete and return the result, so the assistant can confirm whether it succeeded. Every write is recorded in the user logs as done "via AI assistant (MCP)".

How the connection works

Your AI client connects to {{MCP_BASE_URL}} . On first use it runs an OAuth2 authorization flow — RFC 8414 discovery, RFC 7591 Dynamic Client Registration, PKCE and authorization code — against {{AUTH_BASE_URL}} . You sign in and approve the requested scopes on the consent screen. The client then exchanges the code for a Bearer token and calls tools on your behalf. Every call is authorized against your role, so nobody can see or change more through MCP than they can in the web app. For most clients, the server URL is the only thing to configure. Some tools, like Gemini Enterprise, don't register themselves and ask for a client ID and secret instead. You can create these under Integrations → MCP: a personal client for yourself, or, as an admin, a company client for everyone in your company. See Setup → Client ID and secret.

Protocol versions

Compatibility covers the newest MCP release, 2026-07-28, alongside all three 2025 releases — 2025-03-26, 2025-06-18 and 2025-11-25 — using Streamable HTTP. Because the server keeps no session state, it can handle both the older initialize-first handshake and the newer style where each request carries its own metadata, agreeing the appropriate version separately with every client.

Available tools

The server ships 13 tools. The client only lists the tools your role can use. A tool needing a scope you have not granted yet stays listed; calling it prompts you to grant that scope. Tools accept names or IDs wherever a reference is expected, so a department name works as well as its ID. If a name is ambiguous, the tool returns an error with candidate matches and the assistant can retry with a specific one. Date shortcuts such as today, this_week, next_month and last_week resolve in your location's timezone.

  • get_workspace_info — read departments, locations (optionally with work weeks), leave types and labels; any role, mcp:workspace:read
  • find_users — search people by name or email, department, location, label and status; any role, mcp:users:read
  • get_user_details — one person (default: you): profile, labels, work week, balances, quotas and requestable leave types; any role, mcp:users:read
  • get_leaves — leave and TOIL in a date range, or one by ID, as shown on the person's wallchart; any role, mcp:leaves:read
  • get_holidays — public holidays per location and year; any role, mcp:workspace:read
  • get_workspace_settings — leave policies per location, automations, notifications and scheduled reports; any role, mcp:workspace:read
  • request_leave — preview or submit leave or TOIL for yourself or someone else; any role, mcp:leaves:write
  • update_leave — edit, cancel or delete a leave or TOIL request; any role, mcp:leaves:write
  • decide_leave — approve or deny a leave or TOIL request; approver role, mcp:leaves:write
  • manage_user — profile, location, department, activation, labels, location admin, work week and quotas; location admin, mcp:users:write
  • manage_organization — departments, locations, location work weeks, holidays and labels; location admin, mcp:workspace:write
  • manage_leave_setup — leave types and leave policies per location; location admin, mcp:workspace:write
  • manage_automations — automations, notifications and scheduled reports; location admin, mcp:workspace:write

Permissions

Permissions generally match API v2 for your role, with two exceptions: leave and TOIL lists follow the web app's wallchart, so everyone sees exactly the team leave shown there, and everyone can read the leave policies of their own location. Writes go through the same role, permission and plan checks as the web app.

  • Everyone: leave and TOIL exactly as the wallchart shows them, including visibility add-on, team, approver teams, substitutes, approver levels, and reason and hidden leave type masking — same as the web app. Also the leave policies of your own location — same as the web app.
  • User: your own profile, balances and quotas; leave types with hidden ones masked; your own location's holidays — narrower than the web app, with no departments, locations, labels or other locations' policies.
  • Approver: adds the users of the departments you approve for, and hidden leave type names — narrower, with no automations, notifications or reports.
  • Location admin: adds your locations' users, departments, locations, policies, holidays and notifications — about the same as the web app.
  • Admin: everything — same as the web app.

Individual write operations can carry stricter limits than the headline role for a tool — labels, leave types and automations, for instance, are Admin-only. When your role falls short, the response explains the reason. Actions are always attributed to the signed-in person, never performed in someone else's name.

Prerequisites

You need an account on a paid plan and an MCP-capable AI client. Claude Desktop is the reference client; Claude Code, Cursor, ChatGPT, Codex, GitHub Copilot, Microsoft Copilot Studio and Gemini Enterprise connect too, each covered in Setup. Any client implementing the MCP Streamable HTTP transport and OAuth2 PKCE with Dynamic Client Registration or a client ID and secret should work. MCP is available to every account on a paid plan, with no separate enablement step or feature flag.

Next steps

Start with Setup for connecting Claude Desktop and Cursor. Then use Tools for the full reference with parameters, examples and error shapes, Scopes for what each scope grants, the role ceiling and step-up consent, and Troubleshooting for connection problems, HTTP errors and tool error codes.

Frequently asked questions

What do I need before connecting?

You need an account on a paid plan and an MCP-capable client. Claude Desktop is the reference client; Claude Code, Cursor, ChatGPT, Codex, GitHub Copilot, Microsoft Copilot Studio and Gemini Enterprise are also covered, and any client implementing Streamable HTTP with OAuth2 PKCE plus Dynamic Client Registration or a client ID and secret should work.

Do I need an API key or shared secret?

Most clients need only the server URL. No API keys or shared secrets are required for the standard OAuth handshake. Clients that cannot register themselves, such as Gemini Enterprise, use a client ID and secret created under Integrations → MCP — a personal client for yourself, or a company client for everyone if you are an admin.

Which MCP protocol versions are supported?

The server supports MCP protocol 2026-07-28 and every 2025 revision — 2025-03-26, 2025-06-18 and 2025-11-25 — over Streamable HTTP. It is stateless, so 2025-era clients starting with initialize and 2026-07-28 clients sending per-request metadata both work, with the version negotiated per client.

Does MCP give me more access than the web app?

Each call is checked against your role, and writes go through the same role, permission and plan checks as the web app. Leave and TOIL lists follow the wallchart view, and everyone can read their own location's leave policies. MCP never acts on behalf of another user — every change is made as you, and writes are logged as done via AI assistant (MCP).