From 5e729b0ce321398b26df8567749e34bd561d5947 Mon Sep 17 00:00:00 2001 From: UVWT <54053135+uvwt@users.noreply.github.com> Date: Sat, 28 Nov 2026 05:59:33 +0800 Subject: [PATCH] docs: audit and sync bilingual docs with latest AgentDock and NexusDock --- README.md | 4 +-- README.zh-CN.md | 4 +-- docs/concepts/nexusdock.md | 29 +++++++++++---- docs/concepts/recalldock.md | 4 +-- docs/concepts/tasks.md | 2 ++ docs/concepts/workflow.md | 2 +- docs/getting-started/install.md | 18 +++++----- docs/getting-started/linux.md | 2 +- docs/getting-started/macos.md | 18 +++++----- docs/getting-started/windows.md | 18 +++++----- docs/guides/chatgpt.md | 35 ++++++++++++------ docs/guides/mcp-clients.md | 11 ++++-- docs/intro.md | 2 +- docs/operations/desktop.md | 2 +- docs/operations/linux.md | 10 +++--- docs/operations/nexusdock-connect.md | 36 +++++++++++++------ docs/operations/nexusdock.md | 4 ++- docs/operations/public-access.md | 6 ++-- docs/operations/troubleshooting.md | 2 +- docs/reference/configuration.md | 14 +++++++- docs/reference/tools.md | 21 ++++++++--- docusaurus.config.ts | 2 ++ i18n/zh-CN/code.json | 2 +- .../current.json | 4 --- .../current/concepts/nexusdock.md | 29 +++++++++++---- .../current/concepts/recalldock.md | 4 +-- .../current/concepts/tasks.md | 2 ++ .../current/concepts/workflow.md | 2 +- .../current/getting-started/install.md | 18 +++++----- .../current/getting-started/linux.md | 2 +- .../current/getting-started/macos.md | 18 +++++----- .../current/getting-started/windows.md | 18 +++++----- .../current/guides/chatgpt.md | 35 ++++++++++++------ .../current/guides/mcp-clients.md | 11 ++++-- .../current/intro.md | 2 +- .../current/operations/desktop.md | 2 +- .../current/operations/linux.md | 10 +++--- .../current/operations/nexusdock-connect.md | 36 +++++++++++++------ .../current/operations/nexusdock.md | 4 ++- .../current/operations/public-access.md | 6 ++-- .../current/operations/troubleshooting.md | 2 +- .../current/reference/configuration.md | 14 +++++++- .../current/reference/tools.md | 21 ++++++++--- .../docusaurus-theme-classic/footer.json | 12 +++++++ .../docusaurus-theme-classic/navbar.json | 4 +++ scripts/check-i18n.mjs | 2 +- src/components/HomepageFeatures/index.tsx | 2 +- 47 files changed, 339 insertions(+), 169 deletions(-) diff --git a/README.md b/README.md index d233a80..01abbb9 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,8 @@ This command runs the TypeScript check, locale-preference tests, verifies that E ```text docs/ # English source documents ├── getting-started/ # Installation and first connection -├── concepts/ # Skills, tasks, dynamic MCP, and NexusDock Recall -├── guides/ # Browser and desktop automation +├── concepts/ # Skills, Plugins, tasks, dynamic MCP, NexusDock, Recall, and Workflow +├── guides/ # Client connections, ChatGPT, browser, and Coding Agents ├── reference/ # Configuration and tool reference ├── operations/ # Advanced deployment, security, and troubleshooting └── contributing/ # Contributor guide diff --git a/README.zh-CN.md b/README.zh-CN.md index 0b98fe6..f05ac76 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -42,8 +42,8 @@ pnpm check ```text docs/ # 英文源文档 ├── getting-started/ # 安装与首次连接 -├── concepts/ # Skill、任务、动态 MCP、NexusDock Recall -├── guides/ # 浏览器和桌面自动化 +├── concepts/ # Skill、Plugin、任务、动态 MCP、NexusDock、Recall 与 Workflow +├── guides/ # 客户端接入、ChatGPT、浏览器和 Coding Agent ├── reference/ # 完整配置与工具参考 ├── operations/ # 高级部署、安全与排障 └── contributing/ # 开发者指南 diff --git a/docs/concepts/nexusdock.md b/docs/concepts/nexusdock.md index 641e984..8210546 100644 --- a/docs/concepts/nexusdock.md +++ b/docs/concepts/nexusdock.md @@ -1,24 +1,39 @@ # What is NexusDock? -NexusDock is an optional self-hosted control center for people who use AgentDock on multiple devices. +NexusDock is the unified control center and remote connection hub for your AgentDock devices. It is available both as managed **NexusDock Cloud** (`https://mcp.nexusdock.co`) and as the open-source self-hosted **NexusDock** server. -It brings your Macs, Windows PCs, Linux hosts, and servers into one web console, lets them share Recall and Workflow data, and provides one MCP endpoint for AI clients. +It brings your Macs, Windows PCs, Linux hosts, and servers into one web console, lets them share Recall and Workflow data, and provides one MCP endpoint for AI clients—without exposing every machine directly to the internet. -If you only use one AgentDock device, you usually do not need NexusDock. +Even with a single machine, NexusDock Cloud is the simplest way to reach AgentDock remotely without configuring Cloudflare Tunnels or a custom domain. If you only connect local clients on the same machine, you can still use AgentDock directly without NexusDock. ## What you can do - connect to multiple AgentDock devices through one MCP endpoint; -- manage multiple AgentDock devices from one place; -- see which devices are online and check their current state; +- manage paired AgentDock devices, online status, and optional device purpose descriptions (surfaced in `agentdock_context` to help AI clients pick the right machine); +- inspect node-local tasks, Skills, Plugins, and dynamic MCP servers from one place; - share Recall memory and Workflow data across devices; -- configure an AI client once instead of connecting to each AgentDock separately. +- configure an AI client once instead of connecting to each AgentDock separately; +- fall back to `node_tool_search` and `node_tool_call` when a client's cached MCP tool schema lags behind a node's live tools. AgentDock still runs the actual work on each device. NexusDock brings those devices together; it does not replace them. +## Cloud vs. self-hosted + +| Deployment | Endpoint & console | Best for | +| --- | --- | --- | +| **NexusDock Cloud** | `https://mcp.nexusdock.co` | Fastest remote access, managed Recall/Workflow hosting, and third-party REST API integration | +| **Self-hosted NexusDock** | Your own HTTPS domain (`uvwt/nexusdock`) | Running the control center, SQLite state, and Recall files on your own infrastructure | + +## Programmatic REST API (NexusDock Cloud) + +For scripts, services, and automation workflows that call devices outside an MCP client, NexusDock Cloud provides a third-party REST API (devices, capability catalog, and remote tool executions). Rather than duplicating OpenAPI schemas here, use the live API documentation and official Skill as the source of truth: + +- Live REST API reference: [https://mcp.nexusdock.co/docs/api](https://mcp.nexusdock.co/docs/api) +- Official REST integration Skill: [`nexusdock-rest`](https://github.com/uvwt/agentdock-skills/tree/main/skills/nexusdock-rest) + ## Next steps -- [Install and maintain](../operations/nexusdock.md) - [Connect AgentDock](../operations/nexusdock-connect.md) +- [Install and maintain self-hosted NexusDock](../operations/nexusdock.md) - [Recall memory](./recalldock.md) - [Workflow](./workflow.md) diff --git a/docs/concepts/recalldock.md b/docs/concepts/recalldock.md index 33877c4..770dec9 100644 --- a/docs/concepts/recalldock.md +++ b/docs/concepts/recalldock.md @@ -2,7 +2,7 @@ NexusDock Recall is an optional long-term memory service for AgentDock. It keeps information, preferences, experience, and knowledge that are worth reusing later, so future tasks can continue with useful context. -Without NexusDock, file, command, command-line Git, Skill, dynamic MCP, and local task tools remain fully available; Recall, workflow template, and knowledge evolution tools are unavailable. See [NexusDock](./nexusdock.md) for multi-device management and the unified MCP endpoint. +Without NexusDock, file, command, command-line Git, Skill, dynamic MCP, and local task tools remain fully available; Recall and workflow template tools are unavailable. See [NexusDock](./nexusdock.md) for multi-device management and the unified MCP endpoint. ## When to use it @@ -23,7 +23,7 @@ Do not store: ## Setup -Pair the AgentDock device with NexusDock first. In NexusDock, open **Settings → System & Nodes**, create a one-time pairing code, then run the generated `agentdock nexus pair ...` command on the AgentDock device and restart AgentDock. +Pair the AgentDock device with NexusDock Cloud (`https://mcp.nexusdock.co`) or a self-hosted NexusDock instance first. Create a one-time pairing code in the NexusDock console, then pair from the AgentDock desktop app or run `agentdock nexus pair ...` on the device. Recall does not need a separate AgentDock-side URL or token after pairing. See [Connect AgentDock](../operations/nexusdock-connect.md) for the full setup. diff --git a/docs/concepts/tasks.md b/docs/concepts/tasks.md index ac30fe7..585fecd 100644 --- a/docs/concepts/tasks.md +++ b/docs/concepts/tasks.md @@ -15,6 +15,8 @@ A task is appropriate when: A simple query, one file read, or one explicit command usually does not need a task. +When chat cards are enabled, `task_create` creates the recoverable task and mounts the live task card once, while subsequent `task_manage` checkpoints, reviews, and completion updates update the same task in place. + ## What a task contains A task normally records: diff --git a/docs/concepts/workflow.md b/docs/concepts/workflow.md index d181136..5d81ba3 100644 --- a/docs/concepts/workflow.md +++ b/docs/concepts/workflow.md @@ -32,6 +32,6 @@ A Workflow is a reusable process, not an automatic script. AgentDock can adjust ## Matching -Basic Workflow matching works without an AI or Embedding provider. If Embedding is configured in **Settings → AI & Vectors**, NexusDock can also use semantic matching to find relevant workflows. +Basic Workflow lexical matching works out of the box without configuring an external AI or Embedding provider. On NexusDock Cloud, semantic matching is managed for eligible plans; on self-hosted NexusDock, you can enable semantic matching in **Settings → AI & Vectors**. Current task progress is separate from Workflow templates. See [Tasks and progress](./tasks.md) for execution progress, and [Recall memory](./recalldock.md) for long-term knowledge. diff --git a/docs/getting-started/install.md b/docs/getting-started/install.md index f5a49e1..120484c 100644 --- a/docs/getting-started/install.md +++ b/docs/getting-started/install.md @@ -13,23 +13,25 @@ For your own Windows PC or Mac, prefer the graphical installer. Choose Docker wh ## Connection options -The Windows and macOS installers offer three connection options: +After installation, choose how your AI clients connect: | Option | Best for | What you need | | --- | --- | --- | +| **NexusDock** (recommended for remote access) | ChatGPT, Claude, phones, or multi-device access without setting up tunnels or domains | A NexusDock Cloud (`https://mcp.nexusdock.co`) or self-hosted NexusDock pairing code | | Local only | The MCP client and AgentDock run on the same computer | Nothing else | -| Temporary public address | ChatGPT, a phone, or another remote device; no domain is ready | Internet access | -| Fixed domain | A stable address for long-term use | A Cloudflare-managed domain and Tunnel Token | +| Self-hosted Cloudflare Tunnel (optional) | Direct public HTTPS access to a single AgentDock device | Install the optional `cloudflared` component in Settings (temporary address or fixed Cloudflare domain) | -Choose an option based on where your MCP client runs, whether public access is needed, and whether you already have a fixed domain. You can switch modes later in the control panel. +First-time desktop installation only installs AgentDock itself and starts local access. Remote connections—either pairing with NexusDock or installing the optional `cloudflared` component for direct public access—are configured in the control panel afterwards. :::warning -Public access must use a Bearer Token or OAuth. Do not include connection credentials in screenshots, issues, or public conversations. +Public access must use a Bearer Token or OAuth. Do not include connection credentials or pairing codes in screenshots, issues, or public conversations. ::: ## After installation -Get these values from the control panel or terminal: +For **NexusDock** (recommended for remote clients such as web ChatGPT), pair the device in the control panel (or via `agentdock nexus pair`) and then connect your client to `https://mcp.nexusdock.co/mcp` (or your self-hosted NexusDock URL). See [Connect AgentDock](../operations/nexusdock-connect.md). + +For direct local or self-hosted public MCP connections, get these values from the control panel or terminal: ```text MCP URL @@ -39,11 +41,11 @@ Bearer Token or OAuth sign-in details Add them to the MCP, Tools, or Connectors settings in your client and choose **Streamable HTTP**. - Client and AgentDock on the same device: use the local MCP URL. -- Client on another device or in the cloud: use the public MCP URL. +- Client on another device or in the cloud: use NexusDock, or use the direct public MCP URL if you enabled Cloudflare Tunnel. - Temporary public URL changed: replace the old URL in the client and authorize OAuth again when prompted. :::tip For your first use, complete only the numbered steps on the page for your operating system. Custom ports, automation flags, and manual service management can wait until later. ::: -If you installed with a public address so web ChatGPT can operate your computer, continue with [Connect with ChatGPT](../guides/chatgpt.md). +To connect web ChatGPT (either via NexusDock or via a direct public URL), continue with [Connect with ChatGPT](../guides/chatgpt.md). diff --git a/docs/getting-started/linux.md b/docs/getting-started/linux.md index 72b20c2..dd04456 100644 --- a/docs/getting-started/linux.md +++ b/docs/getting-started/linux.md @@ -78,7 +78,7 @@ The installer asks if you have a Cloudflare-managed domain: - No domain: automatically creates a temporary `trycloudflare.com` address for quick testing. - Have a domain: complete the [Public access](../operations/public-access.md), then enter the resulting HTTPS public origin and Tunnel Token when the installer asks. -After installation, the terminal displays the public MCP URL and connection credentials. A temporary address may change after a restart. Generate a new one with `sudo /opt/agentdock/bin/agentdock tunnel regenerate --runtime-root /etc/agentdock`, then replace the old MCP URL in the client and authorize OAuth again. Existing Bearer Token and OAuth credentials are preserved. +After installation, the terminal displays the public MCP URL and connection credentials. A temporary address may change after a restart. Generate a new one with `sudo /opt/agentdock/bin/agentdock tunnel regenerate` (default runtime root `/etc/agentdock` is resolved automatically; add `--runtime-root ` for custom deployments), then replace the old MCP URL in the client and authorize OAuth again. Existing Bearer Token and OAuth credentials are preserved. Public access requires authentication. For detailed parameters and log locations, see [Public access](../operations/public-access.md). diff --git a/docs/getting-started/macos.md b/docs/getting-started/macos.md index 04794d1..2632f7e 100644 --- a/docs/getting-started/macos.md +++ b/docs/getting-started/macos.md @@ -8,7 +8,7 @@ A single universal installer supports both Apple Silicon and Intel Macs. - macOS 13 or later. - Download AgentDock only from the official [AgentDock download endpoint](https://download.nexusdock.co/latest/macos). -- A fixed public address requires a Cloudflare-managed domain and Tunnel Token. If you do not have these yet, choose a temporary public address. +- For remote access, pairing with **NexusDock** (`https://mcp.nexusdock.co` or self-hosted) is recommended and requires no Cloudflare setup. If you prefer direct self-hosted public access via Cloudflare Tunnel, `cloudflared` can be installed on demand from Settings afterwards. - For browser automation, install Google Chrome, Chromium, or Microsoft Edge first. ## 1. Download and install @@ -30,21 +30,19 @@ If macOS blocks the first launch, see [macOS says developer cannot be verified]( ## 3. Choose connection option -### Local only - -Select when the MCP client runs on the same Mac. No domain or Cloudflare account required. +The initial setup configures the local AgentDock service and allows it to run in the background. Wait until the status shows "Healthy", then choose how to connect in the app: -### Temporary public address +### NexusDock (recommended for remote access) -Select when connecting from ChatGPT, a phone, or another remote device without a custom domain. AgentDock generates an HTTPS public address automatically. +Open the **Connections** section, enter your NexusDock address (for example `https://mcp.nexusdock.co` or your self-hosted NexusDock URL) and one-time pairing code, then pair. You do not need Cloudflare Tunnel or a custom domain. See [Connect AgentDock](../operations/nexusdock-connect.md). -This address may change when the Mac or tunnel restarts. When changed, copy the new address from the control panel and update your client. +### Local only -### Fixed domain +When the MCP client runs on the same Mac, use the local MCP URL and Bearer Token directly. No domain or Cloudflare account is required. -For a permanent address, first complete the [Public access](../operations/public-access.md). Then select **Fixed domain** and enter the HTTPS public origin and Tunnel Token from that setup. Do not append `/mcp` to the public origin. +### Self-hosted public access (optional Cloudflare Tunnel) -Click **Install and Start**, keeping the window open until the status shows "Healthy". You can switch connection modes later directly from the control panel without rerunning the installer. +If you want this Mac to expose its own public HTTPS MCP endpoint directly without NexusDock, install the optional `cloudflared` component inside **Settings / Advanced connections** first, then choose either a **Temporary public address** or a **Fixed domain** (see [Public access](../operations/public-access.md)). Do not append `/mcp` to the public origin. ## 4. Connect MCP client diff --git a/docs/getting-started/windows.md b/docs/getting-started/windows.md index 532dcb8..344187b 100644 --- a/docs/getting-started/windows.md +++ b/docs/getting-started/windows.md @@ -13,7 +13,7 @@ Download the installer for your architecture: If unsure, choose `amd64`. -The installer already bundles AgentDock Core, the control panel, core Skills, and Cloudflare components. Installation and upgrades do not download these components separately from GitHub. +The installer bundles AgentDock Core, the control panel, and official core Skills. `cloudflared` is now an optional managed component that is installed on demand from the Control Panel only if you enable self-hosted Cloudflare Tunnel public access. ## 2. Run installer @@ -32,21 +32,19 @@ Administrator enhancement mode applies only to AgentDock Core; the control panel ## 4. Choose connection option -### Local only - -Select when the MCP client runs on the same computer. No domain or Cloudflare account required. +The interactive installer sets up AgentDock with local access by default—it does not ask you to configure Cloudflare Tunnels during installation. After opening the AgentDock Control Panel, choose your connection mode in **Connections**: -### Temporary public address +### NexusDock (recommended for remote access) -Select when connecting from ChatGPT, a phone, or another remote device without a custom domain. AgentDock generates a `trycloudflare.com` address automatically. +Enter your NexusDock address (for example `https://mcp.nexusdock.co` or your self-hosted NexusDock URL) and one-time pairing code, then pair. You do not need `cloudflared` or a custom domain. See [Connect AgentDock](../operations/nexusdock-connect.md). -Temporary addresses may change when Windows or the tunnel restarts. When changed, copy the new address from the control panel and update your client. +### Local only -### Fixed Cloudflare domain +When the MCP client runs on the same computer, use the local MCP URL and Bearer Token directly. No domain or Cloudflare account is required. -For a permanent address, first complete the [Public access](../operations/public-access.md). Then select **Fixed domain** and enter the HTTPS public origin and Tunnel Token from that setup. Do not append `/mcp` to the public origin. +### Self-hosted Cloudflare Tunnel (optional) -After installation, you can switch between Local only, Temporary address, and Fixed domain in the **Public Access** section of the control panel without rerunning the installer. +If you want direct public HTTPS access to this PC without NexusDock, install the optional `cloudflared` component in **Settings / Advanced connections**, then switch to **Temporary public address** or **Fixed domain** (see [Public access](../operations/public-access.md)). Do not append `/mcp` to the public origin. ## 5. Complete installation diff --git a/docs/guides/chatgpt.md b/docs/guides/chatgpt.md index 2b035dc..49e9891 100644 --- a/docs/guides/chatgpt.md +++ b/docs/guides/chatgpt.md @@ -2,32 +2,41 @@ Use web ChatGPT to operate files, run commands, manage Git, use browser automation, or drive coding tools on your computer. -Connecting web ChatGPT requires: +You can connect web ChatGPT in two ways: -1. AgentDock accessible via a public HTTPS address. -2. OAuth enabled on AgentDock. -3. Connecting from ChatGPT using the public MCP URL and OAuth password. - -The graphical installer for Windows and macOS automatically configures Cloudflare tunnels and OAuth. +- **Via NexusDock (recommended):** pair your AgentDock device(s) with **NexusDock Cloud** (`https://mcp.nexusdock.co`) or a self-hosted NexusDock instance, then connect ChatGPT once to `https://mcp.nexusdock.co/mcp` (or your self-hosted NexusDock `/mcp` URL) using OAuth. No Cloudflare Tunnel or custom domain is needed. +- **Direct AgentDock public URL (self-hosted):** expose a single AgentDock instance through a public HTTPS address (for example by installing the optional `cloudflared` component in Settings or using your own HTTPS reverse proxy) with OAuth enabled. :::note In this guide, **plugin** means the connection entry shown in the ChatGPT interface. It is different from an [AgentDock Plugin package](../concepts/plugins.md). ::: -## Quick setup (Windows / macOS graphical app) +## Recommended: Connect through NexusDock Cloud + +1. Install AgentDock on your computer ([Windows](../getting-started/windows.md), [macOS](../getting-started/macos.md), [Linux](../getting-started/linux.md), or [Docker](../getting-started/docker.md)). +2. Sign in to `https://mcp.nexusdock.co`, create a 6-digit one-time pairing code, and pair AgentDock from the desktop app (or `sudo agentdock nexus pair`). See [Connect AgentDock](../operations/nexusdock-connect.md). +3. In ChatGPT, enable **Developer mode** and create a custom MCP plugin pointing to: + + ```text + https://mcp.nexusdock.co/mcp + ``` + +4. Complete NexusDock OAuth authorization in the browser, then start a new conversation and call `agentdock_context` to verify your paired devices are online. + +## Direct AgentDock setup (Windows / macOS graphical app) -First, install AgentDock following the [Windows installation](../getting-started/windows.md) or [macOS installation](../getting-started/macos.md) guide. +If you want ChatGPT to connect directly to a single AgentDock instance without NexusDock, install AgentDock first following the [Windows installation](../getting-started/windows.md) or [macOS installation](../getting-started/macos.md) guide. -### 1. Choose a public connection mode +### 1. Enable self-hosted public access -When choosing connection options during setup or configuration: +In the AgentDock Control Panel, open **Settings / Advanced connections** (or **Public Access**), install the optional `cloudflared` component if it is not installed yet, and choose a public mode: - If you do not have a domain yet, select **Temporary public address**. - If you have a custom domain managed by Cloudflare, select **Fixed domain**.
-![Choose temporary public address or fixed Cloudflare domain during setup](/img/guides/chatgpt/01-install-connection-option.png) +![Choose temporary public address or fixed Cloudflare domain in public access settings](/img/guides/chatgpt/01-install-connection-option.png)
@@ -119,6 +128,10 @@ Ensure ChatGPT lists AgentDock tools and completes an actual tool call. Once connected, ChatGPT can install Skills, connect external MCP servers, control browsers, or drive local coding agents. +:::tip +**Cached tool schemas in ChatGPT:** after enabling new capabilities (such as browser or Coding Agent tools) or upgrading AgentDock, existing ChatGPT conversations may keep an older tool schema. Click **Refresh** on the plugin in ChatGPT and start a **new conversation**. When connecting through NexusDock, clients can also use `node_tool_search` and `node_tool_call` as a fallback if a tool is missing from the cached catalog. +::: + ## Server and manual deployment When deploying AgentDock on a Linux VPS, server, Docker container, or behind a custom reverse proxy: diff --git a/docs/guides/mcp-clients.md b/docs/guides/mcp-clients.md index 72182ac..30baa65 100644 --- a/docs/guides/mcp-clients.md +++ b/docs/guides/mcp-clients.md @@ -1,12 +1,12 @@ # Connect from different clients -AgentDock connects to Claude Desktop, ChatGPT, Claude Code, Cursor, VS Code, Codex, TRAE, and WorkBuddy over Streamable HTTP MCP. Every example on this page uses: +AgentDock (and NexusDock) connects to Claude Desktop, ChatGPT, Claude Code, Cursor, VS Code, Codex, TRAE, and WorkBuddy over Streamable HTTP MCP. Every example on this page uses: ```text https://agentdock.example.com/mcp ``` -Replace it with your own AgentDock MCP URL. +Replace it with your **NexusDock Cloud** URL (`https://mcp.nexusdock.co/mcp`), your self-hosted NexusDock `/mcp` URL, or your direct AgentDock MCP URL. :::note Menu names, plan restrictions, and workspace policies may change between client releases. This page uses common current labels. When an entry is not visible, search settings for `MCP`, `Plugins`, or `Connectors`. @@ -266,4 +266,11 @@ curl -fsS https://agentdock.example.com/.well-known/oauth-protected-resource/mcp A `302` from the authorization page usually means AgentDock is redirecting to the client as expected. If the browser does not continue, confirm that the reverse proxy preserves the `Location` header and that the browser or network policy does not block the callback URL. +## Programmatic REST API access + +If you are building scripts, services, or non-MCP integrations against NexusDock Cloud rather than connecting an MCP client, use the live REST API documentation and the official Skill instead of MCP configuration: + +- Live REST API reference: [https://mcp.nexusdock.co/docs/api](https://mcp.nexusdock.co/docs/api) +- Official Skill: [`nexusdock-rest`](https://github.com/uvwt/agentdock-skills/tree/main/skills/nexusdock-rest) + See [Configuration](../reference/configuration.md) for complete authentication settings and [Linux and servers](../operations/linux.md) for public deployment. diff --git a/docs/intro.md b/docs/intro.md index 9e57392..908ec96 100644 --- a/docs/intro.md +++ b/docs/intro.md @@ -35,7 +35,7 @@ Describe the goal directly, for example: The agent selects the appropriate tools based on your request. -If you want web ChatGPT to operate your computer, follow [Connect with ChatGPT](./guides/chatgpt.md) after installing with a public address. +If you want web ChatGPT to operate your computer, pair with [NexusDock](./concepts/nexusdock.md) (recommended) or enable self-hosted public access, then follow [Connect with ChatGPT](./guides/chatgpt.md). ## Where data is stored diff --git a/docs/operations/desktop.md b/docs/operations/desktop.md index b22feb6..40d3092 100644 --- a/docs/operations/desktop.md +++ b/docs/operations/desktop.md @@ -7,7 +7,7 @@ For normal installation, use the [macOS](../getting-started/macos.md) or [Window The desktop apps already manage most configuration for you. Use **Public Access** and **Advanced Settings** to change: - local port and log level; -- temporary or fixed public access; +- optional `cloudflared` component and temporary or fixed public access; - NexusDock pairing; - browser connection mode; - local Coding Agent profiles; diff --git a/docs/operations/linux.md b/docs/operations/linux.md index ad5095d..e3ec571 100644 --- a/docs/operations/linux.md +++ b/docs/operations/linux.md @@ -51,16 +51,16 @@ See [Public access](./public-access.md) for temporary and fixed Cloudflare addre ## NexusDock -Pair NexusDock after AgentDock is installed. On the default service account: +Pair NexusDock after AgentDock is installed. On a standard service installation, run: ```bash -sudo -u agentdock -H /opt/agentdock/bin/agentdock nexus pair \ - --endpoint https://nexus.example.com \ +sudo /opt/agentdock/bin/agentdock nexus pair \ + --endpoint https://mcp.nexusdock.co \ --code -sudo systemctl restart agentdock +sudo /opt/agentdock/bin/agentdock nexus status ``` -See [Connect AgentDock](./nexusdock-connect.md) for the complete pairing flow. +For self-hosted NexusDock, replace `https://mcp.nexusdock.co` with your NexusDock URL. Running with `sudo` automatically resolves the service's `AGENTDOCK_HOME`, preserves service-user permissions on `nexus/device.json`, and restarts the systemd/OpenRC service (pass `--no-restart` to skip restarting). See [Connect AgentDock](./nexusdock-connect.md) for the complete pairing flow. ## Update diff --git a/docs/operations/nexusdock-connect.md b/docs/operations/nexusdock-connect.md index 60801f4..8aa3b53 100644 --- a/docs/operations/nexusdock-connect.md +++ b/docs/operations/nexusdock-connect.md @@ -1,20 +1,25 @@ # Connect AgentDock -After NexusDock is running, pair your AgentDock devices and connect the MCP clients you want to use. +Pair your AgentDock devices with **NexusDock Cloud** (`https://mcp.nexusdock.co`) or your self-hosted NexusDock instance, then connect your AI clients through the unified MCP endpoint. ## Pair AgentDock devices -Sign in to the Web console, open **Settings → System & Nodes**, and choose **Pair device**. +1. Sign in to the NexusDock Web console: + - **NexusDock Cloud:** open `https://mcp.nexusdock.co`, go to **Devices**, and create a one-time pairing code (6 digits, valid for 5 minutes, single-use). + - **Self-hosted NexusDock:** open **Settings → System & Nodes** and choose **Pair device** to create a short-lived, single-use pairing code. +2. Complete pairing on the AgentDock device: -NexusDock generates a one-time pairing code and shows a command-line example: +On the Windows or macOS desktop version of AgentDock, open the NexusDock connection section, enter the **NexusDock address** (for example `https://mcp.nexusdock.co` or your self-hosted URL) and the **one-time pairing code**, then pair and restart. You do not need to run a CLI command manually. + +On Linux, servers, or other command-line environments, run the pairing command shown in the console: ```bash -agentdock nexus pair --endpoint https://nexus.example.com --code pair_xxx +sudo agentdock nexus pair --endpoint https://mcp.nexusdock.co --code ``` -On the Windows or macOS desktop version of AgentDock, you can pair directly from the NexusDock section in the graphical interface: enter the **NexusDock address** and **one-time pairing code**, then choose **Pair and restart**. You do not need to run the command above manually. +For self-hosted instances, replace `https://mcp.nexusdock.co` with your own NexusDock HTTPS origin. On standard Linux service installations, running `sudo agentdock nexus pair` resolves the service's `AGENTDOCK_HOME` automatically and restarts the systemd/OpenRC service for you (pass `--no-restart` if you only want to save the device identity first). -On Linux, servers, or other command-line environments, use the command above to pair. After pairing, AgentDock connects to NexusDock without requiring a public inbound port on the device. +After pairing, AgentDock saves its Device Token locally and connects outbound to NexusDock—no public inbound port is required on the device. You can also add an optional **device purpose description** in the NexusDock console so `agentdock_context` tells AI clients what each machine is for. Pairing does not change the node's existing local MCP endpoint or authentication. Each AgentDock instance can still be used independently. @@ -23,18 +28,27 @@ Pairing does not change the node's existing local MCP endpoint or authentication NexusDock exposes one MCP endpoint: ```text -https://your-nexus-domain/mcp +https://mcp.nexusdock.co/mcp ``` -Clients with OAuth support can connect directly and complete authorization in the browser. +For a self-hosted deployment, use `https://your-nexus-domain/mcp` instead. + +Clients with OAuth support can connect directly and complete authorization in the browser (NexusDock Cloud also supports OAuth Device Flow for headless clients). -For clients that need a fixed token, open **Settings → MCP Access** and use the dedicated MCP Access Token. +For clients that need a fixed token, open **Settings** in the console and generate or copy an **MCP Access Token / PAT**. The two credentials have different purposes: | Credential | Purpose | | --- | --- | -| Administrator username and password | Sign in to the Web console | -| MCP Access Token | Connect clients to `/mcp` without OAuth | +| Console account sign-in | Sign in to the NexusDock Web console | +| MCP Access Token / PAT | Connect MCP or REST API clients without interactive OAuth | + +## Third-party REST API integration + +To discover paired devices, inspect capabilities, or invoke remote tools from non-MCP applications on NexusDock Cloud, refer to the live REST API documentation and the official Skill: + +- Live API documentation: [https://mcp.nexusdock.co/docs/api](https://mcp.nexusdock.co/docs/api) +- Official Skill: [`nexusdock-rest`](https://github.com/uvwt/agentdock-skills/tree/main/skills/nexusdock-rest) For client-specific setup, see [Connect from different clients](../guides/mcp-clients.md). diff --git a/docs/operations/nexusdock.md b/docs/operations/nexusdock.md index c08683b..66cb494 100644 --- a/docs/operations/nexusdock.md +++ b/docs/operations/nexusdock.md @@ -1,6 +1,8 @@ # Install and maintain -The simplest way to run NexusDock is Docker Compose. +This page covers installing and operating the open-source self-hosted **NexusDock** server (`uvwt/nexusdock`). If you prefer a managed control center without self-hosting, use **NexusDock Cloud** (`https://mcp.nexusdock.co`) and go straight to [Connect AgentDock](./nexusdock-connect.md). + +The simplest way to self-host NexusDock is Docker Compose. ## Before you start diff --git a/docs/operations/public-access.md b/docs/operations/public-access.md index b983596..62e03a8 100644 --- a/docs/operations/public-access.md +++ b/docs/operations/public-access.md @@ -10,7 +10,9 @@ AgentDock is safest when it stays local. Enable public access only when a remote ## Temporary public address -The macOS and Windows apps can enable a temporary public address from **Public Access**. Linux installers can choose the temporary Tunnel option. Docker can start the Quick Tunnel profile: +If you only need remote access from ChatGPT, Claude, or another device, pairing with **NexusDock** (`https://mcp.nexusdock.co` or self-hosted) is usually simpler and does not require `cloudflared`. + +For direct self-hosted public access on macOS and Windows, install the optional `cloudflared` component first in **Settings / Advanced connections** (or run `agentdock component install cloudflared`), then enable **Temporary public address**. Linux installers can choose the temporary Tunnel option. Docker can start the Quick Tunnel profile: ```bash docker compose --profile cloudflare-quick up -d @@ -50,7 +52,7 @@ https://agent.example.com Do not append `/mcp`. -On macOS or Windows, open **Public Access → Fixed domain**, then enter the HTTPS public address and Tunnel Token. +On macOS or Windows, make sure the optional `cloudflared` component is installed, open **Settings / Advanced connections → Fixed domain**, then enter the HTTPS public address and Tunnel Token. On Linux, rerun the installer and choose the existing Cloudflare-domain option. diff --git a/docs/operations/troubleshooting.md b/docs/operations/troubleshooting.md index 7ed8f05..bc363b0 100644 --- a/docs/operations/troubleshooting.md +++ b/docs/operations/troubleshooting.md @@ -14,7 +14,7 @@ When reporting a problem, include the installation method, operating system, Age ## Client connects but cannot see tools -Reconnect the MCP client or start a new session to clear cached tool schemas. Confirm authentication, then verify one real MCP connection instead of relying only on `/healthz`. +Reconnect or refresh the MCP client and start a new session to clear cached tool schemas. Confirm authentication, then verify one real MCP connection instead of relying only on `/healthz`. When connecting through NexusDock, if a node's live tool is missing from the cached catalog or returns `TOOL_CONTRACT_MISMATCH`, you can use `node_tool_search` and `node_tool_call` as a compatibility fallback. ## 401 Unauthorized diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index f222f1d..b9e721e 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -31,9 +31,10 @@ Default paths are: | stdio transport | `AGENTDOCK_STDIO` | `--stdio` | `false` | | State directory | `AGENTDOCK_HOME` | — | `~/.agentdock` | | Working directory | `AGENTDOCK_DEFAULT_DIR` | — | `~/AgentDock` | +| Command environment map | `AGENTDOCK_COMMAND_ENV_FROM_ENV_JSON` | — | empty | | Trusted proxy CIDRs | `AGENTDOCK_TRUSTED_PROXY_CIDRS` | — | empty | -Chat-card mode accepts `full`, `compact`, or `off`. +Chat-card mode accepts `full`, `compact`, or `off`. `AGENTDOCK_COMMAND_ENV_FROM_ENV_JSON` explicitly maps child-process variable names to host environment variable names for `exec_command`; AgentDock does not inherit an interactive login shell environment automatically. ## Authentication @@ -80,6 +81,17 @@ Desktop users should configure Coding Agents in the AgentDock UI. Headless deplo ## Other settings +Common CLI subcommands for installed deployments: + +- `agentdock version [--json]` — print version information. +- `agentdock update [--check]` — check for or install updates. +- `agentdock service ` — manage the background service. +- `agentdock tunnel ` — manage Cloudflare Tunnel state. +- `agentdock component cloudflared` — manage the optional `cloudflared` component. +- `agentdock nexus pair` / `agentdock nexus status` — pair with NexusDock or check pairing status. + +For standard installations, `service`, `tunnel`, `component`, and `nexus` resolve the platform default runtime root automatically; override with `AGENTDOCK_RUNTIME_ROOT` or `--runtime-root ` when needed. + NexusDock pairing is stored as a paired device identity rather than a normal runtime environment variable. See [Connect AgentDock](../operations/nexusdock-connect.md). Managed Skill and dynamic MCP credentials are configured through their own environment-management interfaces instead of global AgentDock variables. diff --git a/docs/reference/tools.md b/docs/reference/tools.md index aebdef2..14f576f 100644 --- a/docs/reference/tools.md +++ b/docs/reference/tools.md @@ -22,7 +22,7 @@ AgentDock exposes tools to connected AI clients over MCP. The tools visible on a | --- | --- | --- | | `skill_manage` | Manage installed Skills and their environment | `install`, `remove`, `env_set`, `env_unset`, `env_list` | | `plugin_manage` | Review and manage Plugins | `inspect`, `validate`, `install`, `update`, `enable`, `disable`, `remove` | -| `mcp_manage` | Manage external MCP connections | `list`, `inspect`, `add`, `enable`, `disable`, `refresh`, `authorize`, `remove`, environment actions | +| `mcp_manage` | Manage external MCP connections | `list`, `inspect`, `add`, `enable`, `disable`, `refresh`, `authorize`, `auth_clear`, `remove`, environment actions | | `mcp_tool_search` | Find tools provided by an external MCP server | search | | `mcp_tool_inspect` | Read one external tool's schema | inspect | | `mcp_tool_call` | Call an inspected external MCP tool | call | @@ -33,13 +33,13 @@ See [Use Skills](../concepts/skills.md), [Use Plugins](../concepts/plugins.md), | Tool | Availability | Purpose | | --- | --- | --- | -| `task_manage` | Always | Track multi-step task state and progress | +| `task_create` | Always | Create a recoverable task (and mount the live task card when chat cards are enabled) | +| `task_manage` | Always | List, inspect, checkpoint, block, resume, review, and complete tasks | | `workflow_template_manage` | NexusDock paired | Find and manage reusable Workflows | | `recall_search` | NexusDock paired | Search Recall memory | | `recall_read` | NexusDock paired | Read Recall content | | `recall_write` | NexusDock paired | Create or update Recall content | | `recall_maintain` | NexusDock paired | Inspect and maintain Recall indexes/content | -| `evolve` | NexusDock paired | Manage reusable learned knowledge | See [Tasks and progress](../concepts/tasks.md), [Recall memory](../concepts/recalldock.md), and [Workflow](../concepts/workflow.md). @@ -49,10 +49,12 @@ These tools are available when Coding Agents are enabled: | Tool | Purpose | | --- | --- | -| `acp_session` | Create, open, inspect, update, and close Coding Agent sessions | +| `acp_session` | Inspect, create, list, open, update, close, and delete Coding Agent sessions | | `acp_prompt` | Start prompts, read events, and cancel runs | | `acp_interaction` | Review and respond to pending permission interactions | +When multiple Coding Agent profiles are configured, these tools accept an optional `profile_id` parameter and default to the configured default profile. + See [Use local Coding Agents](../guides/coding-agents.md). ## Browser, images, and file sharing @@ -68,3 +70,14 @@ Browser tools are available when browser support is enabled. | `file_publish` | Publish a file or directory; create a temporary shareable URL when a reachable address is available | See [Use the browser](../guides/browser-control.md) and [Configuration reference](./configuration.md) for enablement. + +## NexusDock multi-device compatibility tools + +When connecting through NexusDock's unified `/mcp` endpoint, device tools take a `node_id` parameter returned by `agentdock_context`. NexusDock also exposes two fallback tools for clients whose cached tool catalog is behind a node's live schema: + +| Tool | Purpose | +| --- | --- | +| `node_tool_search` | Search a node's current live tool catalog and inspect exact schemas | +| `node_tool_call` | Call a specific node tool by name using its live schema | + +Prefer direct first-level tools whenever your client already lists them. See [What is NexusDock?](../concepts/nexusdock.md). diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 3e8ac57..2c66b1d 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -134,6 +134,8 @@ const config: Config = { { title: 'Project', items: [ + {label: 'NexusDock Cloud', href: 'https://mcp.nexusdock.co'}, + {label: 'NexusDock REST API', href: 'https://mcp.nexusdock.co/docs/api'}, {label: 'AgentDock source', href: 'https://github.com/uvwt/agentdock'}, {label: 'Documentation source', href: 'https://github.com/uvwt/agentdock-docs'}, ], diff --git a/i18n/zh-CN/code.json b/i18n/zh-CN/code.json index 5f07427..f4a8a24 100644 --- a/i18n/zh-CN/code.json +++ b/i18n/zh-CN/code.json @@ -441,7 +441,7 @@ "message": "了解 NexusDock" }, "homepage.nexus.install": { - "message": "安装 NexusDock" + "message": "自托管 NexusDock" }, "homepage.nexus.capability.mcp.title": { "message": "一个 MCP 地址" diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current.json b/i18n/zh-CN/docusaurus-plugin-content-docs/current.json index cede7bb..df36fb3 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current.json +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current.json @@ -70,9 +70,5 @@ "sidebar.docsSidebar.category.Developers": { "message": "开发者", "description": "The label for category 'Developers' in sidebar 'docsSidebar'" - }, - "sidebar.docsSidebar.doc.Manual Linux deployment": { - "message": "Linux 手动部署(高级)", - "description": "The label for the doc item 'Manual Linux deployment' in sidebar 'docsSidebar', linking to the doc getting-started/vps" } } diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/nexusdock.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/nexusdock.md index f5d9cdc..b24853d 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/nexusdock.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/nexusdock.md @@ -1,24 +1,39 @@ # 是什么 -NexusDock 是面向多台 AgentDock 设备的可选自托管中心。 +NexusDock 是面向 AgentDock 设备的统一控制中心与远程连接枢纽,同时提供托管的 **NexusDock Cloud**(`https://mcp.nexusdock.co`)以及开源自托管版 **NexusDock**。 -它可以把 Mac、Windows、Linux 主机和服务器上的 AgentDock 集中到一个 Web 控制台中,并共享 Recall 记忆和 Workflow 工作流数据,同时为 AI 客户端提供一个统一的 MCP 地址。 +它可以把 Mac、Windows、Linux 主机和服务器上的 AgentDock 集中到一个 Web 控制台中,共享 Recall 记忆和 Workflow 工作流数据,并为 AI 客户端提供统一的 MCP 入口,无需把每台机器直接暴露到公网。 -如果你只使用一台 AgentDock,通常不需要 NexusDock。 +即使只有一台设备,使用 NexusDock Cloud 也是远程接入 AgentDock 最简单的方式,无需自己配置 Cloudflare Tunnel 或域名;如果只在本机连接本地客户端,也可以继续直接使用独立 AgentDock。 ## 可以做什么 - 一个 MCP 连接多台 AgentDock; -- 在一个地方管理多台 AgentDock 设备; -- 查看哪些设备在线以及当前状态; +- 集中管理已配对的 AgentDock 设备、在线状态以及可选的设备用途描述(会透出到 `agentdock_context`,帮助 AI 选择正确的目标设备); +- 统一查看各节点本地的任务、Skill、Plugin 与动态 MCP 状态; - 在多台设备之间共享 Recall 记忆和 Workflow 工作流数据; -- 只配置一次 AI 客户端,而不是分别连接每台 AgentDock。 +- 只配置一次 AI 客户端,而不是分别连接每台 AgentDock; +- 当客户端缓存的工具 Schema 落后于节点实时工具时,通过 `node_tool_search` 和 `node_tool_call` 兼容调用。 实际的文件、命令、浏览器等操作仍由每台 AgentDock 执行。NexusDock 负责把这些设备集中起来,而不是替代 AgentDock。 +## 云端与自托管 + +| 部署方式 | 入口与控制台 | 适用场景 | +| --- | --- | --- | +| **NexusDock Cloud** | `https://mcp.nexusdock.co` | 最快获得远程连接、云端托管 Recall/Workflow 以及第三方 REST API 集成 | +| **自托管 NexusDock** | 自有 HTTPS 域名(`uvwt/nexusdock`) | 在自有基础设施上运行控制中心、SQLite 状态与本地 Recall 文件 | + +## 第三方 REST API(NexusDock Cloud) + +如果你需要在 MCP 客户端之外通过脚本、后端服务或自动化流程调用设备能力,NexusDock Cloud 提供了第三方 REST API(设备目录、能力目录与远程工具执行)。本文档站不重复手抄 OpenAPI 细节,请直接以在线 API 文档和官方 Skill 为准: + +- 在线 REST API 文档:[https://mcp.nexusdock.co/docs/api](https://mcp.nexusdock.co/docs/api) +- 官方 REST 集成 Skill:[`nexusdock-rest`](https://github.com/uvwt/agentdock-skills/tree/main/skills/nexusdock-rest) + ## 下一步 -- [安装与维护](../operations/nexusdock.md) - [连接 AgentDock](../operations/nexusdock-connect.md) +- [自托管安装与维护](../operations/nexusdock.md) - [Recall 记忆](./recalldock.md) - [Workflow 工作流](./workflow.md) diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/recalldock.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/recalldock.md index 706fc13..cf22108 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/recalldock.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/recalldock.md @@ -2,7 +2,7 @@ NexusDock Recall 是 AgentDock 的可选长期记忆服务。它可以保存值得长期保留的信息、偏好、经验和知识,让以后处理类似事情时能够继续使用这些上下文。 -没有 NexusDock 时,文件、命令、命令行 Git、Skill、动态 MCP 和本地任务仍可正常使用;Recall、Workflow 模板和知识 Evolution 工具不可用。多设备管理和统一 MCP 入口见 [NexusDock](./nexusdock.md)。 +没有 NexusDock 时,文件、命令、命令行 Git、Skill、动态 MCP 和本地任务仍可正常使用;Recall 和 Workflow 模板工具不可用。多设备管理和统一 MCP 入口见 [NexusDock](./nexusdock.md)。 ## 什么时候适合使用 @@ -23,7 +23,7 @@ NexusDock Recall 是 AgentDock 的可选长期记忆服务。它可以保存值 ## 接入 -先把 AgentDock 设备与 NexusDock 配对。在 NexusDock 打开 **设置 → System & Nodes**,生成一次性配对码,然后在目标设备执行页面生成的 `agentdock nexus pair ...` 命令并重启 AgentDock。 +先把 AgentDock 设备与 NexusDock Cloud(`https://mcp.nexusdock.co`)或自托管 NexusDock 配对。在 NexusDock 控制台创建一次性配对码后,可在 AgentDock 桌面端直接配对,或在目标设备上执行 `agentdock nexus pair ...`。 完成配对后,Recall 不需要再给 AgentDock 单独配置 URL 或 Token。完整步骤见 [连接 AgentDock](../operations/nexusdock-connect.md)。 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/tasks.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/tasks.md index 7d95b18..2628e7b 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/tasks.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/tasks.md @@ -15,6 +15,8 @@ 简单查询、读取一个文件或执行一条明确命令通常不需要任务。 +开启聊天卡片时,`task_create` 会创建可恢复任务并挂载实时任务卡片;后续 `task_manage` 的 checkpoint、终审和完成更新会原地更新同一张任务状态。 + ## 你会看到什么 一个任务通常包含: diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/workflow.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/workflow.md index 5d7fda2..34ecb0e 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/workflow.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/workflow.md @@ -32,6 +32,6 @@ Workflow 是可复用流程,不是自动执行的脚本。AgentDock 会根据 ## 匹配方式 -基础 Workflow 不需要配置 AI 或 Embedding。配置 **设置 → AI 与向量** 后,NexusDock 还可以通过语义匹配找到更相关的 Workflow。 +基础 Workflow 词法匹配开箱即用,不需要额外配置外部 AI 或 Embedding。在 NexusDock Cloud 中,语义匹配由云端按方案托管提供;在自托管 NexusDock 中,可在 **设置 → AI 与向量** 中配置启用。 当前任务进度和 Workflow 是两回事。执行进度见 [任务与进度](./tasks.md),长期知识见 [Recall 记忆](./recalldock.md)。 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/install.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/install.md index 58e34cc..f9adf43 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/install.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/install.md @@ -13,23 +13,25 @@ ## 安装时要做的选择 -Windows 和 macOS 安装界面提供以下连接选项: +安装完成后,按你的使用场景选择 AI 客户端的连接方式: | 连接方式 | 适合场景 | 需要准备 | | --- | --- | --- | +| **NexusDock(推荐远程方式)** | ChatGPT、Claude、手机或多设备远程连接,无需折腾隧道或域名 | NexusDock Cloud(`https://mcp.nexusdock.co`)或自托管 NexusDock 一次性配对码 | | 仅本机 | MCP 客户端和 AgentDock 在同一台电脑上 | 无 | -| 临时公网地址 | 从 ChatGPT、手机或其他设备连接,暂时没有域名 | 可访问互联网 | -| 固定域名 | 长期使用稳定公网地址 | 已接入 Cloudflare 的域名和 Tunnel Token | +| 自建 Cloudflare Tunnel(可选) | 需要让单台 AgentDock 直接暴露公网 HTTPS 地址 | 在设置中按需安装可选 `cloudflared` 组件(支持临时地址或固定 Cloudflare 域名) | -根据 MCP 客户端所在位置、是否需要公网访问,以及是否已有固定域名选择连接方式。安装后仍可以在控制面板中切换。 +桌面端首次安装只安装 AgentDock 本身并默认启用本机服务。远程连接(配对 NexusDock,或按需安装 `cloudflared` 组件启用直连公网地址)均在安装完成后的控制面板中配置。 :::warning -公网地址必须配合 Bearer Token 或 OAuth 使用。不要把连接凭据放进截图、Issue 或公开聊天。 +公网地址必须配合 Bearer Token 或 OAuth 使用。不要把连接凭据或配对码放进截图、Issue 或公开聊天。 ::: ## 安装完成后 -安装完成后,从控制面板或终端取得: +如果使用 **NexusDock**(远程客户端和网页版 ChatGPT 推荐),在控制面板(或通过 `agentdock nexus pair`)完成设备配对后,直接将客户端连接到 `https://mcp.nexusdock.co/mcp`(或你的自托管 NexusDock 地址)。详见 [连接 AgentDock](../operations/nexusdock-connect.md)。 + +如果直连本机或自建公网 MCP 地址,从控制面板或终端取得: ```text MCP 地址 @@ -39,11 +41,11 @@ Bearer Token 或 OAuth 登录信息 把这些信息填入客户端的 MCP、Tools 或 Connectors 设置,并选择 **Streamable HTTP**。 - 客户端和 AgentDock 在同一台设备上:使用本地 MCP 地址。 -- 客户端在其他设备或云端:使用公网 MCP 地址。 +- 客户端在其他设备或云端:推荐使用 NexusDock,或启用 Cloudflare Tunnel 后使用公网 MCP 地址。 - 临时公网地址变化后:在客户端中替换旧地址,并按提示重新授权 OAuth。 :::tip 第一次使用只需要完成对应系统页面中的编号步骤。自定义端口、自动化参数和手动服务管理都可以以后再看。 ::: -如果安装时开启了公网地址,想用网页版 ChatGPT 操控本机,请继续阅读 [使用 ChatGPT 连接](../guides/chatgpt.md)。 +想用网页版 ChatGPT 操控本机(通过 NexusDock 或直连公网地址均可),请继续阅读 [使用 ChatGPT 连接](../guides/chatgpt.md)。 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/linux.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/linux.md index 55a8196..2165ce8 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/linux.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/linux.md @@ -78,7 +78,7 @@ sudo sh /tmp/install-agentdock.sh - 没有域名:自动创建临时 `trycloudflare.com` 地址,适合快速使用。 - 已有域名:先按 [公网访问](../operations/public-access.md) 完成 Cloudflare 侧设置,再在安装器提示时填写得到的 HTTPS 公网地址和 Tunnel Token。 -安装完成后,终端会显示公网 MCP 地址和连接凭据。临时地址在重启后可能变化;需要新地址时执行 `sudo /opt/agentdock/bin/agentdock tunnel regenerate --runtime-root /etc/agentdock`,再替换客户端中的旧 MCP URL 并重新完成 OAuth 授权。已有 Bearer Token 和 OAuth 凭据会保留。 +安装完成后,终端会显示公网 MCP 地址和连接凭据。临时地址在重启后可能变化;需要新地址时执行 `sudo /opt/agentdock/bin/agentdock tunnel regenerate`(默认自动解析 `/etc/agentdock`,自定义目录可加 `--runtime-root `),再替换客户端中的旧 MCP URL 并重新完成 OAuth 授权。已有 Bearer Token 和 OAuth 凭据会保留。 公网访问必须保留认证。详细参数和日志位置见 [公网访问](../operations/public-access.md)。 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/macos.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/macos.md index 555aaf2..a2e1416 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/macos.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/macos.md @@ -8,7 +8,7 @@ - 使用 macOS 13 或更高版本。 - 只从官方 [AgentDock 下载入口](https://download.nexusdock.co/latest/macos)下载 AgentDock。 -- 固定公网地址需要已经接入 Cloudflare 的域名和对应的 Tunnel Token。没有这些条件时,先选择临时公网地址。 +- 需要远程访问时,推荐配对 **NexusDock**(`https://mcp.nexusdock.co` 或自托管实例),无需配置 Cloudflare;如希望单机直连公网,可在安装后于设置中按需安装 `cloudflared` 可选组件。 - 需要浏览器自动化时,请先安装 Google Chrome、Chromium 或 Microsoft Edge。 ## 1. 下载并安装应用 @@ -30,21 +30,19 @@ AgentDock 启动后会出现在菜单栏。点击图标并选择“安装 AgentD ## 3. 选择连接方式 -### 仅本机 - -MCP 客户端也在这台 Mac 上时选择。该模式不需要域名或 Cloudflare 账号。 +首次引导会配置本机 AgentDock 服务并允许其在后台运行。等待状态显示“运行正常”后,在应用中按需选择连接方式: -### 临时公网地址 +### NexusDock(推荐远程方式) -需要从 ChatGPT、手机或其他设备连接,但还没有域名时选择。AgentDock 会自动生成一个 HTTPS 公网地址。 +打开 **连接** 页面,填写 NexusDock 地址(如 `https://mcp.nexusdock.co` 或自托管 NexusDock 地址)与一次性配对码即可完成配对,无需配置 Cloudflare Tunnel 或域名。详见 [连接 AgentDock](../operations/nexusdock-connect.md)。 -这个地址可能在 Mac 或 Tunnel 重启后变化。地址变化时,从控制面板复制新地址,并替换客户端中的旧地址。 +### 仅本机 -### 固定域名 +MCP 客户端也在这台 Mac 上时,直接使用本地 MCP 地址和 Bearer Token 即可,不需要域名或 Cloudflare 账号。 -需要长期使用稳定地址时,先按 [公网访问](../operations/public-access.md) 完成 Cloudflare 侧设置。然后在 AgentDock 中选择“固定域名”,填写该教程得到的 HTTPS 公网地址和 Tunnel Token。公网地址不要添加 `/mcp`。 +### 自建公网访问(可选 Cloudflare Tunnel) -点击“安装并启动”,保持窗口打开,直到状态显示“运行正常”。安装完成后,可以直接在控制面板切换公网访问方式,不需要重新运行安装器。 +如果希望不经过 NexusDock、直接为这台 Mac 暴露公网 HTTPS MCP 地址,可在 **设置 / 高级连接** 中先按需安装 `cloudflared` 可选组件,再选择 **临时公网地址** 或 **固定域名**(见 [公网访问](../operations/public-access.md))。固定公网地址不要添加 `/mcp`。 ## 4. 连接 MCP 客户端 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/windows.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/windows.md index 3233bee..2669516 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/windows.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/windows.md @@ -13,7 +13,7 @@ AgentDock 支持 Windows 11 x64 和 ARM64。 不确定时,通常选择 `amd64`。 -安装包已经包含 AgentDock 核心、控制面板、核心 Skill 和 Cloudflare 组件。安装和升级时不会再从 GitHub 下载这些组件。 +安装包已包含 AgentDock 核心、控制面板和官方核心 Skill。`cloudflared` 已改为按需安装的可选组件,仅当你启用自建 Cloudflare Tunnel 公网直连时才需要在控制面板中安装。 ## 2. 运行安装程序 @@ -32,21 +32,19 @@ AgentDock 支持 Windows 11 x64 和 ARM64。 ## 4. 选择连接方式 -### 仅本机使用 - -MCP 客户端也在这台电脑上时选择。该模式不需要域名或 Cloudflare 账号。 +交互式安装程序默认只完成 AgentDock 安装并启用本机访问,不再在安装向导中要求配置 Cloudflare Tunnel。安装完成并打开 AgentDock 控制面板后,可在 **连接** 页面按需选择方式: -### 临时公网地址 +### NexusDock(推荐远程方式) -适合从 ChatGPT、手机或其他设备连接,但暂时没有域名的情况。AgentDock 会自动生成 `trycloudflare.com` 地址。 +填写 NexusDock 地址(如 `https://mcp.nexusdock.co` 或自托管 NexusDock 地址)与一次性配对码即可完成配对,无需安装 `cloudflared` 或配置域名。详见 [连接 AgentDock](../operations/nexusdock-connect.md)。 -临时地址可能在 Windows 或 Tunnel 重启后变化。地址变化时,在控制面板中查看新地址,再替换客户端中的旧地址。 +### 仅本机使用 -### 使用自己的 Cloudflare 域名 +MCP 客户端也在这台电脑上时,直接使用本地 MCP 地址和 Bearer Token 即可,不需要域名或 Cloudflare 账号。 -需要长期使用稳定地址时,先按 [公网访问](../operations/public-access.md) 完成 Cloudflare 侧设置。然后在 AgentDock 中选择“固定域名”,填写该教程得到的 HTTPS 公网地址和 Tunnel Token。公网地址不要添加 `/mcp`。 +### 自建 Cloudflare Tunnel(可选) -安装完成后,可以直接在 AgentDock 控制面板的 **公网访问** 中切换仅本机、临时地址和固定域名;仅修改公网访问方式时不需要重新运行安装器。 +如果希望不经过 NexusDock、直接为这台电脑暴露公网 HTTPS 地址,请在 **设置 / 高级连接** 中先安装可选 `cloudflared` 组件,再切换为 **临时公网地址** 或 **固定域名**(见 [公网访问](../operations/public-access.md))。固定公网地址不要添加 `/mcp`。 ## 5. 完成安装 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/guides/chatgpt.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/guides/chatgpt.md index 7f0a8f0..5275a3e 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/guides/chatgpt.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/guides/chatgpt.md @@ -2,32 +2,41 @@ 通过网页版 ChatGPT 操作电脑上的文件、执行命令、管理 Git、使用浏览器自动化,或调用本机编码工具。 -网页版 ChatGPT 连接 AgentDock 需要: +网页版 ChatGPT 可以通过两种方式接入 AgentDock: -1. AgentDock 拥有 ChatGPT 可访问的公网 HTTPS 地址。 -2. AgentDock 开启 OAuth 认证。 -3. 在 ChatGPT 中使用公网 MCP 地址与 OAuth 密码完成连接。 - -Windows 和 macOS 图形安装程序已自动集成 Cloudflare Tunnel 与 OAuth 配置。 +- **通过 NexusDock 接入(推荐)**:将一台或多台 AgentDock 配对到 **NexusDock Cloud**(`https://mcp.nexusdock.co`)或自托管 NexusDock,然后在 ChatGPT 中一次性接入 `https://mcp.nexusdock.co/mcp`(或你的自托管 NexusDock `/mcp` 地址)并完成 OAuth 授权,无需配置 Cloudflare Tunnel 或域名。 +- **直连单台 AgentDock 公网地址(自建)**:在设置中按需安装可选 `cloudflared` 组件(或自行配置 HTTPS 反向代理),开启 OAuth 后由 ChatGPT 直接访问该设备的公网 HTTPS 地址。 :::note 本页中的“**插件**”指 ChatGPT 界面里的连接入口,不是 [AgentDock Plugin 扩展包](../concepts/plugins.md)。 ::: -## 快速上手(Windows / macOS 图形应用) +## 推荐方式:通过 NexusDock Cloud 连接 + +1. 在目标设备上安装 AgentDock([Windows](../getting-started/windows.md)、[macOS](../getting-started/macos.md)、[Linux](../getting-started/linux.md) 或 [Docker](../getting-started/docker.md))。 +2. 登录 `https://mcp.nexusdock.co`,生成 6 位一次性配对码,并在 AgentDock 桌面端(或通过 `sudo agentdock nexus pair`)完成配对。详见 [连接 AgentDock](../operations/nexusdock-connect.md)。 +3. 在 ChatGPT 中开启 **开发人员模式** 并创建自定义 MCP 插件,MCP Server URL 填写: + + ```text + https://mcp.nexusdock.co/mcp + ``` + +4. 按浏览器跳转完成 NexusDock OAuth 授权,然后新开对话调用 `agentdock_context` 确认已配对设备在线。 + +## 直连单台 AgentDock(Windows / macOS 图形应用) -请先根据 [Windows 安装](../getting-started/windows.md) 或 [macOS 安装](../getting-started/macos.md) 指引完成 AgentDock 安装。 +如果你希望不经过 NexusDock、让 ChatGPT 直接连接单台 AgentDock,请先根据 [Windows 安装](../getting-started/windows.md) 或 [macOS 安装](../getting-started/macos.md) 指引完成安装。 -### 1. 选择公网连接方式 +### 1. 启用自建公网访问 -在安装或配置 AgentDock 时选择连接方式: +打开 AgentDock 控制面板,进入 **设置 / 高级连接**(或 **公网访问**),如尚未安装可选组件 `cloudflared` 则先点击安装,然后选择公网连接方式: - 还没有域名、想先连通测试时,选择 **临时公网地址**。 - 有自己的域名、希望长期稳定使用时,建议选择 **使用自己的 Cloudflare 域名**。
-![安装时选择临时公网地址或固定 Cloudflare 域名](/img/guides/chatgpt/01-install-connection-option.png) +![在公网访问设置中选择临时公网地址或固定 Cloudflare 域名](/img/guides/chatgpt/01-install-connection-option.png)
@@ -119,6 +128,10 @@ ChatGPT 会自动发现 AgentDock 的 OAuth 元数据、注册客户端,并通 连通之后,你就可以让 ChatGPT 安装 Skill、接入外部 MCP、控制浏览器,或通过 AgentDock 驱动本机上的编码工具。 +:::tip +**ChatGPT 工具 Schema 缓存说明**:启用新能力(如浏览器或 Coding Agent 工具)或升级 AgentDock 后,旧对话可能继续使用缓存的工具 Schema。请在 ChatGPT 的插件页面点击 **刷新**,然后 **新开对话**。通过 NexusDock 接入时,如果缓存目录暂时缺少目标工具,也可以使用 `node_tool_search` 和 `node_tool_call` 作为兼容回退。 +::: + ## 服务器与手动部署 在 Linux VPS、服务器、Docker 容器或反向代理后手动部署 AgentDock 时,请确认以下前置条件: diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/guides/mcp-clients.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/guides/mcp-clients.md index eabdb22..1f3d1fc 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/guides/mcp-clients.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/guides/mcp-clients.md @@ -1,12 +1,12 @@ # 在不同客户端中连接 -AgentDock 通过 Streamable HTTP MCP 接入 Claude Desktop、ChatGPT、Claude Code、Cursor、VS Code、Codex、TRAE 和 WorkBuddy。本页示例统一使用: +AgentDock(以及 NexusDock)通过 Streamable HTTP MCP 接入 Claude Desktop、ChatGPT、Claude Code、Cursor、VS Code、Codex、TRAE 和 WorkBuddy。本页示例统一使用: ```text https://agentdock.example.com/mcp ``` -请把它替换为你自己的 AgentDock MCP 地址。 +请将其替换为 **NexusDock Cloud** 地址(`https://mcp.nexusdock.co/mcp`)、自托管 NexusDock `/mcp` 地址,或单台 AgentDock 的直连 MCP 地址。 :::note 不同客户端的菜单名称、套餐限制和管理员策略可能调整。本文使用当前常见界面名称;找不到对应入口时,可在设置中搜索 `MCP`、`插件` 或 `Connectors`。 @@ -266,4 +266,11 @@ curl -fsS https://agentdock.example.com/.well-known/oauth-protected-resource/mcp 如果授权页面返回 `302`,通常表示 AgentDock 正在跳转回客户端,这是 OAuth 正常流程。页面没有继续跳转时,再检查反向代理是否保留 `Location` Header,以及客户端回调地址是否被浏览器或网络策略拦截。 +## 第三方 REST API 接入 + +如果你需要在非 MCP 客户端的脚本、服务或自动化流程中调用 NexusDock Cloud 设备能力,请使用在线 REST API 文档与官方 Skill: + +- 在线 REST API 文档:[https://mcp.nexusdock.co/docs/api](https://mcp.nexusdock.co/docs/api) +- 官方 Skill:[`nexusdock-rest`](https://github.com/uvwt/agentdock-skills/tree/main/skills/nexusdock-rest) + 完整认证配置见 [配置](../reference/configuration.md),公网部署见 [Linux 与服务器](../operations/linux.md)。 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/intro.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/intro.md index 2950682..fdea5ad 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/intro.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/intro.md @@ -35,7 +35,7 @@ AgentDock 本身不是聊天应用,也不负责模型推理。连接的 AI 客 Agent 会根据任务选择合适的工具。 -如果主要想用网页版 ChatGPT 操控自己的电脑,安装时开启公网地址后,按 [使用 ChatGPT 连接](./guides/chatgpt.md) 继续即可。 +如果主要想用网页版 ChatGPT 操控自己的电脑,推荐先配对 [NexusDock](./concepts/nexusdock.md)(或启用自建公网地址),再按 [使用 ChatGPT 连接](./guides/chatgpt.md) 继续即可。 ## 数据保存在哪里 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/desktop.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/desktop.md index 8d8cbe7..281fd36 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/desktop.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/desktop.md @@ -7,7 +7,7 @@ 桌面客户端已经可以管理大多数配置。通过 **公网访问** 和 **高级设置** 可以调整: - 本地端口和日志级别; -- 临时或固定公网访问; +- 可选 `cloudflared` 组件与临时/固定公网访问; - NexusDock 配对; - 浏览器连接方式; - 本地 Coding Agent; diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/linux.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/linux.md index ff762fc..ad3e8dc 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/linux.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/linux.md @@ -51,16 +51,16 @@ sudo rc-service agentdock restart ## NexusDock -AgentDock 安装完成后再进行 NexusDock 配对。使用默认服务账号时: +AgentDock 安装完成后再进行 NexusDock 配对。标准系统服务安装下可直接执行: ```bash -sudo -u agentdock -H /opt/agentdock/bin/agentdock nexus pair \ - --endpoint https://nexus.example.com \ +sudo /opt/agentdock/bin/agentdock nexus pair \ + --endpoint https://mcp.nexusdock.co \ --code -sudo systemctl restart agentdock +sudo /opt/agentdock/bin/agentdock nexus status ``` -完整配对流程见 [连接 AgentDock](./nexusdock-connect.md)。 +自托管 NexusDock 请把 `https://mcp.nexusdock.co` 替换为你的 NexusDock 地址。使用 `sudo` 执行会自动从服务运行目录解析 `AGENTDOCK_HOME`、保持服务用户对 `nexus/device.json` 的读取权限,并自动重启 systemd/OpenRC 服务(如需暂不重启可附加 `--no-restart`)。完整配对流程见 [连接 AgentDock](./nexusdock-connect.md)。 ## 更新 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/nexusdock-connect.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/nexusdock-connect.md index 5f8ebe3..7df688c 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/nexusdock-connect.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/nexusdock-connect.md @@ -1,20 +1,25 @@ # 连接 AgentDock -NexusDock 启动后,在这里完成 AgentDock 设备配对和 MCP 客户端连接。 +你可以将 AgentDock 设备配对到 **NexusDock Cloud**(`https://mcp.nexusdock.co`)或自托管 NexusDock 实例,然后通过统一的 MCP 地址接入 AI 客户端。 ## 配对 AgentDock 设备 -登录 Web 控制台,打开 **设置 → 系统与节点**,点击 **配对设备**。 +1. 登录 NexusDock Web 控制台: + - **NexusDock Cloud**:打开 `https://mcp.nexusdock.co`,进入 **设备** 页面创建一次性配对码(6 位数字、5 分钟有效、单次使用)。 + - **自托管 NexusDock**:打开 **设置 → 系统与节点**,点击 **配对设备** 生成短期一次性配对码。 +2. 在 AgentDock 设备上完成配对: -NexusDock 会生成一次性配对码,并给出命令行示例: +如果使用 Windows 或 macOS 桌面版 AgentDock,可以直接在图形界面的 NexusDock 配对区域填写 **NexusDock 地址**(如 `https://mcp.nexusdock.co` 或自托管地址)和 **一次性配对码**,完成配对并重启,无需手动执行命令。 + +Linux、服务器或其他命令行环境可执行控制台给出的配对命令: ```bash -agentdock nexus pair --endpoint https://nexus.example.com --code pair_xxx +sudo agentdock nexus pair --endpoint https://mcp.nexusdock.co --code ``` -如果使用 Windows 或 macOS 桌面版 AgentDock,可以直接在图形界面的 NexusDock 配对区域填写 **NexusDock 地址** 和 **一次性配对码**,然后点击 **配对并重启**,无需手动执行上面的命令。 +自托管部署请把 `https://mcp.nexusdock.co` 替换为你自己的 NexusDock HTTPS 地址。在标准 Linux 服务安装中,执行 `sudo agentdock nexus pair` 会自动解析服务对应的 `AGENTDOCK_HOME`,并在保存设备身份后自动重启 systemd/OpenRC 服务(如需暂不重启可附加 `--no-restart`)。 -Linux、服务器或其他命令行环境可以使用上面的命令完成配对。配对后 AgentDock 会连接 NexusDock,因此设备本身不需要开放公网入站端口。 +配对后 AgentDock 会在本地保存 Device Token 并主动向外连接 NexusDock,因此设备本身不需要开放公网入站端口。你也可以在 NexusDock 控制台为每台设备填写可选的 **设备用途描述**,该描述会透出到 `agentdock_context`,方便 AI 识别应该操作哪台机器。 配对不会改变节点原有的本地 MCP 地址或认证方式,每台 AgentDock 仍然可以独立使用。 @@ -23,18 +28,27 @@ Linux、服务器或其他命令行环境可以使用上面的命令完成配对 NexusDock 提供统一的 MCP 地址: ```text -https://your-nexus-domain/mcp +https://mcp.nexusdock.co/mcp ``` -支持 OAuth 的客户端可以直接连接,并在浏览器中完成授权。 +自托管部署请改用 `https://your-nexus-domain/mcp`。 + +支持 OAuth 的客户端可以直接连接并在浏览器中完成授权(NexusDock Cloud 也支持面向无头客户端的 OAuth Device Flow)。 -如果客户端需要固定 Token,打开 **设置 → MCP 接入**,使用页面中的 MCP Access Token。 +如果客户端需要固定 Token,可在控制台的 **设置** 页面生成或复制 **MCP Access Token / PAT**。 两种凭据用途不同: | 凭据 | 用途 | | --- | --- | -| 管理员账号 / 密码 | 登录 Web 控制台 | -| MCP Access Token | 不使用 OAuth 时连接 `/mcp` | +| 控制台账号登录凭据 | 登录 NexusDock Web 控制台 | +| MCP Access Token / PAT | 在不使用交互式 OAuth 时接入 `/mcp` 或 REST API | + +## 第三方 REST API 集成 + +如果需要在非 MCP 应用或脚本中查询 NexusDock Cloud 设备、浏览能力目录或发起远程工具执行,请直接使用在线 REST API 文档和官方 Skill: + +- 在线 REST API 文档:[https://mcp.nexusdock.co/docs/api](https://mcp.nexusdock.co/docs/api) +- 官方 Skill:[`nexusdock-rest`](https://github.com/uvwt/agentdock-skills/tree/main/skills/nexusdock-rest) 不同客户端的具体接入方式见 [在不同客户端中连接](../guides/mcp-clients.md)。 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/nexusdock.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/nexusdock.md index 2a1132b..e2f2c32 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/nexusdock.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/nexusdock.md @@ -1,6 +1,8 @@ # 安装与维护 -最简单的安装方式是使用 Docker Compose。 +本页介绍开源自托管版 **NexusDock**(`uvwt/nexusdock`)的部署与维护。如果你希望直接使用云端托管控制中心、无需自行部署服务器,可以直接使用 **NexusDock Cloud**(`https://mcp.nexusdock.co`)并前往 [连接 AgentDock](./nexusdock-connect.md)。 + +自托管 NexusDock 最简单的安装方式是使用 Docker Compose。 ## 开始前 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/public-access.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/public-access.md index 6dcfd33..6e00142 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/public-access.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/public-access.md @@ -10,7 +10,9 @@ AgentDock 保持本机使用最安全。只有远程 MCP 客户端需要连接 ## 临时公网地址 -macOS 和 Windows 客户端可以直接在 **公网访问** 中启用临时地址。Linux 安装器可以选择临时 Tunnel。Docker 可以启动 Quick Tunnel profile: +如果只是为了从 ChatGPT、Claude 或其他设备远程访问,优先配对 **NexusDock**(`https://mcp.nexusdock.co` 或自托管实例),通常更简单且不需要安装 `cloudflared`。 + +如果需要在 macOS 或 Windows 上启用单机直连公网访问,先在 **设置 / 高级连接** 中安装可选组件 `cloudflared`(或运行 `agentdock component install cloudflared`),再启用 **临时公网地址**。Linux 安装器可以选择临时 Tunnel。Docker 可以启动 Quick Tunnel profile: ```bash docker compose --profile cloudflare-quick up -d @@ -50,7 +52,7 @@ https://agent.example.com 不要追加 `/mcp`。 -macOS 或 Windows 打开 **公网访问 → 固定域名**,填写 HTTPS 公网地址和 Tunnel Token。 +macOS 或 Windows 确认已安装可选组件 `cloudflared` 后,打开 **设置 / 高级连接 → 固定域名**,填写 HTTPS 公网地址和 Tunnel Token。 Linux 可以重新运行安装器,选择已有 Cloudflare 域名的选项。 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/troubleshooting.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/troubleshooting.md index 3a82c1b..1901b09 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/troubleshooting.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/operations/troubleshooting.md @@ -14,7 +14,7 @@ ## 客户端已连接但看不到工具 -重新连接 MCP,或新建会话清理客户端缓存的旧工具 Schema。确认认证后,再实际完成一次 MCP 连接,不要只根据 `/healthz` 判断。 +刷新或重新连接 MCP,并新开会话清理客户端缓存的旧工具 Schema。确认认证后,再实际完成一次 MCP 连接,不要只根据 `/healthz` 判断。通过 NexusDock 连接时,如果客户端缓存缺少节点最新工具或返回 `TOOL_CONTRACT_MISMATCH`,可使用 `node_tool_search` 和 `node_tool_call` 作为兼容回退。 ## 401 Unauthorized diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/configuration.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/configuration.md index 820b395..2bf51bd 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/configuration.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/configuration.md @@ -31,9 +31,10 @@ CLI 参数会覆盖它对应的环境变量。 | stdio 传输 | `AGENTDOCK_STDIO` | `--stdio` | `false` | | 状态目录 | `AGENTDOCK_HOME` | — | `~/.agentdock` | | 工作目录 | `AGENTDOCK_DEFAULT_DIR` | — | `~/AgentDock` | +| 命令环境变量映射 | `AGENTDOCK_COMMAND_ENV_FROM_ENV_JSON` | — | 空 | | 可信代理 CIDR | `AGENTDOCK_TRUSTED_PROXY_CIDRS` | — | 空 | -聊天卡片支持 `full`、`compact`、`off`。 +聊天卡片支持 `full`、`compact`、`off`。`AGENTDOCK_COMMAND_ENV_FROM_ENV_JSON` 用于显式声明 `exec_command` 从宿主服务环境映射的变量名;AgentDock 不会自动继承交互式登录 Shell 的全部环境变量。 ## 认证 @@ -80,6 +81,17 @@ OAuth: ## 其他设置 +常见 CLI 子命令: + +- `agentdock version [--json]`:查看版本信息。 +- `agentdock update [--check]`:检查或安装更新。 +- `agentdock service `:管理后台服务。 +- `agentdock tunnel `:管理 Cloudflare Tunnel 状态。 +- `agentdock component cloudflared`:管理可选的 `cloudflared` 组件。 +- `agentdock nexus pair` / `agentdock nexus status`:执行 NexusDock 配对或查看配对状态。 + +标准安装下,`service`、`tunnel`、`component` 和 `nexus` 会自动解析平台默认运行目录;自定义目录或多实例部署可通过 `AGENTDOCK_RUNTIME_ROOT` 或 `--runtime-root ` 指定。 + NexusDock 配对保存为设备身份,不属于普通运行环境变量。见 [连接 AgentDock](../operations/nexusdock-connect.md)。 managed Skill 和动态 MCP 的凭据通过各自的环境配置入口管理,不写进 AgentDock 全局环境变量。 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/tools.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/tools.md index ff4830c..43ad796 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/tools.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/tools.md @@ -22,7 +22,7 @@ AgentDock 通过 MCP 向 AI 客户端提供工具。具体连接能看到哪些 | --- | --- | --- | | `skill_manage` | 管理已安装 Skill 和环境配置 | `install`、`remove`、`env_set`、`env_unset`、`env_list` | | `plugin_manage` | 检查和管理 Plugin | `inspect`、`validate`、`install`、`update`、`enable`、`disable`、`remove` | -| `mcp_manage` | 管理外部 MCP 连接 | `list`、`inspect`、`add`、`enable`、`disable`、`refresh`、`authorize`、`remove`、环境配置 | +| `mcp_manage` | 管理外部 MCP 连接 | `list`、`inspect`、`add`、`enable`、`disable`、`refresh`、`authorize`、`auth_clear`、`remove`、环境配置 | | `mcp_tool_search` | 查找外部 MCP 提供的工具 | 搜索 | | `mcp_tool_inspect` | 查看一个外部工具的 Schema | 检查 | | `mcp_tool_call` | 调用已经检查过的外部 MCP 工具 | 调用 | @@ -33,13 +33,13 @@ AgentDock 通过 MCP 向 AI 客户端提供工具。具体连接能看到哪些 | 工具 | 可用条件 | 用途 | | --- | --- | --- | -| `task_manage` | 始终可用 | 记录多步骤任务状态和进度 | +| `task_create` | 始终可用 | 创建可恢复任务(开启聊天卡片时挂载实时任务卡片) | +| `task_manage` | 始终可用 | 列出、查看、推进 checkpoint、阻塞、恢复、终审和完成任务 | | `workflow_template_manage` | 已配对 NexusDock | 查找和管理可复用 Workflow | | `recall_search` | 已配对 NexusDock | 搜索 Recall 记忆 | | `recall_read` | 已配对 NexusDock | 读取 Recall 内容 | | `recall_write` | 已配对 NexusDock | 创建或更新 Recall 内容 | | `recall_maintain` | 已配对 NexusDock | 检查和维护 Recall 内容与索引 | -| `evolve` | 已配对 NexusDock | 管理可复用知识 | 使用方式见 [任务与进度](../concepts/tasks.md)、[Recall 记忆](../concepts/recalldock.md) 和 [Workflow 工作流](../concepts/workflow.md)。 @@ -49,10 +49,12 @@ AgentDock 通过 MCP 向 AI 客户端提供工具。具体连接能看到哪些 | 工具 | 用途 | | --- | --- | -| `acp_session` | 创建、打开、查看、更新和关闭 Coding Agent 会话 | +| `acp_session` | 查看、创建、列出、打开、更新、关闭和删除 Coding Agent 会话 | | `acp_prompt` | 发起 prompt、读取事件和取消运行 | | `acp_interaction` | 查看并处理等待确认的权限交互 | +配置多个 Coding Agent Profile 时,这些工具支持可选 `profile_id` 参数;省略时使用默认 Profile。 + 使用方式见 [使用本地 Coding Agent](../guides/coding-agents.md)。 ## 浏览器、图片与文件分享 @@ -68,3 +70,14 @@ AgentDock 通过 MCP 向 AI 客户端提供工具。具体连接能看到哪些 | `file_publish` | 发布文件或目录;有可访问地址时生成临时分享链接 | 浏览器使用见 [使用浏览器](../guides/browser-control.md),启用方式见 [配置参考](./configuration.md)。 + +## NexusDock 多设备兼容工具 + +通过 NexusDock 统一 `/mcp` 入口接入时,设备工具会接收来自 `agentdock_context` 的 `node_id` 参数。如果客户端缓存的工具目录落后于节点当前真实 Schema,NexusDock 还提供两个兼容入口: + +| 工具 | 用途 | +| --- | --- | +| `node_tool_search` | 查询节点当前实时工具目录与完整 Schema | +| `node_tool_call` | 按实时 Schema 调用指定节点工具 | + +客户端目录已包含目标工具时应优先直接调用一级工具。详见 [什么是 NexusDock](../concepts/nexusdock.md)。 diff --git a/i18n/zh-CN/docusaurus-theme-classic/footer.json b/i18n/zh-CN/docusaurus-theme-classic/footer.json index 8112ab9..3b6d474 100644 --- a/i18n/zh-CN/docusaurus-theme-classic/footer.json +++ b/i18n/zh-CN/docusaurus-theme-classic/footer.json @@ -39,6 +39,18 @@ "message": "AgentDock 源码", "description": "The label of footer link with label=AgentDock source linking to https://github.com/uvwt/agentdock" }, + "link.item.label.NexusDock Cloud": { + "message": "NexusDock Cloud", + "description": "The label of footer link with label=NexusDock Cloud linking to https://mcp.nexusdock.co" + }, + "link.item.label.NexusDock REST API": { + "message": "NexusDock REST API", + "description": "The label of footer link with label=NexusDock REST API linking to https://mcp.nexusdock.co/docs/api" + }, + "link.item.label.Plugins": { + "message": "Plugin", + "description": "The label of footer link with label=Plugins linking to /docs/concepts/plugins" + }, "link.item.label.Documentation source": { "message": "文档源码", "description": "The label of footer link with label=Documentation source linking to https://github.com/uvwt/agentdock-docs" diff --git a/i18n/zh-CN/docusaurus-theme-classic/navbar.json b/i18n/zh-CN/docusaurus-theme-classic/navbar.json index 744871f..f6ec9ba 100644 --- a/i18n/zh-CN/docusaurus-theme-classic/navbar.json +++ b/i18n/zh-CN/docusaurus-theme-classic/navbar.json @@ -15,6 +15,10 @@ "message": "工具目录", "description": "Navbar item with label Tools" }, + "item.label.NexusDock": { + "message": "NexusDock", + "description": "Navbar item with label NexusDock" + }, "item.label.GitHub": { "message": "GitHub", "description": "Navbar item with label GitHub" diff --git a/scripts/check-i18n.mjs b/scripts/check-i18n.mjs index 80e7dcf..e6729d2 100644 --- a/scripts/check-i18n.mjs +++ b/scripts/check-i18n.mjs @@ -88,7 +88,7 @@ function parseMarkdown(source) { const technicalTokenPatterns = [ /\bAGENTDOCK_[A-Z0-9_*]+\b/gu, - /\b(?:agentdock_context|browser_[a-z0-9_*]+|exec_command|file_edit|file_publish|list_dir|list_files|mcp_manage|mcp_tool_call|mcp_tool_inspect|mcp_tool_search|read_file|recall_[a-z0-9_*]+|search_text|server_info|session_act|session_observe|skill_manage|task_manage|view_image|workspace_context|workflow_template_manage|acp_[a-z0-9_*]+)\b/gu, + /\b(?:agentdock_context|browser_[a-z0-9_*]+|exec_command|file_edit|file_publish|list_dir|list_files|mcp_manage|mcp_tool_call|mcp_tool_inspect|mcp_tool_search|node_tool_call|node_tool_search|plugin_manage|read_file|recall_[a-z0-9_*]+|search_text|server_info|session_act|session_observe|skill_manage|task_create|task_manage|view_image|workspace_context|workflow_template_manage|acp_[a-z0-9_*]+)\b/gu, ]; const technicalTokens = technicalTokenPatterns .flatMap((pattern) => [...source.matchAll(pattern)].map(([token]) => token)) diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index a6514bb..17ef9b4 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -176,7 +176,7 @@ export default function HomepageFeatures(): ReactNode { - Install NexusDock + Self-host NexusDock