Docs / MCP serverCreate an access token

WorkBeaver docs

MCP server manual

Connect with OAuth in ChatGPT or Codex, or use an access token from Settings → AI assistants. The examples below write the address as https://your-workbeaver.example/api/mcp.

WorkBeaver is an MCP (Model Context Protocol) server. Connect an AI assistant such as Claude, Cursor or VS Code to it and the assistant can plan, update and report on your work in plain language: "move the launch tasks to In progress", "turn these meeting notes into tasks", "what's overdue for me this week?".

The assistant works as you. It sees exactly what you can see, can only change what you can change, and everything it does appears in WorkBeaver's activity history under your name.

What assistants can do

About 55 tools cover almost everything people do in WorkBeaver:

  • Tasks: list and search tasks across projects, read a task with its comments, subtasks, files, links and history, create tasks, change title, description, status, priority, assignee, due date or custom fields, comment, and manage subtasks.
  • Projects: list projects with progress, read a project's statuses, members and custom fields, create projects from templates, workflows or your own stages, edit project details, and add or remove members.
  • Knowledge: list, read, create, edit, append to, delete and restore Markdown notes. [[Note title]], @task[…] and @meeting[…] become links, and #words become tags, just as in the editor.
  • Discussions: read threads, start them, reply and react.
  • Whiteboards: list, create and rename boards, and read the text on them.
  • Meetings: list, schedule, reschedule and cancel project meetings, with Google Calendar invitations and Meet links when you've connected Google.
  • Your calendar: list, add, change and delete events on your connected Google Calendar, and sync it.
  • Team: list members, invite people, change roles, remove members, create teams, and manage reusable workflows and status names.
  • Insight: recent activity, the full Team Reports numbers (KPIs, highlights, workload, per-person and per-project tables), and search.

Some ways to use it:

  • "What's on my plate? Group my open tasks by due date."
  • "Create a task in Website relaunch: write the launch email, due Friday, high priority, assigned to Priya."
  • "Here are my meeting notes. Save them as a note in the Launch project and create a task for each action item."
  • "Write me a weekly update from the Team Report for the last 7 days."
  • "Schedule a 30-minute launch sync tomorrow at 10:00 Kolkata time with the Launch project team, with a Meet link."

Quick start

ChatGPT and OAuth clients: add your WorkBeaver /api/mcp URL as a custom MCP connection and choose OAuth. Leave Client ID and Client Secret empty: registration is automatic (CIMD or dynamic registration). Sign in to WorkBeaver, complete two-factor verification if enabled, and approve the consent screen. Your assistant receives short-lived, resource-bound access tokens and can refresh its connection. Revoke it in Settings → AI assistants → Connected assistants.

Clients with custom headers:

  1. Create an access token. In WorkBeaver open Settings → AI assistants, name the token after where it will live (for example "Claude on my laptop"), choose when it expires, and select Create token. Copy it straight away: it is shown only once.
  2. Connect your assistant. Settings shows a ready-to-paste command for Claude Code and a config block for other clients, or follow Connecting clients.
  3. Ask something. Try "Who am I in WorkBeaver, and which projects can I see?" The assistant calls whoami and list_projects and answers.

Server address

https://your-workbeaver.example/api/mcp

Use the address you open WorkBeaver at, followed by /api/mcp. Settings → AI assistants and the top of the manual page show yours.

  • Transport: Streamable HTTP. Requests are POST with a JSON-RPC body. The server is stateless and answers in plain JSON, so GET (an event stream) and DELETE (ending a session) return 405, which clients handle on their own.
  • Authentication: OAuth authorization-code sign-in with S256 PKCE, or a personal token in Authorization: Bearer wb_…. Browser cookies alone never authorize MCP calls.
  • Locally: http://localhost:3000/api/mcp while npm run dev is running.

Access tokens

A token is a personal key that lets an assistant act as you through the MCP server. Tokens start with wb_ and are 46 characters long.

Creating. Settings → AI assistants → name, expiry, Create token. Choose an expiry of 30, 90 (the default) or 365 days, or Never for an assistant that runs all the time. You can hold up to 20 tokens.

Seeing them. The list under the form shows each token's name, its first few characters, when it was created, when it was last used (updated at most once a minute) and when it expires or expired.

Revoking. Select Revoke next to a token. It stops working on the very next request. Revoke a token as soon as a laptop is lost, an assistant is no longer needed, or a token may have been shared.

Good practice

  • Use one token per assistant and per device, so you can revoke one without breaking the others.
  • Prefer an expiry over Never unless the assistant really runs unattended.
  • Keep tokens out of files you commit. VS Code and Cursor can read them from an environment variable or ask for them (see below).
  • Treat a token like a password: anyone holding it can do what you can do in WorkBeaver.

What a token can't do

  • Work anywhere except /api/mcp: it can't open pages, call the app's forms, or reach any other address.
  • Open the Vault, reveal credentials, change your password or two-factor settings, or create, list or revoke tokens. Those always need you, signed in, in a browser.
  • Outlive its expiry or its revocation.

Connecting clients

Replace https://your-workbeaver.example with your address and wb_… with your token in the examples below.

ChatGPT

In the custom MCP connection settings, set the server URL to https://your-workbeaver.example/api/mcp, select OAuth, and connect. WorkBeaver publishes discovery metadata, supports Client ID Metadata Documents (CIMD), and offers dynamic registration for clients that require it. No Google Client ID or personal token belongs in the OAuth Client ID field. The consent screen shows the assistant, account, permissions and destination before you approve it.

Codex

Add the same URL as an HTTP MCP server using OAuth, then sign in through the browser. Personal tokens also work in clients that let you configure the Authorization header. Never commit tokens to a repository.

Claude Code

claude mcp add --transport http workbeaver https://your-workbeaver.example/api/mcp --header "Authorization: Bearer wb_…"

Add --scope user to use WorkBeaver from every project on your computer instead of only the current folder. Check the connection with claude mcp list, or run /mcp inside a Claude Code session.

Claude Desktop

Claude Desktop starts local servers from its config file, so it connects through mcp-remote, which forwards to WorkBeaver. You need Node.js installed for npx.

Open Settings → Developer → Edit Config (or the file directly: %APPDATA%\Claude\claude_desktop_config.json on Windows, ~/Library/Application Support/Claude/claude_desktop_config.json on macOS) and add:

{
  "mcpServers": {
    "workbeaver": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://your-workbeaver.example/api/mcp", "--header", "Authorization:${WORKBEAVER_AUTH}"],
      "env": { "WORKBEAVER_AUTH": "Bearer wb_…" }
    }
  }
}

Restart Claude Desktop. Keep the header written as Authorization:${WORKBEAVER_AUTH} with no space: Claude Desktop on Windows doesn't escape spaces inside args, so the space lives in the environment variable instead.

Cursor

Add WorkBeaver to ~/.cursor/mcp.json (every project) or .cursor/mcp.json (one project; keep it out of git if it holds a token):

{
  "mcpServers": {
    "workbeaver": {
      "url": "https://your-workbeaver.example/api/mcp",
      "headers": { "Authorization": "Bearer wb_…" }
    }
  }
}

VS Code (GitHub Copilot)

Add this to .vscode/mcp.json, or to your user mcp.json with MCP: Open User Configuration. VS Code asks for the token the first time and stores it for you, so it never sits in the file:

{
  "inputs": [
    { "type": "promptString", "id": "workbeaver-token", "description": "WorkBeaver access token (wb_…)", "password": true }
  ],
  "servers": {
    "workbeaver": {
      "type": "http",
      "url": "https://your-workbeaver.example/api/mcp",
      "headers": { "Authorization": "Bearer ${input:workbeaver-token}" }
    }
  }
}

Any other client, or plain HTTP

Any MCP client that speaks Streamable HTTP and can send a custom header works with the same URL and header. To call a tool by hand:

curl -X POST https://your-workbeaver.example/api/mcp \
  -H "Authorization: Bearer wb_…" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"whoami","arguments":{}}}'

Use "method":"tools/list" to list the tools. The Accept header must name both types, as the MCP specification requires. No initialize handshake is needed first, though clients may send one.

How assistants work with WorkBeaver

Acting as you

Every call runs with your account and your role, through the same checks as the app. If you couldn't do something by clicking, the assistant can't either, and it gets the same explanation you would see ("Only owners and admins manage templates."). Comments, tasks and notes it creates are authored by you, and activity reads "Olive created task …", never "an assistant".

Teams

If you belong to several teams, whoami lists them with their ids and your role in each. Team-wide tools (lists, search, reports, creating projects, managing members and workflows) take an optional teamId; without it they use your first team. Tools that act on a specific project, task, note or meeting work out the team from that item.

Items are addressed by id. Assistants get ids from list_…, get_…, search and whoami. Statuses can be given by name, case-insensitively ("in progress"), as well as by id. Results include a url back into WorkBeaver where it helps, so an assistant can hand you a link. Those links use the app address set in BETTER_AUTH_URL.

Dates and times

  • Dates are yyyy-mm-dd. Due dates are whole days.
  • Times are 24-hour HH:mm, always with an IANA time zone such as Asia/Kolkata, Europe/London or America/New_York. Meetings keep the zone they were booked in. Results show times in UTC (startsAt) along with a readable when in the meeting's own zone.
  • Meeting and calendar lists default to yesterday through the next month.

Paging

Long lists come a page at a time with hasMore: projects 10 per page, tasks 25, discussions 25. Pass offset (10, 20, …) for the next page. Notes return up to 100, meetings and calendar events up to 200 in the chosen range, activity 30 by default (up to 100), and search 20 of each kind.

Results and errors

Results are JSON. A refused or impossible request comes back as a tool error with a sentence the assistant can act on, for example "This project has no status “Shipped”. Choose one of: Backlog, To Do, Doing, Done." update_task saves changes one at a time, as the task view does. If one is refused, the error says which changes were already saved.

Reading, changing, deleting and going outside

Each tool is marked as reading, changing, deleting, or reaching outside WorkBeaver (Google Calendar invitations, Meet links, invitation emails). Clients show these marks and can use them to decide when to ask you first. Most clients, Claude included, ask before running a tool until you allow it.

Permissions at a glance

WhatOwnerAdminMember
See projectsAll in the teamAll in the teamOnly projects they belong to
Create projects✓✓✓
Tasks, comments, subtasks, notes, discussions, whiteboards, meetings in projects they can see✓✓✓
Edit project details, add or remove project members✓✓–
Create and update workflows, rename statuses✓✓–
Invite members✓✓ (members only)–
Invite admins, change roles✓––
Remove someone from the team (never the owner)✓✓–
Reschedule, cancel or re-sync a meetingThe meeting's organizerThe meeting's organizerThe meeting's organizer
Team ReportsWhole teamWhole teamTheir own projects
Personal calendar eventsTheir ownTheir ownTheir own

Example workflows

Morning check-in. "What's due for me this week, and what changed in my projects since yesterday?" uses list_tasks (scope mine, status open, sorted by due) and get_activity.

Meeting notes to tasks. Paste the notes and ask for them to be saved and turned into tasks. The assistant uses create_note in the project, create_task for each action item with an owner and due date, and link_items to link each task to the note.

Sprint planning. "Move the High priority tasks in Backlog to To Do and break each into subtasks." The assistant uses list_tasks and get_task, then update_task with the status To Do and add_subtask.

Weekly update. "Write a weekly update for the team from the last 7 days." The assistant runs get_team_report with range 7d, which returns KPIs, highlights, workload and per-project progress, then writes the summary. It can save the summary with create_note or post it with create_discussion.

Scheduling. "Set up a launch review next Tuesday 15:00 London time with the Launch team and a Meet link." The assistant uses get_project for the members, then create_meeting. If Google rejects it, the meeting is still saved and googleSync shows FAILED. sync_meeting retries it.

Not available through MCP

  • The Vault, passwords and two-factor settings. These stay browser-only, with their own unlock and checks.
  • Access tokens. Creating, listing and revoking them is browser-only.
  • Connecting or disconnecting Google Calendar. That's an OAuth sign-in, done in Settings. Once connected, the calendar and meeting tools use it.
  • Uploading files to tasks. Assistants can list and remove files but not upload them.
  • Drawing on whiteboards. Assistants can read a board's text and shape counts.
  • Deleting tasks or projects, and notification settings. WorkBeaver doesn't offer these to anyone yet.

Security and privacy

  • Only a SHA-256 hash of each token is stored, and the token itself is shown once. Tokens are 256 bits of randomness, so they can't be guessed.
  • A token works only at /api/mcp, and the endpoint ignores browser cookies. A web page you visit therefore can't use your signed-in session to drive WorkBeaver through it.
  • Every change goes through the same permission checks and activity history as the app, and the token list shows when each token was last used.
  • What you share with your AI provider: anything the assistant reads through WorkBeaver (task text, notes, discussions, names and emails of team members) is sent to the AI service behind your assistant, under that service's terms. Connect only assistants your team is comfortable with, and revoke tokens you no longer use.
  • Run WorkBeaver over HTTPS in production so tokens never cross the network in plain text.

OAuth connections

  • mcp:tools grants the existing MCP tools with the signed-in user's permissions; it does not expose the Vault or account security controls. OIDC openid, profile and email scopes describe identity access. offline_access allows refresh tokens.
  • Authorization codes are single-use and PKCE-bound. Callback addresses match the registered client. Access tokens expire after 1 hour; refresh tokens expire after 30 days and rotate on use (a retry within 30 seconds gets the same new tokens, a later reuse is rejected). A connection also ends when the sign-in that approved it expires (30 days) or you sign out.
  • Every OAuth MCP request verifies the access token's signature, issuer, resource audience, expiry and scope, then checks the current session, client and consent. Sign-out, session expiry, client disabling and revoked consent invalidate access immediately. After the browser session expires, reconnect through sign-in.
  • Revoking a connection removes its consent and refresh/access-token records. JWTs are bound to the exact consent record, so reconnecting cannot revive an earlier token. A different user cannot revoke your connection. Personal access tokens remain independent.
  • CIMD metadata fetches use the provider's DNS validation, connection pinning and redirect rejection to prevent access to internal network resources.

Troubleshooting

What you seeWhyWhat to do
"Couldn't register with the sign-in service"Discovery/registration is unavailable, the database migration is missing, or the edge firewall blocks an OAuth routeDeploy the OAuth release and migration, verify BETTER_AUTH_URL, and allow public requests to discovery, registration, authorization, token and JWKS endpoints.
OAuth connection no longer worksThe browser session expired, access was revoked, or the client was disabledConnect again and approve a new sign-in request.
401, "Send a WorkBeaver access token…"The header is missing or mistyped, or the token is unknown, expired or revokedCheck the header reads exactly Authorization: Bearer wb_…. Create a new token if it expired.
406, "Not Acceptable"A hand-written request is missing the Accept headerSend Accept: application/json, text/event-stream.
405 on GETThe server is stateless and has no event streamNothing: clients carry on over POST.
The tools don't show upThe client didn't reload its configRestart the client. In Claude Code run claude mcp list and /mcp.
"You are not a member of that team."Wrong teamIdAsk the assistant to call whoami and use one of the listed team ids.
"You do not have permission for this project."You're a member who isn't in that projectAsk an owner or admin to add you to the project.
"Only owners and admins…" or "Only the owner…"Your role doesn't allow itSee Permissions at a glance.
"Choose a project member to assign this task to."Tasks are assigned to you by default, and you aren't in that projectPass assigneeId with a project member's id from get_project.
Google Calendar errors, or googleSync: "FAILED"Google isn't connected, or it rejected the changeConnect Google Calendar in Settings, then run sync_meeting.
Links point to the wrong addressBETTER_AUTH_URL is set to another addressSet BETTER_AUTH_URL to the address people open WorkBeaver at.

Tool reference

All 58 tools, listed from the server exactly as assistants see them. Team-wide tools also take an optional teamId.

Start here

Who you are, your teams, and finding things.

whoami

Reads

Who am I

Your WorkBeaver account and the teams you belong to, with your role in each. Call this first to learn your user id and team ids.

No parameters.

Tasks

Kanban tasks across your projects.

list_tasks

Reads

List tasks

Tasks across the projects you can see, 25 per page. Filter to your own (scope: mine), one project, open or done; sort by due date to see what's next.

ParameterTypeDescription
qstringMatches the title or description.
scopeall | mine | createdmine = assigned to you; created = created by you.
projectIdstringThe project's id.
statusopen | done
sortnewest | due | priority | updated
offsetintegerHow many results to skip, for the next page.
teamIdstringTeam to work in (see whoami). Defaults to your first team.

get_task

Reads

Get a task

Everything about one task: description, status, assignee, due date, custom fields, subtasks, comments, files, linked items and its change history.

ParameterTypeDescription
taskIdrequiredstringThe task's id.

create_task

Changes

Create a task

Adds a task to a project. It is assigned to you unless you name a project member, and starts in the board's To Do status unless you name another. Goes on the project's main board unless you name another board (see get_project).

ParameterTypeDescription
projectIdrequiredstringThe project's id.
boardIdstringA board id from get_project. Defaults to the main board.
titlerequiredstring
descriptionstring
assigneeIdstringThe person's id. Must be a project member. Defaults to you.
dueDatedate (yyyy-mm-dd)
priorityLow | Medium | HighDefaults to Medium.
statusstringA status name or id from get_project.
fieldsobjectValues for the project's extra task fields, by key (see get_project).

update_task

Changes

Update a task

Changes any of a task's title, description, status, priority, assignee, due date or custom fields. Only what you pass changes. Moving it to the last status completes it.

ParameterTypeDescription
taskIdrequiredstringThe task's id.
titlestring
descriptionstring
statusstringA status name or id from get_task or get_project.
priorityLow | Medium | High | Urgent
assigneeIdstringThe person's id. Must be a project member.
dueDatedate (yyyy-mm-dd) | nullyyyy-mm-dd, or null to remove the due date.
fieldsobjectCustom field values by key; an empty string clears one.

comment_on_task

Changes

Comment on a task

Adds a comment to a task, as you.

ParameterTypeDescription
taskIdrequiredstringThe task's id.
bodyrequiredstring

add_subtask

Changes

Add a subtask

Adds a checklist item to a task (up to 100 per task).

ParameterTypeDescription
taskIdrequiredstringThe task's id.
titlerequiredstring

set_subtask_done

Changes

Tick or untick a subtask

Marks a subtask done, or reopens it.

ParameterTypeDescription
subtaskIdrequiredstringThe subtask's id.
donerequiredboolean

remove_subtask

Deletes

Remove a subtask

Deletes a subtask from its task.

ParameterTypeDescription
subtaskIdrequiredstringThe subtask's id.

remove_task_file

Deletes

Remove a file from a task

Deletes a photo, video, audio clip or file attached to a task (ids from get_task).

ParameterTypeDescription
fileIdrequiredstringThe file's id.

Projects

Projects, their statuses and members.

list_projects

Reads

List projects

Projects you can see in the team, 10 per page, with progress, members, due date and each stage's task count.

ParameterTypeDescription
qstringMatches the name or description.
sortupdated | newest | oldest | name
minebooleanOnly projects you created.
offsetintegerHow many results to skip, for the next page.
teamIdstringTeam to work in (see whoami). Defaults to your first team.

get_project

Reads

Get a project

One project's details: its statuses (workflow columns, the last one means finished) with task counts, members, and the extra task fields its template adds.

ParameterTypeDescription
projectIdrequiredstringThe project's id.

list_project_templates

Reads

List project templates and workflows

Templates (Scrum, bug tracking, content calendar…) and saved workflows a new project can start from.

ParameterTypeDescription
teamIdstringTeam to work in (see whoami). Defaults to your first team.

create_project

Changes

Create a project

Creates a project with you as its first member. Its stages come from `stages`, else the template's or workflow's, else To Do → In Progress → Done.

ParameterTypeDescription
namerequiredstring
descriptionstring
startDatedate (yyyy-mm-dd)
endDatedate (yyyy-mm-dd)
templateIdstringA template id from list_project_templates.
workflowIdstringA saved workflow id from list_project_templates.
stageslist of stringStage names in order; the last one means finished.
teamIdstringTeam to work in (see whoami). Defaults to your first team.

update_project

Changes

Update a project

Changes a project's name, description, dates or cover. Only what you pass changes; pass null to clear a date. Owners, admins and project managers only.

ParameterTypeDescription
projectIdrequiredstringThe project's id.
namestring
descriptionstring
startDatedate (yyyy-mm-dd) | null
endDatedate (yyyy-mm-dd) | null
coversunrise | coral | berry | grape | ocean | lagoon | aurora | midnight

add_project_member

Changes

Add someone to a project

Adds a team member to a project so they can see it and be assigned its tasks.

ParameterTypeDescription
projectIdrequiredstringThe project's id.
userIdrequiredstringThe person's id. They must already be in the team (see list_team_members).

remove_project_member

Deletes

Remove someone from a project

Removes a person from a project, along with their access to its vaults.

ParameterTypeDescription
projectIdrequiredstringThe project's id.
userIdrequiredstringThe person's id.

Knowledge

Markdown notes with links, tags and revisions.

list_notes

Reads

List notes

A project's knowledge notes, most recently edited first (up to 100). Filter by folder, #tag or text.

ParameterTypeDescription
projectIdrequiredstringThe project's id.
folderstring
tagstringWithout the #.
qstringMatches the title or body.

get_note

Reads

Read a note

A note's Markdown body, the items it links to and that link to it, and its saved revisions (restore one with restore_note_revision).

ParameterTypeDescription
noteIdrequiredstringThe note's id.

create_note

Changes

Create a note

Creates a Markdown note in a project's knowledge base. [[Note title]], @task[Task title] and @meeting[Meeting title] in the body become links; #words become tags.

ParameterTypeDescription
projectIdrequiredstringThe project's id.
titlestringDefaults to “Untitled”.
folderstringDefaults to General.
bodystringMarkdown.

update_note

Changes

Edit a note

Changes a note's title, folder or body. Pass `body` to replace the text, or `append` to add to the end. The previous version is kept as a revision.

ParameterTypeDescription
noteIdrequiredstringThe note's id.
titlestring
folderstring
bodystringMarkdown that replaces the whole body.
appendstringMarkdown added after the current body.

delete_note

Deletes

Delete a note

Permanently deletes a note, its revisions and its links.

ParameterTypeDescription
noteIdrequiredstringThe note's id.

restore_note_revision

Changes

Restore a note revision

Puts a note back to a saved revision (ids from get_note). The current text is kept as a revision first.

ParameterTypeDescription
revisionIdrequiredstringThe revision's id.

Discussions

Project threads, replies and reactions.

list_discussions

Reads

List discussions

A project's discussion threads, most recently active first, 25 per page.

ParameterTypeDescription
projectIdrequiredstringThe project's id.
offsetintegerHow many results to skip, for the next page.

get_discussion

Reads

Read a discussion

A discussion thread with all its replies and emoji reactions.

ParameterTypeDescription
discussionIdrequiredstringThe discussion's id.

create_discussion

Changes

Start a discussion

Starts a discussion thread in a project, as you.

ParameterTypeDescription
projectIdrequiredstringThe project's id.
titlerequiredstring
bodyrequiredstring

reply_to_discussion

Changes

Reply to a discussion

Posts a reply in a discussion thread, as you.

ParameterTypeDescription
discussionIdrequiredstringThe discussion's id.
bodyrequiredstring

toggle_reaction

Changes

React to a post

Adds your emoji reaction to a discussion or reply, or takes it back if you already reacted with it.

ParameterTypeDescription
targetTyperequireddiscussion | reply
targetIdrequiredstringThe discussion or reply's id.
emojirequired👍 | ❤️ | 🎉 | 😂 | 🤔 | 👀

Whiteboards

Excalidraw boards.

list_whiteboards

Reads

List whiteboards

A project's Excalidraw whiteboards.

ParameterTypeDescription
projectIdrequiredstringThe project's id.

get_whiteboard

Reads

Read a whiteboard

What is on a whiteboard: how many shapes of each kind, and all of its text.

ParameterTypeDescription
whiteboardIdrequiredstringThe whiteboard's id.

create_whiteboard

Changes

Create a whiteboard

Creates an empty whiteboard in a project.

ParameterTypeDescription
projectIdrequiredstringThe project's id.
titlestring

rename_whiteboard

Changes

Rename a whiteboard

Changes a whiteboard's title.

ParameterTypeDescription
whiteboardIdrequiredstringThe whiteboard's id.
titlerequiredstring

Meetings

Project meetings, with Google Calendar and Meet when connected.

list_meetings

Reads

List meetings

Project meetings in a date range (default: yesterday through the next month), in one project or all you can see, with attendees and Meet links.

ParameterTypeDescription
projectIdstringThe project's id.
fromdate (yyyy-mm-dd)
todate (yyyy-mm-dd)
includeCancelledboolean
teamIdstringTeam to work in (see whoami). Defaults to your first team.

create_meeting

Changes, reaches Google or email

Schedule a meeting

Schedules a project meeting. When you have connected Google Calendar in WorkBeaver it also goes on your Google Calendar, invites everyone and (by default) adds a Meet link. The meeting is saved even if Google fails; see googleSync.

ParameterTypeDescription
projectIdrequiredstringThe project's id.
titlerequiredstring
daterequireddate (yyyy-mm-dd)
startTimerequiredtime (HH:mm)
endTimerequiredtime (HH:mm)
timeZonerequiredstring
descriptionstring
attendeeIdslist of stringProject members to invite.
guestslist of emailEmail addresses of people outside WorkBeaver.
addMeetbooleanAdd a Google Meet link. Defaults to yes when Google Calendar is connected.

reschedule_meeting

Changes, reaches Google or email

Reschedule a meeting

Moves a meeting to a new date and time and updates the Google Calendar invite. Organizer only.

ParameterTypeDescription
meetingIdrequiredstringThe meeting's id.
daterequireddate (yyyy-mm-dd)
startTimerequiredtime (HH:mm)
endTimerequiredtime (HH:mm)
timeZonestringDefaults to the meeting's own time zone.

cancel_meeting

Deletes, also in Google

Cancel a meeting

Cancels a meeting and its Google Calendar event, which notifies the attendees. Organizer only.

ParameterTypeDescription
meetingIdrequiredstringThe meeting's id.

sync_meeting

Changes, reaches Google or email

Retry a meeting's Google sync

Sends a meeting to Google Calendar again after a failure, or adds a Meet link to it. Organizer only.

ParameterTypeDescription
meetingIdrequiredstringThe meeting's id.
addMeetbooleanAlso add a Google Meet link.

Your calendar

Your own connected Google Calendar.

list_calendar_events

Reads

List my calendar events

Events on your connected Google Calendar in a date range (default: yesterday through the next month), as last synced. Run sync_google_calendar first for the latest.

ParameterTypeDescription
fromdate (yyyy-mm-dd)
todate (yyyy-mm-dd)

create_calendar_event

Changes, reaches Google or email

Add a calendar event

Creates an event on your Google Calendar (connect it in WorkBeaver → Settings first) and invites any attendees.

ParameterTypeDescription
titlerequiredstring
daterequireddate (yyyy-mm-dd)
startTimerequiredtime (HH:mm)
endTimerequiredtime (HH:mm)
timeZonerequiredstring
descriptionstring
locationstring
attendeeslist of emailEmail addresses to invite.
addMeetbooleanAdd a Google Meet link.

update_calendar_event

Changes, reaches Google or email

Change a calendar event

Changes an event on your Google Calendar. Only what you pass changes.

ParameterTypeDescription
eventIdrequiredstringThe event's id.
titlestring
datedate (yyyy-mm-dd)
startTimetime (HH:mm)
endTimetime (HH:mm)
timeZonestring
descriptionstring
locationstring
attendeeslist of emailEmail addresses to invite.
addMeetbooleanAdd a Google Meet link.

delete_calendar_event

Deletes, also in Google

Delete a calendar event

Deletes an event from your Google Calendar.

ParameterTypeDescription
eventIdrequiredstringThe event's id.

sync_google_calendar

Changes, reaches Google or email

Sync my Google Calendar

Pulls the latest events from your connected Google Calendar into WorkBeaver.

No parameters.

Team and workflows

Members, roles, invitations, and reusable workflows.

list_team_members

Reads

List team members

Everyone in the team with their id, email and role (OWNER, ADMIN or MEMBER).

ParameterTypeDescription
teamIdstringTeam to work in (see whoami). Defaults to your first team.

invite_member

Changes, reaches Google or email

Invite someone to the team

Creates an invitation link (valid 7 days). With an email, WorkBeaver also emails it. Owners and admins only; only the owner can invite admins.

ParameterTypeDescription
emailemailWho to invite. Leave out for a link anyone can use.
roleMEMBER | ADMINDefaults to MEMBER.
projectIdstringThe project's id. Also adds them to this project when they join.
teamIdstringTeam to work in (see whoami). Defaults to your first team.

update_member_role

Changes

Change a member's role

Makes a team member an ADMIN or a MEMBER. Owner only.

ParameterTypeDescription
userIdrequiredstringThe person's id.
rolerequiredADMIN | MEMBER
teamIdstringTeam to work in (see whoami). Defaults to your first team.

remove_team_member

Deletes

Remove someone from the team

Removes a person from the team, its projects and their vault access. Owners and admins only; the owner can't be removed.

ParameterTypeDescription
userIdrequiredstringThe person's id.
teamIdstringTeam to work in (see whoami). Defaults to your first team.

create_team

Changes

Create a team

Creates a new team with you as its owner.

ParameterTypeDescription
namerequiredstring

create_workflow

Changes

Create a workflow

Saves a reusable list of stages new projects can start from. Owners and admins only.

ParameterTypeDescription
namerequiredstring
stagesrequiredlist of string
teamIdstringTeam to work in (see whoami). Defaults to your first team.

update_workflow

Changes

Update a workflow

Publishes a new version of a saved workflow's stages, or saves them as a draft. Projects already using it keep their own stages. Owners and admins only.

ParameterTypeDescription
workflowIdrequiredstringThe workflow's id.
stagesrequiredlist of string
draftbooleanSave as a draft instead of publishing.
teamIdstringTeam to work in (see whoami). Defaults to your first team.

duplicate_workflow

Changes

Duplicate a workflow

Copies a saved or built-in workflow into the team as “<name> copy”. Owners and admins only.

ParameterTypeDescription
workflowIdrequiredstringThe workflow's id.
teamIdstringTeam to work in (see whoami). Defaults to your first team.

rename_stage

Changes

Rename a status

Renames a status (workflow column) in every project you can see that has it, or in one project. Owners and admins only.

ParameterTypeDescription
fromrequiredstringThe current status name.
torequiredstringThe new name.
projectIdstringThe project's id. Limit the rename to this project.
teamIdstringTeam to work in (see whoami). Defaults to your first team.

Activity and reports

What changed, and the Team Reports numbers.

get_activity

Reads

Recent activity

What changed recently, newest first: across the team's projects you can see, or in one project.

ParameterTypeDescription
projectIdstringThe project's id.
limitintegerDefaults to 30.
teamIdstringTeam to work in (see whoami). Defaults to your first team.

get_team_report

Reads

Team report

The Team → Reports numbers: KPIs with change against the previous period, highlights, workload, per-person and per-project tables, status and priority breakdowns, lead time and overdue age. Members only see their own projects.

ParameterTypeDescription
range7d | 30d | 90d | quarter | custom7d, 30d (default), 90d or quarter. Ignored when from and to are given.
fromdate (yyyy-mm-dd)
todate (yyyy-mm-dd)
projectIdslist of string
memberIdslist of stringPeople to include; "unassigned" means tasks with no assignee.
prioritieslist of Urgent | High | Medium | Low
teamIdstringTeam to work in (see whoami). Defaults to your first team.

More tools

get_project_costs

Reads

Get a project's costs

A project's budget against what is spent (expenses and finished tasks) and planned (open tasks' estimates at each assignee's hourly rate), with the remaining budget and where the money goes. Team owners and admins only, on projects with cost tracking on.

ParameterTypeDescription
projectIdrequiredstringThe project's id.

set_project_budget

Changes

Set a project's budget

Turns cost tracking on or off for a project and sets its budget and currency. Owners and admins only.

ParameterTypeDescription
projectIdrequiredstringThe project's id.
enabledbooleanWhether the project tracks costs.
budgetrequirednumberThe total budget.
currencyUSD | EUR | GBP | INR | CAD | AUD | JPY | CHF | SGD | AED

add_expense

Changes

Record a project expense

Records money spent on a project (a tool, travel, a vendor). The project must have cost tracking on. Owners and admins only.

ParameterTypeDescription
projectIdrequiredstringThe project's id.
titlerequiredstring
amountrequirednumber
categorySoftware | Travel | Vendor | Equipment | Marketing | Other
vendorstring
daydate (yyyy-mm-dd)The day it was spent; defaults to today.
taskIdstringThe task's id. A task in this project it was for.

For developers

Where things live

  • src/app/api/mcp/route.ts is the endpoint: it checks the token, then runs the request as its owner.
  • src/lib/mcp/server.ts builds the server and holds the instructions every assistant receives.
  • src/lib/mcp/work-tools.ts and src/lib/mcp/content-tools.ts define the tools, and src/lib/mcp/tool.ts holds the shared helpers (addTool, unwrap, form, argument shapes).
  • src/lib/mcp/groups.ts sorts the tools into the sections of the tool reference.
  • src/lib/api-tokens.ts handles token creation, lookup and the request-scoped caller. src/app/actions/api-tokens.ts and src/components/api-tokens.tsx are the Settings side.
  • The ApiToken model lives in prisma/schema.prisma.
  • src/lib/auth.ts configures Better Auth's MCP, JWT and CIMD plugins. src/app/.well-known/[...path]/route.ts forwards public discovery to the auth handler; /api/auth/oauth2/* handles registration, authorization, consent, token, introspection and revocation.
  • src/app/oauth/signin/page.tsx and src/app/oauth/consent/page.tsx connect the existing sign-in/2FA flow to verified consent requests. src/lib/mcp/oauth-access.ts validates OAuth callers and revokes connections.
  • Migration 20261010120000_mcp_oauth adds OAuth resource/client/consent/token/assertion records and encrypted signing keys. It must run before serving this release.

How a request is handled. The route resolves the token to its owner and runs the request inside asApiCaller. currentUser() in src/lib/session.ts returns that caller first, so every existing helper (requireProject, requireTask, activeTeam) and server action works unchanged. A tool's optional teamId replaces the team cookie the browser uses.

Adding a tool

addTool(server, "archive_note", {
  title: "Archive a note", kind: "write", // read | write | delete | external | external-delete
  description: "What it does, in one or two sentences an assistant can act on.",
  input: { noteId: id("note") },
  run: async ({ noteId }) => { /* reuse a server action; throw new Error("A sentence for people") to refuse */ },
});
  • Prefer calling the existing server action. Validation, permissions, activity and page refreshes then come with it. Unwrap attempt() results with unwrap(), and build FormData with form().
  • Add team: true if the tool uses activeTeam().
  • Add the tool's name to a group in src/lib/mcp/groups.ts. The end-to-end test fails if a tool is missing from the reference.

Testing

  • npm test runs tests/api-tokens.test.ts, which covers token format, lookup, expiry, revocation and the caller scope.
  • With npm run dev running, npx playwright test tests/mcp.spec.ts drives the endpoint through the official MCP client. It covers token checks, a full project run as an owner, a member's permission boundaries, and the tool reference's coverage.
  • tests/mcp-oauth.spec.ts drives discovery, registration, signed consent, login/2FA, PKCE, refresh rotation, revocation, resource/scope validation, user permissions and the desktop/mobile browser flow. Use a separate local database and set BETTER_AUTH_URL=http://localhost:3000 for the local server and test process.
  • @modelcontextprotocol/sdk is pinned. src/lib/mcp/tool.ts imports two Next.js internals (isRedirectError, getURLFromRedirectError), so re-check them when upgrading next.