MCP Server Guide
Model Context Protocol ยท Connect AI agents to your workspace
WORK-X exposes an MCP-compatible HTTP server that lets AI agents โ like Claude Desktop, custom LLM pipelines, or any MCP client โ securely read and act on your project data using your identity.
What is MCP?
The Model Context Protocol (MCP) is an open standard for connecting AI models to external data sources and tools. Instead of copy-pasting context into every prompt, MCP lets your AI agent query live data from WORK-X directly.
Token Types
There are two kinds of MCP tokens, depending on the scope of access you need:
Personal TokenProfile โ MCP Agent TokensBound to your user identity. The agent acts as you โ it can only read tasks assigned to you, update their status, and create commit entries. Scopes: read:tasks, write:tasks, write:commits.
Org TokenSettings โ MCP Tokens ยท requires mcp.manageOrg-scoped โ the agent can query all projects, requirements, and tasks within your org. Broader access, suitable for org-wide automation pipelines. Requires Owner role to create.
Create a Personal MCP Token
Open your Profile
Click your avatar in the bottom-left sidebar. The Profile modal opens.
Scroll to MCP Agent Tokens
Find the ๐ MCP Agent Tokens section below your avatar. Click + New.
Name the token and select scopes
Enter a descriptive name (e.g. Claude Desktop). Select the scopes your agent needs:
read:tasksโ list and read your assigned taskswrite:tasksโ update task statuswrite:commitsโ create commit history entries on tasks
Copy the token immediately
The token is shown once only โ copy it right away and store it securely. It will never be displayed again.
mcp.create permission. By default all Members, Admins, and Owners have this. If you don't see the MCP section, ask your org Owner to sync system roles in Settings โ Roles & Permissions โ Sync Roles.Connect Claude Desktop
Claude Desktop supports MCP via mcp-remote, a local stdio bridge that forwards to any HTTP MCP endpoint.
Find your MCP JSON-RPC endpoint
The MCP endpoint for your WORK-X instance is:
https://<your-instance>/api/mcp/rpcFor a local dev setup: http://localhost:4000/mcp/rpc
Edit claude_desktop_config.json
Open the Claude Desktop config file:
# macOS
~/Library/Application Support/Claude/claude_desktop_config.json
# Windows
%APPDATA%\Claude\claude_desktop_config.jsonAdd your MCP server under mcpServers:
{
"mcpServers": {
"work-x": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://<your-instance>/api/mcp/rpc",
"--header",
"Authorization: Bearer <your-personal-token>"
]
}
}
}Restart Claude Desktop
Fully quit and relaunch Claude Desktop. In a new conversation, type ๐ or click the MCP tools icon โ you should see the WORK-X tools available.
Connect Antigravity (Google DeepMind)
Antigravity is Google DeepMind's agentic AI coding assistant. It connects to MCP servers via mcp-remote, which proxies HTTP MCP endpoints through a local stdio bridge.
Find your mcp_config.json
Antigravity reads MCP servers from its config file located at:
~/.gemini/antigravity/mcp_config.jsonOpen the file (create it if it doesn't exist yet).
Add the WORK-X MCP server
Add a new entry under mcpServers. Pass your token via the --header flag:
{
"mcpServers": {
"work-x": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://<your-instance>/api/mcp/rpc",
"--header",
"Authorization: Bearer <your-personal-token>"
]
}
}
}For a local dev setup:
{
"mcpServers": {
"work-x": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://localhost:4000/mcp/rpc",
"--header",
"Authorization: Bearer <your-personal-token>"
]
}
}
}If you already have other MCP servers configured (e.g. figma-dev-mode-mcp-server), simply add work-x as an additional key alongside them.
Reload Antigravity
Restart or reload Antigravity. It will automatically spawn the mcp-remote bridge process and connect to your WORK-X instance. You'll see the WORK-X tools available in the tool palette.
POST /api/mcp/rpc with standard JSON-RPC 2.0. The Authorization: Bearer header is the recommended auth method. A ?token= query param is also supported as a fallback.Connect Any Client โ JSON-RPC 2.0
WORK-X uses JSON-RPC 2.0 over HTTP โ one endpoint, any language, no SDK required.
Endpoint
POST https://<your-instance>/api/mcp/rpc
Authorization: Bearer <your-mcp-token>
Content-Type: application/jsonDiscover available tools
# Request
curl -X POST https://<your-instance>/api/mcp/rpc \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
# Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"tools": [
{ "name": "listMyTasks", "scope": "read:tasks", "tokenType": "user", ... },
{ "name": "updateTaskStatus", "scope": "write:tasks", ... }
]
}
}Call a tool
# tools/call โ execute a tool
curl -X POST https://<your-instance>/api/mcp/rpc \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "listMyTasks",
"arguments": {}
},
"id": 2
}'Batch requests (optional)
Send multiple calls in one HTTP round-trip by wrapping them in a JSON array:
[
{"jsonrpc":"2.0","method":"tools/call","params":{"name":"listMyTasks","arguments":{}},"id":1},
{"jsonrpc":"2.0","method":"tools/call","params":{"name":"updateTaskStatus","arguments":{"taskId":"abc","status":"DONE"}},"id":2}
]{"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found"},"id":1}. Standard codes: -32000 Unauthorized, -32001 Forbidden, -32601 Method not found.Available Tools
The following tools are available to Personal Tokens:
listMyTasksread:tasksReturns all tasks currently assigned to you across your accessible projects. Includes task ID, title, status, priority, and project info.
listTasksByReqread:tasksReturns tasks linked to a specific requirement ID. Useful for querying what work items belong to a given feature or spec.
updateTaskStatuswrite:tasksUpdates the status of a task (TODO โ IN_PROGRESS โ IN_REVIEW โ DONE). Only works on tasks assigned to you.
createCommitEntrywrite:commitsCreates a commit history entry on a task โ logs a message, optional commit hash, and reason. Useful for AI agents to record what code changes were made.
The following additional tools are available to Org Tokens:
listProjectsread:tasksLists all active projects in the organization.
listTasksread:tasksLists tasks in a project, optionally filtered by status or assignee.
getTaskread:tasksReturns the full detail of a task including description, comments, assignees, and linked requirements.
updateTaskwrite:tasksUpdates a task field โ status, priority, assignee, or title.
listRequirementsread:requirementsLists requirements in a project.
getRequirementread:requirementsReturns the full text content and metadata of a requirement.