Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 28 additions & 33 deletions docs/concepts/dynamic-mcp.md
Original file line number Diff line number Diff line change
@@ -1,67 +1,62 @@
# Connect external MCP servers

Dynamic MCP lets AgentDock connect to other MCP servers without restarting or rebuilding. Examples include design platforms, task systems, search services, and local analysis tools.
# Use external MCP services

Dynamic MCP lets AgentDock use tools from other MCP services without restarting AgentDock. Use it when you need capabilities that are provided by another service or a local MCP program.

## Simplest usage

Tell the agent what to connect:
Tell the agent what you want to connect:

```text
Connect this MCP server: https://mcp.example.com/mcp
Use example as its name, store the authentication token in its isolated environment, and verify that its tools can be listed.
Connect this MCP service: https://mcp.example.com/mcp
Use example as its name and verify that its tools are available.
```

The agent registers the server, stores credentials in its isolated environment, refreshes the connection, and verifies it with a read-only call.

## Two transport options
AgentDock registers the connection, checks what authentication is required, and can verify it with a read-only tool call.

### HTTP MCP
## HTTP MCP

Use HTTP for services that already expose a network endpoint:
Use HTTP when the service already provides a network address such as:

```text
https://mcp.example.com/mcp
```

Authentication data is mapped from an isolated environment variable to an HTTP header. Registry data stores only the variable name, never the actual token.
### Browser sign-in with OAuth

If the remote MCP service requires OAuth, ask the agent to authorize it. AgentDock starts the authorization flow and returns a sign-in link for you to open in the browser. After you finish signing in, the MCP connection can refresh and use the authorized service.

### Local stdio MCP
You do not need to copy OAuth codes or access tokens into chat. You can also clear an existing authorization when you want to sign in again or disconnect the account.

Use stdio for command-line MCP servers installed on the same machine. You need to provide:
### API key authentication

- The absolute path to the executable.
- Launch arguments.
- An optional working directory.
- Any required environment variables.
If the service gives you an API token or key instead of browser sign-in, store it in that MCP connection's isolated environment. AgentDock keeps the secret out of the connection record and does not show it back in configuration listings.

A local MCP server inherits the operating-system permissions of the AgentDock process, so review its source before installation.
## Local MCP programs

## Credential storage
AgentDock can also start command-line MCP services installed on the same machine. Provide the executable, any startup arguments, and the environment variables it needs.

Do not place tokens, cookies, passwords, or OAuth codes directly in chat history, a README, or MCP registry data.
A local MCP program runs with the operating-system permissions of AgentDock, so review unfamiliar software before using it.

Ask the agent to store secrets in the MCP server's isolated environment. Configuration listings show variable names and status, not secret values.
## Credentials

Refresh the MCP connection after updating credentials.
Do not put tokens, cookies, passwords, or OAuth codes in chat history, a README, or MCP registry data.

- For OAuth, use AgentDock's authorization flow.
- For token-based authentication, use the MCP connection's isolated environment.
- Configuration listings show secret names and status, not secret values.

## Verify the connection

You can ask the agent:

```text
List the tools provided by the example MCP server, inspect the parameters of one read-only tool, and complete one call without side effects.
List the tools from the example MCP service, inspect one read-only tool, and make one call without side effects.
```

If verification fails, check whether the server is enabled, whether the URL or command is correct, whether all required variables are configured, and whether the upstream service is reachable.

## Manage existing MCP servers
If verification fails, check whether the connection is enabled, the URL or command is correct, authentication is complete, and the upstream service is reachable.

Common operations include:
## Manage existing MCP services

- View and inspect configuration.
- Enable, disable, or refresh a connection.
- Update or remove isolated environment variables.
- Remove a server that is no longer used.
You can ask AgentDock to inspect, enable, disable, refresh, re-authorize, or remove a connection, and to manage its isolated environment when needed.

See [Tools](../reference/tools.md#dynamic-mcp) for exact actions and parameters.
See [Tools](../reference/tools.md) for the complete operations and parameters.
121 changes: 16 additions & 105 deletions docs/concepts/nexusdock.md
Original file line number Diff line number Diff line change
@@ -1,113 +1,24 @@
# NexusDock
# What is NexusDock?

NexusDock is the optional self-hosted control plane for multiple AgentDock devices. AgentDock still performs real file, command, browser, Skill, and Coding Agent work on each device; NexusDock adds one place to connect devices, share Recall and Workflow data, and expose the fleet through one MCP endpoint.
NexusDock is an optional self-hosted control center for people who use AgentDock on multiple devices.

Use NexusDock when you want several Macs, Windows PCs, Linux hosts, or servers to appear behind one trusted entry point. A single AgentDock instance does not require NexusDock for normal local tools or tasks.
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.

Ready to self-host it? See [Deploy NexusDock](../operations/nexusdock.md) for the Docker setup, HTTPS boundary, upgrades, and backups.
If you only use one AgentDock device, you usually do not need NexusDock.

## What the web console gives you
## What you can do

The console separates shared NexusDock data from node-local runtime state:
- 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;
- share Recall memory and Workflow data across devices;
- configure an AI client once instead of connecting to each AgentDock separately.

- **Overview** shows system status, whether each AgentDock node is online, and summaries for platform, version, Skills, dynamic MCP, recent tasks, and node tools.
- **Recall** provides the shared knowledge workspace: library files, experience cards, Evolution records, vector recall, and local version history.
- **Workflow** lets you browse published templates, their current steps and matching rules, and older retired versions.
- **Tasks**, **Skills**, and **MCP** are node views. Select a device first, then inspect its recoverable tasks and installed Skills. Dynamic MCP servers can also be added, enabled, disabled, refreshed, or removed, with isolated environment variables managed without reading secret values back in plaintext.
- **Settings** has four areas: **Account & Sessions** for password and active-session management; **MCP Access** for the fleet MCP endpoint and dedicated Access Token; **AI & Vector** for Stage 3 and embedding configuration, connection tests, and index rebuilds; and **System & Nodes** for pairing, renaming, disabling, or removing AgentDock nodes and checking system state.
AgentDock still runs the actual work on each device. NexusDock brings those devices together; it does not replace them.

The Runtime pages do not copy a node's task, Skill, or dynamic MCP state into NexusDock. NexusDock reads or manages those resources through the selected AgentDock node, so an offline node cannot serve its live runtime data.
## Next steps

## A typical first setup

1. Sign in to the NexusDock web console.
2. Open **Settings → System & Nodes** and choose **Pair device** to generate an expiring, one-time pairing code.
3. Run the generated `agentdock nexus pair ...` command on the target machine, then restart AgentDock.
4. After the node is online, choose it from the Runtime node selector to inspect tasks, Skills, and dynamic MCP.
5. If you want semantic Recall search or vector-assisted Workflow matching, configure embeddings under **Settings → AI & Vector**, test the connection, and rebuild the indexes.
6. To connect an MCP client to the whole fleet, use the NexusDock `/mcp` endpoint. OAuth-capable clients can authorize in the browser; other clients can use the dedicated token shown under **Settings → MCP Access**.

## How devices connect

Pair each AgentDock device from the NexusDock control panel. The device then opens an outbound WebSocket connection to NexusDock.

This design means:

- Only NexusDock needs a reachable HTTPS address for remote use.
- AgentDock nodes can stay behind NAT or a home network without opening an inbound port.
- Each paired device keeps its own identity and local operating-system permissions.
- Disabling or disconnecting one node does not move its local execution environment into NexusDock.

Pairing NexusDock does not remove the node's own MCP endpoint. You can continue connecting directly to AgentDock when a local or single-device workflow is more appropriate.

## One MCP endpoint for the fleet

MCP clients can connect to the NexusDock `/mcp` endpoint instead of configuring every AgentDock node separately.

Start with `agentdock_context`. NexusDock returns a fleet context with two parts:

- `nodes`: enabled AgentDock devices, including `node_id`, online state, version, platform, capabilities, and available node-local context.
- `shared`: NexusDock-owned Workflow, Recall, rules, and shared context that should not be duplicated per node.

NexusDock does not expose a separate `node_list` tool. The `node_id` returned by `agentdock_context` is the routing key for device tools.

Fleet-owned central tools are published once and do not take a `node_id`, including:

- `agentdock_context`
- `recall_search`, `recall_read`, `recall_write`, and `recall_maintain`
- `workflow_template_manage`
- `private_note_manage`

`workspace_context` is also a canonical shared tool, but it is intentionally node-scoped: NexusDock exposes `workspace_context(node_id, workdir?)` and routes the request to that AgentDock node. The fleet `agentdock_context` remains a fleet overview and never carries workspace rule bodies.

Other device tools such as files, commands, tasks, browser automation, ACP, dynamic MCP, and `evolve` remain AgentDock capabilities. Through NexusDock, their input schema adds a required `node_id` so the call is routed to the intended node.

Keep paired AgentDock nodes on reasonably recent, similar versions to reduce tool-contract differences and keep the unified MCP endpoint as complete and consistent as possible.

## Recall and Workflow data

Recall and Workflow templates are centralized in NexusDock. This is why the fleet `agentdock_context` returns them under `shared` rather than copying them into every node context.

`recall_search` supports lexical search by default and can add semantic retrieval when NexusDock has an embedding model configured. The model-facing tool remains the same; callers do not need to choose a search backend.

See [NexusDock Recall](./recalldock.md) for content boundaries and [Tools](../reference/tools.md#nexusdock-recall) for the current tool contract.

## Download files from a node

When `file_publish` is called through NexusDock, the file still belongs to the selected AgentDock node. NexusDock can return its own temporary signed download URL and proxy the file over the node's existing outbound connection.

The important boundaries are:

- The source AgentDock node must remain online while the download is running.
- NexusDock reads large files in bounded chunks and verifies the artifact metadata and checksum while proxying.
- NexusDock does not persist a second copy of the node artifact.
- The signed URL expires; it is not a permanent public file host.

A public NexusDock download URL requires a correct external `NEXUS_PUBLIC_URL` and HTTPS deployment.

## Authentication boundaries

NexusDock keeps management access and MCP access separate. A remote MCP client can authorize against `/mcp` with the supported OAuth flow or a dedicated MCP Access Token without receiving NexusDock administrator API access.

For remote deployment:

- Put NexusDock behind HTTPS.
- Keep its application port bound to loopback or a trusted private network when possible.
- Configure trusted proxies narrowly.
- Protect the Nexus API token, MCP token, administrator password, Recall data, and private-note encryption material independently.

AgentDock nodes still enforce their own host permissions. NexusDock routing does not grant a node access to files, commands, browsers, or accounts that its AgentDock process could not access directly.

## AgentDock and NexusDock responsibilities

| Responsibility | AgentDock | NexusDock |
| --- | --- | --- |
| Files, commands, browser, ACP, Skills, dynamic MCP | Executes on the device | Routes calls to the selected node |
| Device runtime and operating-system permissions | Owns | Does not replace |
| Recoverable task state | Stored on the AgentDock node | Routes node task calls |
| Recall and Workflow registry | Consumes when configured | Owns the shared service |
| Knowledge evolution lifecycle | Owns policy and decisions | Provides shared storage and access paths |
| Multi-device MCP | Publishes node capabilities | Aggregates compatible node tools and central tools |
| Published node artifacts | Stores the source artifact | Proxies temporary signed downloads |

For a single device, start with AgentDock directly. Add NexusDock when centralized Recall, Workflow data, device management, or a unified multi-device MCP endpoint becomes useful.
- [Install and maintain](../operations/nexusdock.md)
- [Connect AgentDock](../operations/nexusdock-connect.md)
- [Recall memory](./recalldock.md)
- [Workflow](./workflow.md)
32 changes: 32 additions & 0 deletions docs/concepts/plugins.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Use Plugins

A Plugin packages related AgentDock extensions so they can be reviewed and managed together. A Plugin can include Skills, MCP server configurations, or both. Those components still use AgentDock's existing Skill and dynamic MCP systems; a Plugin does not create a separate execution layer.

Here, **Plugin** means an AgentDock extension package. It is different from the plugin, connector, or MCP entry that an AI client such as ChatGPT uses to connect to AgentDock.

## When to use a Plugin

Use a Plugin when several related extensions should be installed and updated together. If you only need task instructions, use a [Skill](./skills.md). If you only need one MCP connection, use [Dynamic MCP](./dynamic-mcp.md).

AgentDock understands its portable Plugin format and supported OpenAI and Claude Plugin packages. Remote sources such as Git or GitHub are fetched through the bundled `plugin-import` Skill before AgentDock reviews the local package.

## Install a Plugin

Describe the goal and ask for a review first:

```text
Review and install this Plugin. Show me which Skills and MCP connections it adds before installing it.
```

AgentDock validates the package before installation. Installation or update is tied to the exact reviewed content, so changing the package requires another review.

Installed Plugins can be inspected, updated, enabled, disabled, or removed. Disabling a Plugin keeps it installed but stops its packaged components from being active. Removal can keep the Plugin data and MCP credentials, or explicitly purge them.

## Safety

- Review unfamiliar Plugins before installing or updating them.
- Do not put tokens, cookies, passwords, or other secrets inside a Plugin package.
- A packaged MCP server has the same trust considerations as a directly configured MCP server.
- A Plugin cannot exceed the operating-system permissions, container mounts, or other boundaries that apply to AgentDock.

For complete management operations and parameters, see [Tools](../reference/tools.md).
38 changes: 17 additions & 21 deletions docs/concepts/recalldock.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# NexusDock Recall
# Recall memory

NexusDock Recall is an optional long-term knowledge service for AgentDock. It stores stable project notes, experience, decisions, and problem logs so later tasks can find reliable context.
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, knowledge evolution, and private note tools are unavailable. See [NexusDock](./nexusdock.md) for the multi-device control plane and unified MCP gateway.
Without NexusDock, file, command, command-line Git, Skill, dynamic MCP, and local task tools remain fully available; Recall, workflow template, knowledge evolution, and private note tools are unavailable. See [NexusDock](./nexusdock.md) for multi-device management and the unified MCP endpoint.

## When to use it

Store:

- Long-lived project structure and runtime steps.
- Verified deployment or troubleshooting notes.
- Decisions and preferences meant to be reused across sessions.
- Open questions and learning notes.
- Personal preferences, recurring habits, and long-term goals.
- Learning notes, reading takeaways, and knowledge you want to build over time.
- Information you may reuse for travel, shopping, hobbies, or everyday decisions.
- Background, decisions, and experience from work or personal projects.
- Verified development, deployment, or troubleshooting lessons.

Do not store:

Expand All @@ -22,32 +23,27 @@ Do not store:

## Setup

You need an accessible NexusDock URL and an optional token. Ask your agent:
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.

```text
Connect AgentDock to NexusDock Recall at https://nexus.example.com using a secure environment variable for the token.
```

For exact environment variables, see [Configuration reference](../reference/configuration.md).
Recall does not need a separate AgentDock-side URL or token after pairing. See [Connect AgentDock](../operations/nexusdock-connect.md) for the full setup.

## How to use it

Speak directly:

```text
Check existing deployment notes for this project before starting.
Update verified conclusions to long-term project docs; do not record temporary logs.
Search earlier troubleshooting notes about OAuth.
Remember that I prefer places to stay with convenient public transit when I travel.
Save the key points from this study session so I can continue reviewing them later.
Find the camera-buying criteria I summarized before.
Save the long-term conclusion we just confirmed for this project.
```

`agentdock_context` already includes a compact Recall startup index, so models do not need a separate bootstrap call. Read directly when the index already provides the exact path; otherwise use `recall_search` to search Markdown and Cards. When NexusDock has embeddings configured, it adds semantic recall behind the same search tool transparently.

The agent searches existing content first, then decides whether to read, update, or create, avoiding duplicates and conflicts.
AgentDock can use existing Recall content to carry useful context into later tasks. With Embeddings configured, semantic search can also find related information even when it is phrased differently.

## Content types

- **Markdown:** stable project documentation, runbooks, learning records, and structured long-term facts.
- **Card:** one atomic, reusable experience, preference, or decision.
- **Markdown:** long-term notes, learning records, project documentation, and structured knowledge.
- **Card:** one atomic, reusable experience, preference, fact, or decision.

Private Notes are a separate store rather than a Recall content type.

Expand Down
Loading
Loading