Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
docs: fix Cursor agent docs image links (#2360)
yufeng1c9b273fc629
diff --git a/docs/images/agents/en/claude-code.md b/docs/images/agents/en/claude-code.mdindex b662ab1ad..b13de1639 100644--- a/docs/images/agents/en/claude-code.md+++ b/docs/images/agents/en/claude-code.md@@ -1,6 +1,8 @@# Claude Code Memory Plugin-Add cross-project, cross-session long-term memory to [Claude Code](https://docs.claude.com/en/docs/claude-code/overview). Install once; recall and capture happen automatically on every conversation.+Add cross-project, cross-session long-term memory to [Claude Code](https://docs.claude.com/en/docs/claude-code/overview). Install once; every conversation automatically recalls and captures memory, and the model does not need to call any tools manually.++Source: [examples/claude-code-memory-plugin](https://github.com/volcengine/OpenViking/tree/main/examples/claude-code-memory-plugin) | [Blog: motivation and demo](https://blog.openviking.ai/post/openviking-coding-agent/)## Install@@ -8,20 +10,89 @@ Add cross-project, cross-session long-term memory to [Claude Code](https://docs.bash <(curl -fsSL https://raw.githubusercontent.com/volcengine/OpenViking/main/examples/claude-code-memory-plugin/setup-helper/install.sh)```-The installer checks dependencies, configures the OpenViking connection, and installs the plugin.+The installer checks dependencies, configures the OpenViking connection, and installs the plugin. Each step is idempotent, so it is safe to rerun.++After installation, start Claude Code and ask what you discussed in the previous session. It should remember.++<details>+<summary><b>Manual installation</b></summary>++If you prefer to install manually:++1. **Shell function wrapper** - Append a `claude()` function to `~/.zshrc` or `~/.bashrc`. Every invocation reads `OPENVIKING_URL` and `OPENVIKING_API_KEY` from `~/.openviking/ovcli.conf`, so the API key only exists inside the `claude` process tree. See the full function and security notes in the [plugin README](https://github.com/volcengine/OpenViking/blob/main/examples/claude-code-memory-plugin/README.md#1-wrap-claude-to-inject-env-from-ovcliconf).++2. **Install the plugin** from the OpenViking repository root:++ ```bash+ claude plugin marketplace add "$(pwd)/examples"+ claude plugin install claude-code-memory-plugin@openviking-plugins-local+ ```++3. **Start Claude Code** and run `/mcp` to confirm the OpenViking entry shows your server URL.++> No `ovcli.conf` yet? Create it first via [Deployment Guide -> CLI](../guides/03-deployment.md#cli).+>+> Pure local mode (`http://127.0.0.1:1933`, no auth)? Skip step 1. The plugin silently uses the local defaults.+>+> Claude Code < 2.0? See the [compatibility mode section](https://github.com/volcengine/OpenViking/blob/main/examples/claude-code-memory-plugin/README_CN.md#兼容模式claude-code--20) in the plugin README.++</details>## Verify```bash-type claude+type claude # Expected: claude is a shell function```-Expected output: `claude is a shell function`.+Inside Claude Code:++- `/plugins` -> Find **openviking-memory** under Installed. Its **openviking** MCP entry should be connected.+- `/mcp` -> The OpenViking entry should show your server URL and valid authentication.+- `/openviking-memory:ov` -> Shows server status, identity, recall/injection stats, and toggle state.++If the plugin does not appear to work, set `OPENVIKING_DEBUG=1` and inspect `~/.openviking/logs/cc-hooks.log`.++## How it works++The plugin hooks into the Claude Code lifecycle: before every user prompt it searches OpenViking and injects relevant memory; after each assistant response it captures new conversation content; on session start it injects the user profile and memory index; before compact and at session end it commits pending messages; and each subagent gets an isolated memory session. All writes run asynchronously, so they do not block your workflow.++<details>+<summary><b>Configuration</b></summary>++Configuration priority: environment variables > `ovcli.conf` > `ov.conf` > built-in defaults (`http://127.0.0.1:1933`, no auth).++| Environment variable | Default | Description |+|---------|--------|------|+| `OPENVIKING_AUTO_RECALL` | `true` | Automatically recall before each user prompt |+| `OPENVIKING_RECALL_LIMIT` | `6` | Maximum memories injected per turn |+| `OPENVIKING_RECALL_TOKEN_BUDGET` | `2000` | Token budget for inline memory content |+| `OPENVIKING_AUTO_CAPTURE` | `true` | Automatically capture after each turn |+| `OPENVIKING_BYPASS_SESSION` | `false` | Skip all hooks for the current session |+| `OPENVIKING_BYPASS_SESSION_PATTERNS` | `""` | CSV glob patterns for automatic bypass |+| `OPENVIKING_MEMORY_ENABLED` | (auto) | Force enable or disable |+| `OPENVIKING_DEBUG` | `false` | Write logs to `~/.openviking/logs/cc-hooks.log` |++For multi-tenant deployments, set `OPENVIKING_ACCOUNT`, `OPENVIKING_USER`, and `OPENVIKING_AGENT_ID`. See the [plugin README](https://github.com/volcengine/OpenViking/blob/main/examples/claude-code-memory-plugin/README.md#configuration) for the full environment variable list.++</details>++## Status line++The plugin renders OpenViking status below the Claude Code input box: connection health, recall count, capture progress, and session state are visible at a glance. See [STATUSLINE.md](https://github.com/volcengine/OpenViking/blob/main/examples/claude-code-memory-plugin/STATUSLINE.md) for the full status levels and customization recipes.++## Troubleshooting-In Claude Code:+| Symptom | Cause | Fix |+|------|------|------|+| Plugin is not active | `ov.conf` / `ovcli.conf` cannot be found | Run the [installer](#install), or set `OPENVIKING_MEMORY_ENABLED=1` plus URL/API_KEY |+| Hooks run but recall is empty | Server is down or URL is wrong | `curl "$(jq -r '.url' ~/.openviking/ovcli.conf)/health"` |+| MCP tools connect to `127.0.0.1` instead of remote | Missing shell function wrapper | Confirm `type claude` returns "shell function"; see [Manual installation](#install) |+| Remote auth returns 401 / 403 | API key is wrong or tenant headers are missing | Check `OPENVIKING_API_KEY`; for multi-tenant deployments also verify `OPENVIKING_ACCOUNT` / `OPENVIKING_USER` |-- `/plugins`: find `openviking-memory` in Installed-- `/mcp`: confirm the OpenViking MCP endpoint is connected-- `/openviking-memory:ov`: view server status, identity, recall, and capture state+## See also-Set `OPENVIKING_DEBUG=1` to write debug logs to `~/.openviking/logs/cc-hooks.log`.+- [Blog: OpenViking for Claude Code / Codex](https://blog.openviking.ai/post/openviking-coding-agent/) - Why and how to add long-term memory to your coding agent+- [Plugin README](https://github.com/volcengine/OpenViking/blob/main/examples/claude-code-memory-plugin/README.md) - Full environment variable table, hook details, and architecture diagram+- [Migration guide](https://github.com/volcengine/OpenViking/blob/main/examples/claude-code-memory-plugin/MIGRATION.md) - Upgrade from the old plugin+- [MCP Clients](./06-mcp-clients.md) - MCP tool parameters and other clients+- [Deployment Guide -> CLI](../guides/03-deployment.md#cli) - `ovcli.conf` configurationdiff --git a/docs/images/agents/en/codex.md b/docs/images/agents/en/codex.mdindex b19f314e7..be3dff166 100644--- a/docs/images/agents/en/codex.md+++ b/docs/images/agents/en/codex.md@@ -1,6 +1,8 @@# Codex Memory Plugin-Add persistent cross-session memory to Codex. The plugin recalls relevant memory before each user prompt, captures conversation updates after each turn, commits before compaction, and connects Codex to the OpenViking MCP endpoint.+Add persistent cross-session memory to [Codex](https://developers.openai.com/codex). Install once: the plugin automatically recalls memory before every user prompt, captures updates after each turn, and commits before compaction. It also connects Codex to OpenViking's `/mcp` endpoint so the model can directly call tools such as search and store.++Source: [examples/codex-memory-plugin](https://github.com/volcengine/OpenViking/tree/main/examples/codex-memory-plugin) | [Blog: motivation and demo](https://blog.openviking.ai/post/openviking-coding-agent/)## Install@@ -8,25 +10,73 @@ Add persistent cross-session memory to Codex. The plugin recalls relevant memorybash <(curl -fsSL https://raw.githubusercontent.com/volcengine/OpenViking/main/examples/codex-memory-plugin/setup-helper/install.sh)```+The installer checks dependencies, configures the OpenViking connection, and registers the plugin. Each step is idempotent, so it is safe to rerun.+After installation:```bash-source ~/.zshrc-codex+source ~/.zshrc # or ~/.bashrc+codex # approve hooks once via /hooks on first launch```-Approve hooks on first launch if Codex asks for review.+<details>+<summary><b>Manual installation</b></summary>++Prerequisites: Node.js >= 22, Codex >= 0.130.0, and the `codex_hooks` feature enabled.++1. **Shell function wrapper** - Append a `codex()` function to your shell rc file. Each invocation injects OpenViking environment variables from `ovcli.conf`. See the [plugin README](https://github.com/volcengine/OpenViking/blob/main/examples/codex-memory-plugin/README.md) for the full function.++2. **Install the plugin** - Register the local marketplace and enable the plugin. See `setup-helper/install.sh` for the exact commands.++3. **Render placeholders** - Placeholders in `.mcp.json` and `hooks.json` must be replaced with absolute values when copied into the Codex cache. The installer handles this automatically.++</details>## Verify```bash-type codex+type codex # Expected: codex is a shell function```-Expected output: `codex is a shell function`.+Inside Codex, the plugin recalls memory before every prompt. Set `OPENVIKING_DEBUG=1` to write events to `~/.openviking/logs/codex-hooks.log`.++## How it works++The plugin hooks into the Codex lifecycle: it searches OpenViking and injects relevant memory before every user prompt (`UserPromptSubmit`), appends new conversation turns to the session after each response (`Stop`), and completes plus commits the full transcript before compaction (`PreCompact`) so the memory extractor sees the complete context. On new session start, it also cleans up orphan sessions from previous runs.++> **Known gap**: Codex does not trigger hooks on `SIGTERM`, `Ctrl+C`, or `/exit`. Orphan sessions are reclaimed by the next `SessionStart` using the idle TTL cleanup window (30 minutes) or the active-window heuristic.++<details>+<summary><b>Configuration</b></summary>++Configuration priority: environment variables > `ovcli.conf` > `ov.conf` > built-in defaults (`http://127.0.0.1:1933`, no auth).++| Environment variable | Default | Description |+|---------|--------|------|+| `OPENVIKING_URL` / `OPENVIKING_BASE_URL` | - | Full server URL |+| `OPENVIKING_API_KEY` | - | API key sent as `Authorization: Bearer` |+| `OPENVIKING_CODEX_ACTIVE_WINDOW_MS` | `120000` | SessionStart active-window threshold |+| `OPENVIKING_CODEX_IDLE_TTL_MS` | `1800000` | SessionStart idle TTL cleanup threshold |+| `OPENVIKING_DEBUG` | `false` | Write logs to `~/.openviking/logs/codex-hooks.log` |++For tuning options such as `OPENVIKING_RECALL_LIMIT` and `OPENVIKING_CAPTURE_ASSISTANT_TURNS`, see the [plugin README](https://github.com/volcengine/OpenViking/blob/main/examples/codex-memory-plugin/README.md#tuning-the-plugin).++</details>++## Troubleshooting-Set `OPENVIKING_DEBUG=1` to write events to `~/.openviking/logs/codex-hooks.log`.+| Symptom | Cause | Fix |+|------|------|------|+| `MCP server is not logged in` | `OPENVIKING_API_KEY` is not in the startup environment | Confirm the `codex()` function has been sourced and `ovcli.conf` has `api_key` |+| `4 hooks need review` | First-launch security approval | Type `/hooks` in Codex and approve |+| `hook (failed) exited with code 1` after approval | Placeholders in the cache were not rendered | Rerun the one-line installer |+| Recall is empty | Server is unreachable or URL is wrong | `curl "$(jq -r '.url' ~/.openviking/ovcli.conf)/health"` |+| Hooks get 401 while MCP works, or vice versa | Environment and `ovcli.conf` differ | Hooks reread `ovcli.conf` each time; MCP reads env at startup. Restart Codex after changes. |-## Notes+## See also-Codex does not trigger hooks on `SIGTERM`, `Ctrl+C`, or `/exit`. The plugin cleans up orphan sessions on the next `SessionStart` with an idle TTL.+- [Blog: OpenViking for Claude Code / Codex](https://blog.openviking.ai/post/openviking-coding-agent/) - Why and how to add long-term memory to your coding agent+- [Plugin README](https://github.com/volcengine/OpenViking/blob/main/examples/codex-memory-plugin/README.md) - Full environment variables and architecture diagram+- [DESIGN.md](https://github.com/volcengine/OpenViking/blob/main/examples/codex-memory-plugin/DESIGN.md) - Commit decision tree+- [MCP Clients](./06-mcp-clients.md) - MCP protocol, tool list, and other clients+- [Deployment Guide -> CLI](../guides/03-deployment.md#cli) - `ovcli.conf` configurationdiff --git a/docs/images/agents/en/cursor.md b/docs/images/agents/en/cursor.mdindex 927e5b6e0..9c237eeab 100644--- a/docs/images/agents/en/cursor.md+++ b/docs/images/agents/en/cursor.md@@ -1,16 +1,46 @@# Cursor MCP Integration-## Step 1: Get an API Key+# 1. Prerequisite: Get an API Key-OpenViking MCP clients use the API Key from the OpenViking console as the authorization token. Copy it before configuring Cursor.+All MCP clients use the same **Authorization Token**, which is the API Key from the OpenViking console. Get it first and keep it secure.-## Step 2: Open Cursor MCP settings+## 1.1 Where to find it-In Cursor, open Settings and go to **Tools & MCPs**.+1. In the left menu, choose **User Management**.-## Step 3: Add a custom MCP server+2. Find the target user in the user list. For personal editions, the default user is usually `default` / `admin`. Click the **copy** icon in the API Key column.-Click **Add Custom MCP**, then add the following configuration to `mcp.json`:+3. Save the copied `ZGV...hiMg` string. It will be used as the `Authorization` value for agent integration.++**Security note**: The API Key is equivalent to an account secret. Do not commit it to Git or publish it anywhere. Prefer environment variables or encrypted configuration.++++# 2. Cursor Integration Guide++This is the standard OpenViking flow for connecting Cursor.++## 2.1 Integration steps++### Step 1 - Open settings++In the Cursor main window, click **Settings** in the upper-right corner to open the settings panel.++++### Step 2 - Add an MCP Server++In the left menu, select **Tools & MCPs** to open the MCP Servers page.++++Click **Add Custom MCP**.++++### Step 3 - Paste the JSON configuration++In the opened **mcp.json** file, paste the following JSON and replace `Authorization` with the API Key copied in section 1:```json{@@ -18,32 +48,52 @@ Click **Add Custom MCP**, then add the following configuration to `mcp.json`:"ov-mcp-server": {"url": "https://api.vikingdb.cn-beijing.volces.com/openviking/mcp","headers": {- "Authorization": "Bearer <API Key>"+ "Authorization": "Bearer ZGVmYXV********YzdlZjhiMg"}}}}```-The `Authorization` value must include the `Bearer` prefix.+**Important**: The `Authorization` value must include the `Bearer` prefix and a space. The full format is `Bearer <API Key>`.-## Step 4: Enable and verify+-Save `mcp.json`. Cursor should load `ov-mcp-server` and show the enabled tools.+### Step 4 - Confirm and enable-Run these queries in Cursor:+After saving and closing `mcp.json`, Cursor automatically connects to the MCP server and loads the tools. When the connection succeeds, **`ov-mcp-server`** appears in the **Installed MCP Servers** list with the enabled tool count, such as "10 tools enabled". The switch next to `ov-mcp-server` should be green, which means the service is loaded and ready.-```text-ov ls-ov health-```+++### Step 5 - Check MCP connectivity++After connecting, run two simple queries in Cursor to verify the MCP server:++**1.** **`ov ls`** - List OpenViking root directories and confirm the connection returns the expected structure.++++**2.** **`ov health`** - Call the health tool to confirm server status and current identity.++++**Acceptance criteria**: `ov ls` returns directories such as `agent / resources / session / user`; `ov health` returns `service initialized` and the current username.++## 2.2 Configuration fields++| Field | Required | Description |+|---|---|---|+| `mcpServers` | Yes | Root node for MCP server configuration |+| `ov-mcp-server` | Yes | Service alias. It can be customized, but keeping this name helps contextual recognition |+| `url` | Yes | OpenViking MCP endpoint. For CN, use `https://api.vikingdb.cn-beijing.volces.com/openviking/mcp` |+| `headers.Authorization` | Yes | Format: `Bearer <API Key>`. Source: section 1 |-`ov ls` should return OpenViking root directories such as `agent`, `resources`, `session`, and `user`. `ov health` should return service status and the current identity.+----## Troubleshooting+# 3. FAQ-| Problem | Fix |+| Problem | Suggested fix ||---|---|-| `401 Unauthorized` | Check that `Authorization` includes `Bearer <API Key>` and that the API Key is valid. |-| Network timeout | Confirm the network can reach `api.vikingdb.cn-beijing.volces.com`. |-| Agent cannot see tools | Confirm the MCP server is enabled. Some clients need a restart after config changes. |+| Connection failed / 401 Unauthorized | Check that `Authorization` includes the `Bearer` prefix and that the API Key is valid |+| Connection failed / network timeout | Confirm the network can reach `api.vikingdb.cn-beijing.volces.com`; add an allowlist entry for corporate networks if needed |+| Agent cannot see tools | Confirm the MCP server is enabled. Some clients need a process restart before loading new config |diff --git a/docs/images/agents/en/hermes.md b/docs/images/agents/en/hermes.mdindex 149f5e425..89fe28fa4 100644--- a/docs/images/agents/en/hermes.md+++ b/docs/images/agents/en/hermes.md@@ -1,8 +1,8 @@# Hermes Agent-[Hermes Agent](https://hermes-agent.nousresearch.com/) includes OpenViking as a native memory provider. No plugin installation is required.+[Hermes Agent](https://hermes-agent.nousresearch.com/) (Nous Research) includes OpenViking as a built-in memory provider. No plugin installation is required. Point Hermes to your OpenViking service to enable native memory storage, recall, and extraction.-## Configure memory+## ConfigureRun the Hermes memory setup wizard:@@ -12,11 +12,11 @@ hermes memory setupThe wizard asks for:-- OpenViking service URL, such as `https://api.vikingdb.cn-beijing.volces.com/openviking`-- API Key-- Tenant account, user, and agent ID for multi-tenant deployments+- **OpenViking service URL** - A self-hosted server (default `http://127.0.0.1:1933`) or Volcengine OpenViking Cloud+- **API Key** - Leave empty for local development mode+- **Tenant account / user / agent ID** - Used for multi-tenant deployments-Hermes stores the configuration in `config.yaml` and `.env`.+The configuration is saved to Hermes `config.yaml` and `.env` files.## Verify@@ -24,4 +24,10 @@ Hermes stores the configuration in `config.yaml` and `.env`.hermes memory status```-After setup, Hermes uses OpenViking for long-term memory storage, recall, and extraction.+After configuration, Hermes automatically uses OpenViking as long-term memory. Memory tools such as `viking_remember` and `viking_recall` are available immediately.++## See also++- [Hermes - OpenViking memory provider documentation](https://hermes-agent.nousresearch.com/docs/user-guide/features/memory-providers#openviking) - Full configuration guide+- [Deployment Guide](../guides/03-deployment.md) - Set up the OpenViking service+- [Authentication](../guides/04-authentication.md) - API Key settings for remote accessdiff --git a/docs/images/agents/en/mcp.md b/docs/images/agents/en/mcp.mdindex 2f81528cd..9c4df1864 100644--- a/docs/images/agents/en/mcp.md+++ b/docs/images/agents/en/mcp.md@@ -1,8 +1,6 @@# MCP Integration-## Step 1: Configure MCP--Add the OpenViking MCP server to your MCP client configuration:+Step 1 MCP configuration```json{@@ -10,21 +8,15 @@ Add the OpenViking MCP server to your MCP client configuration:"ov-mcp-server": {"url": "https://api.vikingdb.cn-beijing.volces.com/openviking/mcp","headers": {- "Authorization": "Bearer <API Key>"+ "Authorization": "Bearer ZGVmYXV********YzdlZjhiMg"}}}}```-The `Authorization` value must include the `Bearer` prefix and one space before the API key.--## Step 2: Verify the connection+**Important**: The `Authorization` value must include the `Bearer` prefix and a space. The full format is `Bearer <API Key>`.-Ask your agent to run:--```text-ov health-```+Step 2 Test MCP tool connectivity-If the tool returns the OpenViking version and service status, the MCP connection is ready.+Enter `ov health` to check the OpenViking version and connection status.diff --git a/docs/images/agents/en/openclaw.md b/docs/images/agents/en/openclaw.mdindex 7a1a044dd..c99cf205f 100644--- a/docs/images/agents/en/openclaw.md+++ b/docs/images/agents/en/openclaw.md@@ -1,23 +1,21 @@-# OpenClaw Plugin+## Step 1 Install OpenViking-## Step 1: Install OpenViking--Run the following command in the terminal where OpenClaw is installed:+On the machine running OpenClaw, run the following command to install the OpenViking plugin:```bashopenclaw plugins install clawhub:@openviking/openclaw-plugin && openclaw openviking setup```-## Step 2: Enter connection information+## Step 2 Enter the following information-The setup command will prompt for:+After running the install command, the setup wizard prompts for the following values. Copy and paste them into your agent terminal:- Base URL: `https://api.vikingdb.cn-beijing.volces.com/openviking`-- API Key: copy the API Key shown in the OpenViking console+- API Key: Copy the API Key shown on the page into your agent terminal-## Step 3: Restart OpenClaw+## Step 3 Restart OpenClaw-Restart OpenClaw so the plugin can load the new configuration:+Copy the following command into the agent terminal to restart OpenClaw. After restart, the console automatically detects the agent connection status.```bashopenclaw gateway restartdiff --git a/docs/images/agents/en/opencode.md b/docs/images/agents/en/opencode.mdindex 498036341..a38600ab7 100644--- a/docs/images/agents/en/opencode.md+++ b/docs/images/agents/en/opencode.md@@ -1,18 +1,15 @@-# Opencode Plugin+# OpenCode Plugin-OpenViking provides two OpenCode plugin modes:+OpenCode has two plugin variants with different designs. Choose the one that matches how you want to use it.-- tool mode, where the model can choose when to call OpenViking tools-- context mode, where OpenViking injects relevant context into the session+## `opencode-memory-plugin` - Explicit tool version-## Configure+Source: [examples/opencode-memory-plugin](https://github.com/volcengine/OpenViking/tree/main/examples/opencode-memory-plugin)-Install the OpenViking OpenCode plugin from the OpenViking plugin package or local marketplace, then configure the service URL and API Key:+This variant exposes OpenViking memory as explicit tools through OpenCode's tool mechanism. The model decides when to call them, and data is fetched on demand.-```text-https://api.vikingdb.cn-beijing.volces.com/openviking-```+## `opencode/plugin` - Context injection version-## Verify+Source: [examples/opencode/plugin](https://github.com/volcengine/OpenViking/tree/main/examples/opencode/plugin)-Start OpenCode and confirm the OpenViking plugin is loaded. Ask the agent to inspect OpenViking status or search memory to verify connectivity.+This variant injects indexed code repositories into OpenCode context and starts the OpenViking server automatically when needed.diff --git a/docs/images/agents/en/trae.md b/docs/images/agents/en/trae.mdindex 0a08a44d1..d10e90eb0 100644--- a/docs/images/agents/en/trae.md+++ b/docs/images/agents/en/trae.md@@ -1,16 +1,58 @@-# TRAE MCP Integration+# Trae MCP Integration-## Step 1: Get an API Key+# 1. Use cases-Copy the API Key from the OpenViking console. It will be used as the MCP `Authorization` token.+Use OpenViking to:-## Step 2: Open TRAE MCP settings+- Remember technology stack preferences across sessions, including language versions, frameworks, package managers, and build systems.-In TRAE, open Settings and select **MCP** to enter the MCP Servers page.+- Persist coding style preferences, including naming conventions, comment style, whether to write tests, and TDD/BDD habits.-## Step 3: Add an MCP server+- Remember common project context, such as monorepo structure, build commands, deployment flow, and environment differences.-Choose manual configuration and paste:+- Store historical decisions and troubleshooting notes, such as why option X was avoided or what failed last time with option Y.++- Persist long-term personal goals, OKRs, or roadmaps so the agent can align with them while planning tasks.++---++# 2. Prerequisite: Get an API Key++All MCP clients use the same **Authorization Token**, which is the API Key from the OpenViking console. Get it first and keep it secure.++## 2.1 Where to find it++1. In the left menu, choose **User Management**.++2. Find the target user in the user list. For personal editions, the default user is usually `default` / `admin`. Click the **copy** icon in the API Key column.++3. Save the copied `ZGV...hiMg` string. It will be used as the `Authorization` value for agent integration.++**Security note**: The API Key is equivalent to an account secret. Do not commit it to Git or publish it anywhere. Prefer environment variables or encrypted configuration.++---++# 3. Trae Integration Guide++**Trae** is an AI IDE from ByteDance. It natively supports loading external tools and context services through MCP. This is the standard OpenViking integration flow.++## 3.1 Integration steps++### Step 1 - Open settings++In the Trae main window, click **Settings** in the upper-right corner to open the settings panel.++### Step 2 - Open the MCP configuration page++In the left menu, select **MCP** to open the MCP Servers page.++### Step 3 - Add an MCP Server++Click the **+ Add** button on the right, then choose **Manual configuration** from the dropdown.++### Step 4 - Paste the JSON configuration++In the configuration dialog, paste the following JSON and replace `Authorization` with the API Key copied in section 2:```json{@@ -18,30 +60,45 @@ Choose manual configuration and paste:"ov-mcp-server": {"url": "https://api.vikingdb.cn-beijing.volces.com/openviking/mcp","headers": {- "Authorization": "Bearer <API Key>"+ "Authorization": "Bearer ZGVmYXV********YzdlZjhiMg"}}}}```-## Step 4: Enable and verify+**Important**: The `Authorization` value must include the `Bearer` prefix and a space. The full format is `Bearer <API Key>`.-After saving, TRAE should load `ov-mcp-server` and enable the tools.+### Step 5 - Confirm and enable-Run:+Click **Confirm**. Trae automatically connects to the MCP server and loads the tools. When the connection succeeds, `ov-mcp-server` appears in the configured MCP Servers list. The switch on the right should be green, which means the server is loaded and enabled.-```text-ov ls-ov health-```+### Step 6 - Check MCP connectivity++After connecting, run two simple queries in Trae to verify the MCP server:++**1.** **`ov ls`** - List OpenViking root directories and confirm the connection returns the expected structure.++**2.** **`ov health`** - Call the health tool to confirm server status and current identity.++**Acceptance criteria**: `ov ls` returns directories such as `agent / resources / session / user`; `ov health` returns `service initialized` and the current username.++## 3.2 Configuration fields++| Field | Required | Description |+|---|---|---|+| `mcpServers` | Yes | Root node for MCP server configuration |+| `ov-mcp-server` | Yes | Service alias. It can be customized, but keeping this name helps contextual recognition |+| `url` | Yes | OpenViking MCP endpoint. For CN, use `https://api.vikingdb.cn-beijing.volces.com/openviking/mcp` |+| `headers.Authorization` | Yes | Format: `Bearer <API Key>`. Source: section 2 |-The integration is ready when `ov ls` returns OpenViking directories and `ov health` returns service status.+----## Troubleshooting+# 4. FAQ-| Problem | Fix |+| Problem | Suggested fix ||---|---|-| `401 Unauthorized` | Check the API Key and the `Bearer` prefix. |-| Network timeout | Confirm the network can reach the OpenViking API domain. |-| Tool schema is incompatible with the current model | Switch models or upgrade TRAE to the latest version. |+| Connection failed / 401 Unauthorized | Check that `Authorization` includes the `Bearer` prefix and that the API Key is valid |+| Connection failed / network timeout | Confirm the network can reach `api.vikingdb.cn-beijing.volces.com`; add an allowlist entry for corporate networks if needed |+| Agent cannot see tools | Confirm the MCP server is enabled. Some clients need a process restart before loading new config |+| MCP tool reports argument schema incompatibility with the current model, or asks you to switch/fix the MCP server or model (4027) | Try switching models or upgrading Trae to the latest version |diff --git a/docs/images/agents/image/cursor/01-api-key.jpg b/docs/images/agents/image/cursor/01-api-key.jpgnew file mode 100644index 000000000..8f9c6ccb8Binary files /dev/null and b/docs/images/agents/image/cursor/01-api-key.jpg differdiff --git a/docs/images/agents/image/cursor/02-open-settings.png b/docs/images/agents/image/cursor/02-open-settings.pngnew file mode 100644index 000000000..74a7ddb1cBinary files /dev/null and b/docs/images/agents/image/cursor/02-open-settings.png differdiff --git a/docs/images/agents/image/cursor/03-tools-and-mcps.png b/docs/images/agents/image/cursor/03-tools-and-mcps.pngnew file mode 100644index 000000000..dbde09bd1Binary files /dev/null and b/docs/images/agents/image/cursor/03-tools-and-mcps.png differdiff --git a/docs/images/agents/image/cursor/04-add-custom-mcp.png b/docs/images/agents/image/cursor/04-add-custom-mcp.pngnew file mode 100644index 000000000..cc49bad5cBinary files /dev/null and b/docs/images/agents/image/cursor/04-add-custom-mcp.png differdiff --git a/docs/images/agents/image/cursor/05-paste-mcp-json.jpg b/docs/images/agents/image/cursor/05-paste-mcp-json.jpgnew file mode 100644index 000000000..fd55a2a93Binary files /dev/null and b/docs/images/agents/image/cursor/05-paste-mcp-json.jpg differdiff --git a/docs/images/agents/image/cursor/06-enable-server.png b/docs/images/agents/image/cursor/06-enable-server.pngnew file mode 100644index 000000000..4b0f8bc46Binary files /dev/null and b/docs/images/agents/image/cursor/06-enable-server.png differdiff --git a/docs/images/agents/image/cursor/07-ov-ls.png b/docs/images/agents/image/cursor/07-ov-ls.pngnew file mode 100644index 000000000..c0d256fa3Binary files /dev/null and b/docs/images/agents/image/cursor/07-ov-ls.png differdiff --git a/docs/images/agents/image/cursor/08-ov-health.png b/docs/images/agents/image/cursor/08-ov-health.pngnew file mode 100644index 000000000..5b8e41668Binary files /dev/null and b/docs/images/agents/image/cursor/08-ov-health.png differdiff --git a/docs/images/agents/zh/cursor.md b/docs/images/agents/zh/cursor.mdindex 2b5bc679e..a19a2c13c 100644--- a/docs/images/agents/zh/cursor.md+++ b/docs/images/agents/zh/cursor.md@@ -14,7 +14,7 @@**安全提示**:API Key 等同于账户密钥,请勿提交到 Git 仓库或公开渠道。建议通过环境变量或加密配置注入。-+@@ -28,19 +28,19 @@在 Cursor 主界面右上角点击 **设置(齿轮图标)**,进入设置面板-+### 步骤 2 · 新增 MCP Server在左侧菜单中选择 **Tools \& MCPs**,进入 MCP Servers 管理页。-+点击 **Add Custom MCP** 按钮。-+@@ -63,13 +63,13 @@**关键说明**:`Authorization` 的值需带上 `Bearer` 前缀(注意空格),完整格式为 `Bearer \<API Key\>`。-+### 步骤 4 · 确认并启用保存 mcp\.json 配置文件并关闭后,Cursor 会自动建立 MCP 连接并加载工具列表。连接成功后,**`ov\-mcp\-server`** 会出现在 **Installed MCP Servers** 列表中,同时会显示已启用的工具数量(图中的 “10 tools enabled”)。配置完成后,可直接看到 `ov\-mcp\-server` 条目旁的开关呈绿色开启状态,代表服务已正常加载并就绪:-+### 步骤 5 · MCP 连通性检查@@ -77,11 +77,11 @@**① ** **`ov ls`** — 列出 OpenViking 根目录内容,确认连接畅通、可正确返回目录结构。-+**② ****`ov health`** — 调用 health 工具,确认 OpenViking 服务端状态与当前用户身份。-+**验收标准**:`ov ls` 能返回 `agent / resources / session / user` 等目录;`ov health` 返回 `service initialized` 与当前用户名,即表示接入成功。@@ -106,5 +106,3 @@|连接失败 / 网络超时<br>|确认网络可访问 `api\.vikingdb\.cn\-beijing\.volces\.com`;企业网络请配置代理白名单||Agent 无法识别工具|检查 MCP Server 是否已\&\#34;启用\&\#34;;部分客户端需重启进程后加载新配置|--