---
title: "Connect with an agent"
description: "Copy a ready-made prompt to connect your AI client to a hosted Cadence workspace over OAuth 2.1 MCP."
---

> 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.

# Connect with an agent

Copy the prompt from the [home page](/) into your MCP client to connect directly to `https://api-v2.agenticos.hk/mcp/workspace` over OAuth 2.1—without installing a local CLI or running a shell.

If the agent cannot read [Workspace MCP](/mcp/) or [Custom MCP servers](/custom-mcp/), ask it to stop rather than guessing endpoints, scopes, or tools. Agents reading Markdown directly can also follow the [agent guide](/agent-guide/) (`/agent-guide/index.md`); the copyable prompt component above may not appear in a Markdown export.

> **Self-hosting with the CLI?**
>
> Running your own local daemon and git tracker on Linux is covered separately under [Install CLI](/install/) and [Self-host quickstart](/quickstart/).

## What the MCP prompt covers

- **Hosted Workspace MCP (`https://api-v2.agenticos.hk/mcp/workspace`):** OAuth 2.1 discovery (RFC 9728 + DCR + PKCE), workspace selection, and human browser consent at `/oauth/marketplace` without `offline_access` (using `allow_refresh` for renewal). See [Workspace MCP](/mcp/).
- **External MCP servers:** connecting remote Streamable HTTP MCP servers in **Settings → Connections** with fail-closed `Ask approval` defaults. See [Custom MCP servers](/custom-mcp/).

## Scope and safeguards

- **Human consent only:** you complete sign-in and OAuth consent in your own browser; the agent never asks for static Bearer tokens, passwords, one-time codes, or cookies, and never installs a local CLI for MCP access.
- **Verify first:** after connecting, the agent calls `connection_status` to check the bound workspace, granted scopes, and `locked_tools`, and uses `cadence_search` before `cadence_cli`.
- **Owner-approved writes & reconciliation:** mutating `app_call` operations require `apps.stage` and an `idempotency_key` and stage in Home for a human owner to approve. On `outcome_unknown`, the agent reads current state (`board_pending_actions`, `board_read_issue`, or `wiki_read`) before retrying.

Source: https://docs.agenticos.hk/install-with-agent/index.mdx
