Skip to content

docs: add bilingual HugeGraph MCP usage guides - #576

Open
imbajin wants to merge 2 commits into
apache:masterfrom
hugegraph:docs/mcp-guide-hugegraph-20261012
Open

imbajin wants to merge 2 commits into
apache:masterfrom
hugegraph:docs/mcp-guide-hugegraph-20261012

Conversation

@imbajin

@imbajin imbajin commented Nov 16, 2026

Copy link
Copy Markdown
Member

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.1 behavior from current-source core/legacy toolsets 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:master at 6181c87: 5 files, +461/-0. It carries no changes to the target repository's CI, theme, or site runtime.

Validation

  • Fresh warning-strict scripts/hugo.sh build passed on this target branch (Hugo Extended 0.165.0, Go 1.27.0, repository-pinned OINK 1.2.0).
  • Complete bash dist/validate-links.sh passed in an isolated Linux container using copies of the current content/assets and the unchanged validator with Windows CRLF normalized to LF.
  • Current tests/e2e/search-ranking.spec.js: 24 passed, against this target's fresh artifact in Edge Chromium.
  • English and Chinese pages at 1440 x 1000 and 390 x 844: page heading, overview-to-guide navigation, counterpart-language link, desktop sidebar, desktop MCP search/navigation, and no horizontal overflow passed.
  • git diff --check passed. Before/after images below were regenerated from this target's current base and topic builds.
  • Full Python 3.13 source suite was attempted on Windows: 255 tests, 9 failures, 39 errors, 1 skipped. It is not a passing source-suite run: observed blockers include symlink privileges, POSIX process/script assumptions, missing image tooling and path-separator assertions. Linux CI is still required; no source test was weakened or disabled.

Before / after

View Before After
EN desktop Before After
EN mobile Before After
CN desktop Before After
CN mobile 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.

Pengzna
Pengzna previously approved these changes Nov 21, 2026

@bitflicker64 bitflicker64 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 imbajin left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.1 behavior 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants