EVoShifts PL

AI assistants (MCP)

Connect Claude, ChatGPT, Cursor or another MCP client to EVoShifts: the tools (reading, and changes in two steps when the owner allows them), privacy, client setup and OAuth details for client developers.

EVoShifts runs a Model Context Protocol server, so an owner can ask an AI assistant about their business in plain language: "Which shifts next week are still open?", "Labour % this month against last month?", "Who worked the most hours in October?". The assistant calls EVoShifts' tools and gets the same data the API gives, and less. When the owner allows it, the assistant can also propose changes ("give Anna Friday's open shift", "publish next week"), which are written only after the person confirms them in the chat (Changes); pay terms only with a button in EVoShifts.

The server

Addresshttps://evoshift.app/mcp
TransportStreamable HTTP, stateless: each POST carries one JSON-RPC message and gets one JSON answer. No sessions (Mcp-Session-Id) and no server-sent events; GET and DELETE are answered 405. Notifications get 202 with no body. Batches are refused.
Protocol versions2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05. initialize answers the client's version when it is one of these, else the newest. An unknown MCP-Protocol-Version header is 400.
Methodsinitialize, ping, tools/list, tools/call (no resources, prompts, sampling or elicitation)
Malformed requestsA body that is not JSON is refused 400 by the hosting platform before the server runs, with an HTML page rather than a JSON-RPC error; valid JSON that is not one JSON-RPC 2.0 message (a batch, no "jsonrpc": "2.0") is 400 with error -32600
AuthenticationAn API key with AI assistants (MCP) switched on, or an OAuth access token from "Sign in with EVoApps" (OAuth)
BrowsersRequests from a web page are accepted only from https://claude.ai, https://claude.com, https://chatgpt.com and https://evoshift.app (403 otherwise); clients without an Origin header (servers, desktop apps) are not affected

The key's levels decide which tools tools/list shows, and every call is checked again against the key and the owner's access at that workplace now. The key's rate limit (60 requests a minute), expiry, plan check and audit log apply as in the API; each tool call is in the owner's Activity log by its name, never with its arguments or results.

Tools

The tools below only read (readOnlyHint: true); the write tools are in Changes. Tools that take a workplaceId may leave it out when the key has a single workplace. Each answers structuredContent and the same JSON as text.

ToolNeeds read access toInputAnswers
list_workplacesnothingnoneworkplaces (id, name, time zone, currency, today there), the key's access and expiresAt. Call it first.
list_peopleroster, time or absencesworkplaceId, includeInactive (default false)people: id, name, role, permission, active
list_shiftsrosterworkplaceId, from, to (at most 31 days)shifts: id, date, role, published, planned and actual times, person (id and name; null when open), workedBy when someone else worked it, open, notWorked; truncated when there were more than 1000
list_open_shiftsrosterworkplaceId, from, to (at most 31 days)shifts nobody is assigned to: id, date, role, published, planned times
get_worked_hourstimeworkplaceId, month (YYYY-MM)people: person, role, hours, night hours, overtime (50% and 100%), worked days, days of absence
get_daily_salessalesworkplaceId, from, to (at most 92 days)currency and days: net and gross sales, target, closed; with labour cost totals at read also labour (cost, hours, labour %, fromPlan when the day has only planned figures)
get_month_summarysalesworkplaceId, monthNet and gross sales, target, days with sales, closed days; with labour cost totals at read also labour (planned and actual cost, hours, labour % over the days that have both sales and cost). A total that no day has a figure for is null, not 0
list_absencesabsencesworkplaceId, from, to (at most 31 days)absences: person, first and last day, hours for part of a day, all workplaces or not (also those asked for at another workplace of the same company); never the kind
list_pending_requestsabsencesworkplaceId, from, to (at most 62 days)Requests waiting for a manager: absences (id, person, dates, hours; never the kind) and swaps (shift id, date, times, role, who gives it away, who wants it)

Dates are YYYY-MM-DD, both included. Shift times are the workplace's local times. Names, roles and workplace names are cut to 80 characters.

A problem with a call (no access to that tool, a bad date, an unknown workplace) is answered as a failed tool call (isError: true with a sentence), so the assistant can explain it or try again. A refused request (no key, bad key, plan not active, rate limit) is an HTTP error with a JSON-RPC error whose data.code is the API's error code; a 401 carries WWW-Authenticate: Bearer resource_metadata="https://evoshift.app/.well-known/oauth-protected-resource/mcp".

curl -s https://evoshift.app/mcp \
  -H "Authorization: Bearer $EVOSHIFTS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "MCP-Protocol-Version: 2025-06-18" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call",
       "params": {"name": "list_open_shifts", "arguments": {"from": "2026-03-02", "to": "2026-03-08"}}}'

Changes (write tools)

When the owner allows it, an assistant can also change data, always in two steps. Nothing is written by a single tool call.

  1. Propose. A propose_* tool checks the change with the same rules as the app (the month's roster exists and is not locked, the day is not closed, the person works there now, the role is one of the workplace's, a request is still waiting...) and answers a proposalId and changes: a plain-language list of what would change, before → after, with people's names, dates and amounts. It writes nothing but the proposal itself (readOnlyHint: true).
  2. Apply. The assistant shows that list to the person, and only after the person explicitly says yes in the chat calls apply_proposal with the proposalId (destructiveHint: true). The server then checks everything again: the same key or connection, the proposal unused and not expired (15 minutes), the key's levels against the owner's access now, and that nothing it depends on has changed since it was proposed (every document it touches, and for publishing the whole month's shifts). Then all the changes are written at once, or none.

A change made this way is stamped as made by an AI assistant (metadata.via: "AI_ASSISTANT" or aiAudit, with the proposal's id and the owner's user id) and listed in the owner's Activity log ("AI assistant ... made changes you confirmed"). The people concerned are told as when a manager makes the change in the app (a published roster, a decided swap, a new announcement).

ToolNeeds write access toWhat it proposes
propose_shift_changesrosterUp to 50 changes: create shifts, change their times, date (same month) or role, delete them (a published one is shown as removed at the next publish), assign or unassign a person. New and changed shifts wait for publishing, as in the app.
propose_publish_rosterrosterPublishing a month, or some of its days (from, to): shifts sent by push or e-mail, open shifts offered, unassigned draft shifts removed.
propose_clock_reviewtimeApproving recorded clock times, or setting someone's worked start and end on a shift.
list_pending_requests (read) and propose_request_decisionsabsencesApproving or rejecting absence requests (an approval frees the person's shifts it overlaps; the kind is never shown) and shift swaps. Requests with a yearly limit, and putting a shift on the marketplace, are decided in the app.
propose_daily_salessalesA day's net sales (takings); the day's labour % follows.
propose_costslabour cost totalsOne-off costs of a month (net amounts).
propose_announcementannouncementsA post to the team or one role, sent as a push in the owner's name.
propose_adjustmentspayBonuses, deductions and expense refunds with amounts the person gives.
propose_pay_termspayNew pay terms: never applied from the chat (below).
apply_proposalany writeWrites a proposal after the person's yes.

Pay terms need a button. propose_pay_terms answers status: "WAITING_FOR_BUTTON" and an approvalUrl (https://evoshift.app/web/ai/proposal?id=...). The person opens it, signs in to EVoShifts, sees the change with the current terms (which the assistant never sees) and presses Approve or Reject. Only someone who may edit pay at that workplace can see or approve it; it can be approved for 24 hours. apply_proposal refuses it (NEEDS_BUTTON).

A refused proposal or apply is a failed tool call whose text starts with a code:

CodeMeaning
STALESomething it depends on changed since; read again and propose again
EXPIREDOlder than 15 minutes (pay: 24 hours); propose again
ALREADY_USEDApplied or rejected already
UNKNOWN_PROPOSALNo such proposal for this key or connection
NO_WRITE_ACCESSThe key may (no longer) change that resource there
NEEDS_BUTTONPay terms: only with the button in the app
IN_APP_ONLYDecided in the app (a yearly limit, an unplanned clock-in, a marketplace offer...)
NO_ROSTER, MONTH_LOCKED, DAY_CLOSED, NO_DAY, UNKNOWN_PERSON, UNKNOWN_ROLE, UNKNOWN_SHIFT, HAS_RECORDED_TIME, NOT_PENDING, BAD_TIMES, BAD_ARGUMENTS, TOO_BIGThe change does not fit the app's rules; the text says why

Costs of shifts and the days' recalculated labour figures are refreshed by the app (the next time the month is published or opened by someone who sees pay), as for other changes made outside the app.

Prompt injection: the honest part

The confirmation in the chat is only as good as the assistant and the client. Tool results contain text people typed (names, roles, notes, workplace names), and a page or a document the assistant reads elsewhere can contain instructions too. The server keeps results structured, tells the assistant to treat such text as data, never as instructions, and writes nothing without a separate apply_proposal call; it cannot see whether the person really said yes. So:

  • Owners: give write only for what you want to change from the chat, keep AI may make changes off otherwise, and keep your client's tool approval prompts on (at least for apply_proposal): Claude, ChatGPT and Cursor can ask before each tool call. Read the list before you say yes. Pay terms never change without your own tap in EVoShifts.
  • Client developers: show apply_proposal calls to the person before running them, never auto-approve tools marked destructiveHint: true, and do not let other connectors' results trigger it.

Privacy

The MCP server shows an assistant what the key may read, and less:

  • A separate opt-in. A key works here only with AI assistants (MCP) switched on. Keys given to an accounting office or an automation service do not work with assistants.
  • Never individual pay. No pay terms, rates or shift costs, at any level. Labour cost totals give only a day's or a month's total.
  • Never contact details or private content. No phone numbers, addresses or e-mail addresses, no notes, no chat, no documents.
  • Absences without their kind. The assistant learns that someone is away and when, never why.
  • Changes only when allowed, and only after a yes. Without write levels and AI may make changes the assistant only reads. With them, it proposes and the person confirms (Changes); pay terms only with the button in EVoShifts.
  • Data, not instructions. Results are structured fields, and the server tells the assistant to treat names and roles typed by people as data, never as instructions.

Whatever a tool returns goes to the assistant's provider. The owner, as the controller, decides to send it there and needs their own terms with that provider; see Data protection.

Connecting an assistant

First the owner creates a key with AI assistants (MCP) and the levels the assistant needs (More → Business → API and webhooks → New key), or uses "Sign in with EVoApps" where the client supports OAuth (no key to paste). Menu names in the assistants' apps may change.

Claude (claude.ai, Claude Desktop, Claude mobile)

Settings → Connectors → Add custom connector, address https://evoshift.app/mcp, no client id or secret. Connect opens "Sign in with EVoApps": sign in with the owner's account, choose what Claude may read, the workplaces and for how long, then Allow. The connection is listed in the app under API and webhooks → Connected AI apps, where Disconnect cuts it off at once.

Claude Code

claude mcp add --transport http evoshifts https://evoshift.app/mcp \
  --header "Authorization: Bearer $EVOSHIFTS_API_KEY"

Claude Desktop with a key

Where you prefer a key to the connector, the desktop app's configuration file can start a local bridge to the server:

{
  "mcpServers": {
    "evoshifts": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://evoshift.app/mcp",
        "--header", "Authorization:${EVOSHIFTS_AUTH}"],
      "env": {"EVOSHIFTS_AUTH": "Bearer evs_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}
    }
  }
}

ChatGPT (developer mode)

Settings → Apps & Connectors → Advanced settings → Developer mode, then Create: address https://evoshift.app/mcp, authentication OAuth. ChatGPT finds the rest itself and opens the same sign-in and consent page.

Cursor

In ~/.cursor/mcp.json (or the project's .cursor/mcp.json):

{"mcpServers": {"evoshifts": {"url": "https://evoshift.app/mcp",
  "headers": {"Authorization": "Bearer evs_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}}}}

Other clients that let you set a header work the same way. Revoking the key or disconnecting the assistant in the app cuts it off at once; so does the key's or connection's expiry.

OAuth for client developers

Clients that cannot send a fixed header connect with "Sign in with EVoApps", an OAuth 2.1 authorization server shared by the EVo apps. The flow follows the MCP authorization specification.

Protected-resource metadata (RFC 9728)https://evoshift.app/.well-known/oauth-protected-resource/mcp (also without /mcp)
Resource (token audience)https://evoshift.app/mcp
Issuerhttps://login.getevoapps.app
Authorization server metadata (RFC 8414)https://login.getevoapps.app/.well-known/oauth-authorization-server
Authorization endpointhttps://login.getevoapps.app/oauth/authorize
Token endpointhttps://login.getevoapps.app/oauth/token
Dynamic client registration (RFC 7591)https://login.getevoapps.app/oauth/register
Revocation (RFC 7009)https://login.getevoapps.app/oauth/revoke
Scopesroster:read, time:read, sales:read, absences:read, finances:read; for changes roster:write, time:write, sales:write, absences:write, finances:write, announcements:write, pay:write (write includes read)
  1. Call /mcp without a token; read the 401's WWW-Authenticate resource_metadata, then the protected-resource metadata, then the issuer's metadata.
  2. Register: POST /oauth/register with JSON {"client_name": "...", "redirect_uris": [...]}. Clients are public (token_endpoint_auth_method: none, no secret); redirect addresses must be https:// or http:// loopback (localhost, 127.0.0.1, [::1], any port), at most 10. A Client ID Metadata Document is accepted instead from claude.ai, claude.com and chatgpt.com. A registered client that never gets a grant is removed after a day.
  3. Send the browser to /oauth/authorize with response_type=code, client_id, the exact redirect_uri, code_challenge with code_challenge_method=S256 (PKCE is required, plain is not accepted), state, scope (space-separated, from the list above) and resource=https://evoshift.app/mcp (required).
  4. The owner signs in and chooses on the consent page: the levels (pre-filled from scope, never above their own access, each one can be lowered; finances:read needs sales:read; a :write scope counts only when the owner also ticks Let the assistant make changes, off by default), the workplaces and how long access lasts (90 days by default, at most 365). Only owners can grant. The browser comes back with code, state and iss (RFC 9207), or with error=access_denied.
  5. Exchange the code within 60 seconds: POST /oauth/token, form-encoded, with grant_type=authorization_code, code, redirect_uri, client_id, code_verifier (and optionally resource). The answer has an access_token (evat_..., valid 1 hour, never past the grant), token_type: Bearer, expires_in, a refresh_token (evrt_...) and scope.
  6. Call /mcp with Authorization: Bearer evat_.... Refresh with grant_type=refresh_token, refresh_token and client_id: refresh tokens rotate on every use and never outlive the grant.

Security rules to build for:

  • Codes are single use and bound to the client, the redirect address, the PKCE challenge and the resource; a code used twice, or a used refresh token presented again, revokes the whole connection.
  • Tokens are bound to https://evoshift.app/mcp: they never open the REST API or another app's server, and the server accepts only tokens issued for exactly its address.
  • POST /oauth/revoke with token and client_id: a refresh token ends the connection, an access token only itself. The owner can also disconnect in the app at any time.
  • Each connection may make 60 requests a minute to /mcp. The authorization server limits requests per client address (registration: 10 an hour).

Questions about the API? Write to us with the endpoint, the time and the error code; never the key itself.

Contact us