MCP Integration Guide
Learn how to connect Workunit to your development tools using the Model Context Protocol (MCP)
Overview
The Model Context Protocol (MCP) allows AI development tools to access Workunit directly. Once connected, AI assistants can create workunits, manage tasks, organize projects, link assets, and track your development work—all without leaving your editor or chat interface.
This guide covers installation for supported tools and provides a complete reference for all available MCP tools.
Most supported tools only need one install command, then a browser-based OAuth approval.
Every connected AI client sees the same workunits, tasks, projects, and saved context.
Access is authorized in your browser and persists across sessions for each tool.
Prerequisites
A Workunit account
Sign up at workunit.app before you connect an MCP client.
An MCP-compatible AI tool
Claude Code, OpenCode, Codex, Gemini CLI, or any other client that supports MCP over HTTP.
Internet access to workunit.app
Your client needs to reach the hosted MCP endpoint and complete the OAuth flow in the browser.
Installation
Choose your AI development tool below for specific installation instructions.
Before you run any of the commands below, sign in and open workunit.app/mcp to copy both the per-org URL and the MCP server name for the org you want to connect. Each org has its own URL (e.g. /mcp/orgs/{org_uuid}) and its own name (e.g. workunit_3615_computer) — paste them where the snippets show <your-mcp-url> and <your-mcp-name>.
Claude Code
Claude Code setup
Run this command in your terminal (replace <your-mcp-name> with the server name and <your-mcp-url> with the URL from workunit.app/mcp), then restart Claude Code if it is already open.
claude mcp add --transport http <your-mcp-name> <your-mcp-url>OpenCode
OpenCode setup
Add the remote MCP server, then authorize it in your browser.
opencode mcp addGlobal
Your per-org URL from workunit.app/mcp
Remote over HTTP
OAuth 2.0, no pre-registered client ID required
Then authenticate:
opencode mcp auth <your-mcp-name>If the OAuth callback fails because the browser can not reach 127.0.0.1 inside WSL, copy the full callback URL from the browser and run it manually in your WSL terminal.
curl "http://127.0.0.1:19876/mcp/oauth/callback?code=...&state=..."Codex (OpenAI)
Codex (OpenAI) setup
Add the Workunit MCP server (replace <your-mcp-name> with the server name and <your-mcp-url> with the URL from workunit.app/mcp), then approve the browser authorization prompt when it appears.
codex mcp add <your-mcp-name> --url <your-mcp-url>Gemini CLI
Gemini CLI setup
Install the server first (replace <your-mcp-name> with the server name and <your-mcp-url> with the URL from workunit.app/mcp), then authenticate from inside Gemini CLI.
gemini mcp add --transport http <your-mcp-name> <your-mcp-url>After installation, authenticate with:
/mcp auth <your-mcp-name>Other MCP Tools
Other MCP Tools setup
For any MCP-compatible client, use these connection settings and follow that tool's standard remote-server setup flow.
Your per-org URL from workunit.app/mcp
HTTP (Streamable)
OAuth 2.0
Authentication
Workunit uses OAuth 2.0 for secure authentication. The first time your AI tool uses a Workunit tool, you'll be prompted to authorize access through your browser.
Your MCP client asks Workunit for permission the first time it needs a protected tool.
A browser window launches to the Workunit OAuth authorization screen.
Review the requested permissions and click Authorize.
The tool is now connected and can call Workunit over MCP.
Your authorization persists across sessions. You only need to authenticate once per tool.
Working across organizations
You can belong to as many Workunit organizations as you like — personal, work, a side project, a client. Each org has its own MCP endpoint URL. Connect one AI client per org you want to expose; the URL pins that client to that one org.
Visit workunit.app/mcp. It lists every org you belong to with its per-org MCP endpoint URL and a copy button.
Run the install command for each org separately. Each connection uses a distinct server name from the discovery page (workunit_personal, workunit_acme, etc.), so you can tell the AI "use the workunit_acme server" and it knows exactly which connection to talk to.
Accept an invite in your browser and the new org shows up on workunit.app/mcp. Add a new connection from there to expose it to an AI client.
If you're removed from an org, that connection stops working immediately. Other orgs you still belong to are unaffected.
Most people connect one tool to one org. If you want to work across two orgs in the same conversation, add two MCP servers to your AI client (one per org). Because each connection has a distinct name from the discovery page, you can address them by name in your prompt — e.g. "use the workunit_acme server to list open workunits". Claude Code, OpenCode, etc. all support multiple MCP servers natively.
Try It Out
Now that your AI tool is connected, try these prompts. Every tool call lands in whichever org the MCP connection is pinned to — no need to mention the org by name in your prompt.
Which workunit tools do you have access to,
and which organization am I connected to?Create a workunit for implementing user authentication
for my app. Add clear success criteria and break it down
into tasks.I'd like to build a REST API for my blog. Create a project
called "Blog API" and add workunits for each endpoint
I'll need.Search for workunits about "authentication". Show me
what's been done and what tasks are still open.Get the workunit "Add password reset flow" and implement
the next open task. Update the task status when done.If your AI client has two Workunit MCP servers configured (one per org), you can ask it to compare workunits between them by name — e.g. "use the workunit_personal server to list active work, then the workunit_acme server to do the same".Any AI model connected via MCP sees the same workunits, tasks, and context. Start planning in Claude, implement in Codex, review in Gemini — your progress follows you everywhere.
Available Tools
Once connected, your AI assistant has access to the following tools. These tools work identically across all MCP-compatible clients.
System
pingTest MCP server connectivity. No authentication required.
get_authenticated_userReturns the signed-in user and every organization they belong to (id, name, role). Useful as a sanity check after install — confirms the connection works without writing anything.
Projects
Projects organize related workunits and assets into logical groups.
create_projectCreate a project to organize workunits and assets in your connected org.
get_projectsGet one or more projects by ID (1-100) in your connected org, with optional stats, assets, checkins, and workunits.
list_projectsList projects in your connected org, with optional status/owner/tag filters and pagination.
update_projectUpdate project fields via update_mask in your connected org.
asset_linkLink or unlink assets to/from projects or workunits in your connected org. Specify project_id or workunit_id. Supports relationship_type.
Workunits
Workunits are focused pieces of work with problem statements and success criteria.
create_workunitCreate a workunit with problem statement and success criteria in your connected org. Can link initial assets.
get_workunitsGet one or more workunits by ID (1-100) in your connected org, with optional tasks, assets, and structured context atoms.
update_workunitUpdate workunit fields in your connected org. Status=completed/archived triggers special workflows.
Tasks
Tasks break workunits into actionable items with status tracking and dependencies.
create_taskCreate a task in a workunit with title, priority, and optional dependencies, in your connected org.
get_tasksGet one or more tasks by ID (1-100) in your connected org, with status, assignee, dependencies, and optional comments and time logs.
update_taskUpdate task fields including status, priority, assignment, and due date, in your connected org.
Assets
Assets represent products, people, knowledge, and systems that your work involves.
create_assetCreate assets of any type — product, people, knowledge, or system — in your connected org.
get_assetsGet one or more assets by ID (1-100) in your connected org. Returns full type-specific fields by default — set include_type_specific_fields=false to skip enrichment.
list_assetsList assets in your connected org, with optional asset_type/status/tag/project filters and pagination. Use project_filter="none" to find assets that aren't linked to any project.
update_assetUpdate asset fields via update_mask in your connected org. Requires asset_type specification.
Directories
Organize knowledge assets into a hierarchical folder structure.
directoryManage directories for organizing knowledge assets in your connected org. Actions: create, get, list, update, delete, move.
Search
searchSearch workunits, tasks, and assets in your connected org, with optional result type filtering. Use to find IDs for linking.
Context
Save and retrieve structured context atoms — the trail-of-thought for a workunit.
save_contextSave a context atom (decision, insight, question, attempt, or progress) to a workunit in your connected org.
Delete
Unified delete tool for permanently removing workunits, projects, or assets.
deletePermanently delete an entity by ID in your connected org. Auto-detects type (workunit, project, or asset). Irreversible.
Troubleshooting
Verify your internet connection and ensure https://workunit.app is reachable. If you use a proxy or VPN, confirm it allows connections to the Workunit domain.
Restart your AI tool after installation. If tools still do not appear, remove and re-add the MCP server, then authenticate again.
Complete the OAuth flow in your browser. If it fails, check whether third-party cookies are blocked for workunit.app or retry in an incognito window.
Most tool errors include a useful message. Common causes are missing required fields, invalid IDs, or insufficient permissions in the org pinned by your MCP URL.
Your client is pointed at the shared /mcp endpoint, which no longer speaks the MCP protocol. Remove and re-add the server using a per-org URL from workunit.app/mcp.
The org URL you connected with is one you no longer belong to. Visit workunit.app/mcp to see the orgs you can connect, and re-install with the correct per-org URL.
Your org list changed (you accepted an invite, left an org, or were removed). The MCP client should refresh its OAuth token transparently and retry. If it doesn't, restart the client — no re-auth is needed.
claude mcp remove <your-mcp-name> && claude mcp add --transport http <your-mcp-name> <your-mcp-url>Bring your AI agents and your team into one workspace
Workunit gives your agents structured context and your team a shared place to plan, track, and ship the work. Free to start, no credit card.
Next Steps
You're connected! Here's how to get the most out of Workunit with your AI tools:
Learn how context atoms, multi-model handoff, and intelligent suggestions accelerate your workflow
Master the full lifecycle — from problem statement to completion — with real-world examples
Let AI explore your codebase and implement code changes with automatic PR creation
Write better problem statements, structure tasks effectively, and keep context flowing
Having trouble connecting your AI tool? Check the troubleshooting section above, or reach out to our community.