Repository navigation
Conversation
…vironment inheritance
bitflicker64
left a comment
There was a problem hiding this comment.
Blocking: yes. Summary: master already carries these guides from #520 with later corrections, so this branch conflicts in all five files and its versions would revert them; the only new content is the credential-storage sentence from f74d3bdb. One added sentence also misstates the AI graphspace check.
| | Unset, or `v2_core` | 16 | Default toolset, including structured queries and persistent write-plan tools | | ||
| | `v1` | 10 | Compatibility toolset retaining earlier tool entry points | | ||
|
|
||
| Do not use `v2`; it is not a supported toolset name in this release. |
There was a problem hiding this comment.
Important: #520 merged this guide into master with later fixes, such as the 1.7.1 fallback-to-v1 rule, the HUGEGRAPH_GRAPHSPACE/HUGEGRAPH_GRAPH rows and the Python 3.12 note, so this branch conflicts in all five files and taking its side reverts them. Rebase on master and keep only the credential-storage sentence from f74d3bdb in both language pages.
| This does not prove both sides connect to the same physical server. The protocol applies to current source and the next release, | ||
| not the published `1.7.1` installation examples above. | ||
|
|
||
| For the default MCP target `DEFAULT/hugegraph`, explicitly configure AI `GRAPH_NAME=hugegraph` and `GRAPH_SPACE=DEFAULT`; an unset/null graphspace does not pass the exact target check. |
There was a problem hiding this comment.
Minor: _effective_graphspace in hugegraph-llm/src/hugegraph_llm/api/thin_api.py treats an unset AI GRAPH_SPACE as DEFAULT, so an unset graphspace passes the target check for DEFAULT/hugegraph, as the hugegraph-mcp README states. Drop the "unset/null graphspace does not pass" clause here and at line 198 of the CN page.
imbajin
left a comment
There was a problem hiding this comment.
Score: 6.5/10 · Confidence: high
Blocking: yes
Summary
The branch conflicts with the already merged guide; resolving in its favor would lose corrections. The default graphspace claim is also inaccurate.
Evidence
Compared current base and PR guide, GitHub mergeability, and AI target validation source. Existing inline comments cover both issues.
Validation notes
Source and discussion review only; no live MCP integration or site build was run.
There was a problem hiding this comment.
🟡 Changes recommended
The documentation inaccurately states that unset or null AI graphspace values fail validation, conflicting with the implementation’s accepted DEFAULT behavior in both language versions.
2 open issues
What changed in this PR
Adds bilingual HugeGraph-MCP usage documentation and integrates it into the HugeGraph-AI navigation. The guides cover pinned package installation, STDIO client setup, connection verification, tool capabilities, controlled writes, and optional AI integration.
Changes:
- Added English and Chinese HugeGraph-MCP usage guides.
- Documented published
1.7.1behavior separately from current-source toolset and AI refresh changes. - Added HugeGraph-MCP links to both language overview pages and the generated documentation navigation.
| File | Description |
|---|---|
| data/docs_nav.json | Adds the HugeGraph-MCP page to the English sidebar and route metadata. |
| content/en/docs/quickstart/hugegraph-ai/hugegraph-mcp.md | Adds the English MCP installation, configuration, capability, and troubleshooting guide. |
| content/en/docs/quickstart/hugegraph-ai/_index.md | Links the MCP guide from the English HugeGraph-AI overview. |
| content/cn/docs/quickstart/hugegraph-ai/hugegraph-mcp.md | Adds the Chinese MCP installation, configuration, capability, and troubleshooting guide. |
| content/cn/docs/quickstart/hugegraph-ai/_index.md | Links the MCP guide from the Chinese HugeGraph-AI overview. |
Review effort: Lite (adaptive)
| 再传入预期图名与 graphspace,由服务校验后刷新;缺少协议的旧服务会被拒绝。这不证明两侧连接同一台物理服务器。 | ||
| 此协议属于当前源码及下一次发行,不是上述已发布 `1.7.1` 安装示例的保证。 | ||
|
|
||
| 使用 MCP 默认目标 `DEFAULT/hugegraph` 时,AI 服务须明确设置 `GRAPH_NAME=hugegraph`、`GRAPH_SPACE=DEFAULT`;未设置或 null 的 graphspace 不通过严格目标校验。 |
| This does not prove both sides connect to the same physical server. The protocol applies to current source and the next release, | ||
| not the published `1.7.1` installation examples above. | ||
|
|
||
| For the default MCP target `DEFAULT/hugegraph`, explicitly configure AI `GRAPH_NAME=hugegraph` and `GRAPH_SPACE=DEFAULT`; an unset/null graphspace does not pass the exact target check. |

Purpose of the PR
Add English and Chinese HugeGraph-MCP usage guides and make them discoverable from the HugeGraph-AI overview and sidebar. Users can install the published package, configure a STDIO client, verify a connection, and understand the supported query/schema/write boundaries and optional AI prerequisites.
The guides distinguish published
hugegraph-mcp==1.7.1behavior from current-sourcecore/legacytoolsets and future aligned releases. They document separate graph/AI connection settings, authentication and write gates, refresh target checks, and why raw Gremlin and other registered operations can remain disabled.Paired implementation: hugegraph/hugegraph-ai#81. Coordinate the current-source guidance with that code PR; the published-package installation remains explicitly pinned.
This PR independently applies the same five documentation/navigation files to
hugegraph/hugegraph-doc:masterat6181c87: 5 files, +461/-0. It carries no changes to the target repository's CI, theme, or site runtime.Validation
scripts/hugo.sh buildpassed on this target branch (Hugo Extended 0.165.0, Go 1.27.0, repository-pinned OINK 1.2.0).bash dist/validate-links.shpassed in an isolated Linux container using copies of the current content/assets and the unchanged validator with Windows CRLF normalized to LF.tests/e2e/search-ranking.spec.js: 24 passed, against this target's fresh artifact in Edge Chromium.git diff --checkpassed. Before/after images below were regenerated from this target's current base and topic builds.Before / after
New guide screenshots and capture details are stored on a separate evidence branch.
Synchronized documentation PR: apache/hugegraph-doc#520, based independently on Apache master to keep both reviews scoped.
Source-suite baseline comparison: the unmodified target master also failed on the same Windows toolchain (255 tests, 9 failures, 38 errors, 1 skipped). The set of failing test identities is identical between base and topic; varying error totals include Windows temporary-directory cleanup/locked-file errors (
WinError 32/WinError 5). No new failing test identity was introduced by the five-file documentation patch. This comparison does not replace Linux CI.