HugeGraph 回归测试
hugegraph-regression-tester
将 HugeGraph MCP 回归测试任务路由至当前公共工具集,包括检查、只读查询、Gremlin 生成、提取、受控导入、schema 验证/预演、安全守卫及管理员门控工具检查。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-12
- Stars
- ★ 147
- Forks
- 97
01 前言 Front Matter
- name
- hugegraph-regression-tester
- description
- Route HugeGraph MCP regression testing tasks to the current public tool surface, including inspection, read-only queries, Gremlin generation, extraction, controlled import, schema validate/dry-run, safety guards, and admin-gated tool checks.
02 资源文件 1
- 参考文档agents/openai.yaml1023 B
03 SKILL.md 正文
HugeGraph Regression Tester
Tool Routes
| Test goal | Tool |
|---|---|
| MCP, graph status, or schema | inspect_graph_tool(include_raw_schema=false) and when needed inspect_graph_tool(include_raw_schema=true) |
| Structured read | query_graph_data_tool (bounded page or exact ID query) |
| Natural-language Gremlin generation | generate_gremlin_tool(query, execute=false) |
| Generate Gremlin without execution | generate_gremlin_tool(query, execute=false); raw execution must return FEATURE_DISABLED |
| Raw Gremlin disabled boundary | execute_gremlin_read_tool(unsafe_write_query); rejection verifies unconditional disablement, not write classification |
| Text-to-graph extraction | extract_graph_data_tool(text, graph_schema?, example_prompt?) |
| Import dry-run | import_graph_data_tool(mode="ingest", graph_data, dry_run=true) |
| Import preview boundary | Assert confirmable=false, preview_only=true, no plan_id; confirmation returns FEATURE_DISABLED |
| Verify existing graph data | query_graph_data_tool |
| Schema design | design_schema_tool(operations?) |
| Schema validation | apply_schema_tool(mode="validate", operations) |
| Schema dry-run | apply_schema_tool(mode="dry_run", operations) |
| Raw write Gremlin disabled boundary | execute_gremlin_write_tool(gremlin_query); must remain disabled even in admin mode |
| Admin gate check without a write | refresh_vid_embeddings_tool(confirm=false) in separate admin-disabled and admin-enabled processes |
Order
inspect -> generate/read -> extract -> import dry-run -> assert preview-only boundary
-> verify read -> schema validate/dry-run -> safety/gate checks
Structured query and plan lifecycle tools require the default core toolset. For a legacy deployment, enable HUGEGRAPH_MCP_TOOLSET=core and restart before using them.
With HUGEGRAPH_MCP_READONLY=false, the admin-disabled refresh call must return
FEATURE_DISABLED with details requiring HUGEGRAPH_MCP_ADMIN_MODE=true; the
admin-enabled call must return CONFIRM_REQUIRED. Keep confirm=false in both
processes to avoid a refresh. Restart between configuration changes. These calls
do not verify AI-side authentication or target validation. Validate the write
classifier independently with unit tests; raw Gremlin rejection cannot exercise it.
For the refresh contract, run the API/MCP regression tests covering default
GraphSpace equivalence, required fields and write/auth gates on
POST /v1/vid-embeddings/refresh, configuration locking, and mixed-version routing.
The capability GET is only discovery; MCP must never fall back to the legacy POST
when the versioned route is unavailable. This does not verify physical-instance
identity or establish a live rolling-deployment test.
Generation and extraction require HUGEGRAPH_MCP_ALLOW_AI=true and a configured AI service.
These skills describe the current release with core / legacy; the previous 1.7.1 release uses v2_core / v1.
04 同仓库更多 Skills
HugeGraph Schema 设计与验证
hugegraph-schema-designer
将 HugeGraph MCP 的 schema 设计、验证及预演预览任务路由至稳定的公共工具。当用户要求设计顶点标签、边标签、属性、主键、索引,或预览 schema 操作时使用。
HugeGraph 图查询分析
hugegraph-query-analyst
将 HugeGraph MCP 结构化图查询任务路由至稳定的只读工具。当用户提出图相关问题、要求生成 Gremlin、提供 Gremlin 要求解释,或需要只读图探索时使用。
HugeGraph MCP 运维检查
hugegraph-operator
将 HugeGraph MCP 运维检查请求路由至状态、schema、MCP 只读状态、AI 可用性及只读验证工具。当用户要求检查当前图、schema、MCP 连接、只读状态、HugeGraph-AI 状态、计数、索引或就绪情况时使用。
HugeGraph 图数据导入
hugegraph-data-importer
将 HugeGraph MCP 图数据提取以及受控的导入/删除任务路由到稳定的公共工具。当用户要求从文本中提取图数据、导入结构化的顶点或边、验证导入结果,或询问是否支持表、SQL、更新或删除等图写入操作时使用。