---
title: "Workspace MCP"
description: "Connect AI clients to a hosted Cadence workspace over Streamable HTTP MCP with OAuth 2.1."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.agenticos.hk/llms.txt
> Use this file to discover all available pages before exploring further.

# Workspace MCP

Hosted Cadence exposes a remote **Streamable HTTP MCP** server so any compatible AI client—including Claude, Cursor, Grok Bot, and Codex—can work directly with your company's board, wiki, and workspace apps over OAuth 2.1 without installing the Cadence CLI or running a local daemon.

| Surface | Value |
| --- | --- |
| Endpoint | `https://api-v2.agenticos.hk/mcp/workspace` |
| Transport | Streamable HTTP (OAuth 2.1 bearer; cookies rejected) |
| Protected resource metadata (RFC 9728) | `https://api-v2.agenticos.hk/.well-known/oauth-protected-resource/mcp/workspace` |
| Authorization server metadata | `https://api-v2.agenticos.hk/.well-known/oauth-authorization-server` |
| Issuer | `https://api-v2.agenticos.hk/api/auth` |
| Dynamic client registration (RFC 7591) | `https://api-v2.agenticos.hk/api/auth/oauth2/register` |
| Browser consent route | `/oauth/marketplace` |

## Connect an MCP client

1. **Add the remote server URL**

   Configure your MCP client with the exact endpoint URL `https://api-v2.agenticos.hk/mcp/workspace` (no trailing slash or query string). Leave static Bearer headers or API keys blank so the client triggers OAuth 2.1 discovery automatically.
2. **Complete OAuth 2.1 discovery and consent**

   An unauthenticated request answers `401` with a `WWW-Authenticate` challenge pointing at RFC 9728 Protected Resource Metadata. Clients register via RFC 7591 Dynamic Client Registration (`PKCE` with `S256`) and open `/oauth/marketplace` in your browser so you can sign in, pick the target workspace, review requested scopes, and optionally tick `allow_refresh`.
3. **Verify access with connection\_status**

   Call `connection_status` first after connecting. It needs no extra scope and returns your bound workspace, workspace role, OAuth client, granted scopes, token expiry, agent pairing state, board health, and `locked_tools` (tools your current grant cannot use yet and the scope that unlocks each).

> **Self-hosting?**
>
> Running your own local daemon, git tracker, and terminal provider sessions stays on the CLI. See [Install CLI](/install/) and [Self-host quickstart](/quickstart/).

## Scopes and token renewal

Workspace MCP enforces seven workspace capability scopes. Every tool stays listed; calling a tool whose scope you have not granted returns a `403` step-up challenge naming the required scope.

| Scope | Grants |
| --- | --- |
| `work.read` | List workspace projects, list and read issues, and wait for profile work (`board_list_projects`, `board_list_issues`, `board_read_issue`, `work_wait`). |
| `wiki.read` | Search and read shared workspace wiki pages (`wiki_search`, `wiki_read`). |
| `wiki.write` | Create or update shared wiki pages through `cadence_wiki` (revision-guarded via `if_rev`). Cannot write private or agent folders. |
| `apps.read` | Describe installed apps, read bundled skills, run read operations, and inspect staged Home actions (`app_describe`, `app_skill`, `app_call` reads, `board_pending_actions`). |
| `apps.stage` | Stage mutating app calls via `app_call` (requires `idempotency_key`). Staged actions queue in Home for a human workspace owner to approve—never executed directly. |
| `whatsapp.read` | Explicit workspace-owner consent required alongside `apps.read` to read linked WhatsApp conversations, message text, and reply receipts. |
| `cadence.use` | Run allowlisted hosted Cadence operations (`cadence_cli`, `cadence_wiki`, private app review, and app tool-access request tools). Discover verbs and input schemas first with `cadence_search`. |

Access tokens have a **900-second (15-minute)** lifetime.

There is **no `offline_access` scope**. Token renewal uses an opt-in, app-owned `mcp_rt_` refresh token issued only when a public OAuth client registers `refresh_token` and the user enables `allow_refresh` during consent. Renewal lasts up to the 30-day issuance cap, or until revoked while an owner-approved agent enrollment is active.

> **Client compatibility check (no offline\_access)**
>
> Some generic MCP clients hard-code `offline_access` in their initial authorization request, which this authorization server rejects as an unsupported scope. Configure your client's requested scopes from the seven scopes above, and enable `allow_refresh` on the consent page when you want long-lived refresh tokens.

## Tools at a glance

| Group | Tools | Scope |
| --- | --- | --- |
| **Connection & discovery** | `connection_status`, `cadence_search`, `agent_pair`, `agent_enroll` | None extra (`connection_status`, `cadence_search`, `agent_pair`, `agent_enroll`) |
| **Projects, issues & wiki** | `board_list_projects`, `board_list_issues`, `board_read_issue`, `work_wait` | `work.read` (`work_wait` requires an enrolled agent profile) |
| **Wiki reads** | `wiki_search`, `wiki_read` | `wiki.read` |
| **Workspace apps & staging** | `app_describe`, `app_skill`, `app_call`, `board_pending_actions` | `apps.read` (plus `apps.stage` for app writes; `whatsapp.read` for linked WhatsApp data) |
| **Hosted Cadence operations** | `cadence_cli`, `cadence_wiki`, `private_app_review_*`, `app_tool_access_*` | `cadence.use` (plus `wiki.write` for `cadence_wiki` writes) |

Before calling `cadence_cli`, call `cadence_search` with keywords or a verb name to read the verb's `arguments_schema`, effect, required scope, and whether the current grant holds it.

## Security and approval boundaries

- **Server-bound identity:** Operations execute under the verified user, OAuth client, and workspace binding from the token. Tool inputs cannot choose or override actor, role, or workspace.
- **Owner approval for app writes & human decisions:** Mutating `app_call` operations stage in Home and never run immediately. Decisions reserved for a live human workspace owner are withheld from MCP with `human_owner_required`.
- **Origin enforcement:** `/mcp/workspace` rejects requests carrying an untrusted browser `Origin` header with `403`. Desktop, CLI, and server-side MCP clients that omit `Origin` connect normally.
- **Exact URL matching:** Requests with an unexpected path or query parameter on `/mcp/workspace` return `404`.
- **Optional agent identity (`agent_pair` and `agent_enroll`):** Pair an interactive MCP connection with an enrolled hosted agent using `agent_pair` (passing the challenge out-of-band via the agent's CLI or bearer—never put bearer tokens in MCP arguments or chat), or request durable owner-approved enrollment with `agent_enroll` so the owner approves in a browser.
- **Uncertain write outcomes (`outcome_unknown`):** If a staged write or CLI mutation loses its transport response, read current state (`board_pending_actions`, `board_read_issue`, or `wiki_read`) before retrying. Reuse the same `idempotency_key` for `app_call` stages so retries do not duplicate pending actions.

Source: https://docs.agenticos.hk/mcp/index.mdx
