xiajingchun/dsh-nebulagraph-v5 预览 preview

xiajingchun/dsh-nebulagraph-v5

用于DeepSeek工具集的nebula v5插件

Project Overview项目介绍

dsh-nebulagraph-v5 is a native DeepSeek Harness plugin that connects directly to a NebulaGraph v5 graph database server and executes ISO-GQL statements, matching the core functionality of the official ngql console. It implements the full native NebulaGraph v5 wire protocol using pure JavaScript, so no native binary modules or external API gateways are required to use it. The plugin exposes four dedicated tools for the agent to use: connecting to the server, running GQL statements, introspecting the database schema, and disconnecting from an open session.

You can preconfigure multiple named connection profiles in the DeepSeek Harness settings page. Each profile stores connection parameters like host, port, username, password reference, and TLS policy, so the agent only needs to call the connect tool with the profile alias to initiate a connection. If you don’t want to use preconfigured profiles, you can pass all connection parameters per-call, and explicit per-call parameters always override any values set in the named profile. Passwords are never exposed to the model; they are resolved from environment variables or the DSH credential system using a password reference.

This plugin is packaged as a plain ESM module, and only has three runtime dependencies: @grpc/grpc-js, @grpc/proto-loader, and schemastery. It supports full TLS configuration, including custom CA certificates, mutual TLS client certificates, and configurable TLS modes that can auto-detect TLS support, force TLS on, or force plaintext connections. The plugin is released under the open-source MIT license, and contributors can build it from source using pnpm for dependency installation, type checking, and building the output bundle.

这是一个专为DeepSeek Harness打造的原生插件,用于连接NebulaGraph v5图数据库服务并执行ISO-GQL语句,功能对标NebulaGraph自带的ngql控制台。它使用纯JavaScript实现了NebulaGraph v5原生gRPC协议,无需原生模块或外部网关,支持连接管理、查询执行、schema内省等核心功能。插件提供了四个工具命令,分别对应连接、执行GQL、获取schema、断开连接。

用户可以预先在DSH设置页面配置多个命名连接实例,每个实例保存主机、端口、用户名、凭据引用和TLS策略,使用时只需指定实例别名即可完成连接。也可以不配置预设,每次执行查询时通过参数指定连接信息,参数优先级高于预设配置。密码不会明文传递,只会通过环境变量或DSH凭据系统引用解析,保障凭据安全。

该插件是纯ESM模块,运行依赖仅为@grpc/grpc-js、@grpc/proto-loader和schemastery,支持TLS连接,可配置CA、客户端证书,支持自动回退到明文连接,开启TLS强制后连接不支持TLS的服务会直接失败。插件使用MIT许可证开源,开发者可通过pnpm安装依赖、做类型检查、编译构建。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-nebula

把 xiajingchun/dsh-nebulagraph-v5 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-nebula

A DeepSeek Harness plugin that connects to a NebulaGraph v5 server and executes ISO-GQL statements, in the spirit of the ngql console.

The plugin speaks the native NebulaGraph v5 wire protocol (gRPC + nebula.proto.graph.GraphService) with a pure-JS client — no native modules, no external gateway. Results come back as structured JSON rows plus an ngql-style ASCII table render.

Features

  • Connect / authenticate against a graphd (nebula_connect), execute GQL on the same server-side session (nebula_execute), and close it (nebula_disconnect).
  • Named instance profiles (Settings → NebulaGraph): manage any number of connection presets in the DSH settings page — each with its own host/port/user/passwordRef/TLS policy — addressed by a short alias. The model then just says "connect to the prod Nebula" and calls nebula_connect(instance: "prod"); the profile supplies the parameters. An instance can be marked as the default, used when no alias is given. Per-call tool arguments still override the profile.
  • Decodes the columnar VectorResultTable payload exactly like the official nebula-go v5 client: scalars, strings, temporal values, lists, sets, maps, records, vertices, edges, paths, embedding vectors, geography, Any-typed columns, const vectors, and null bitmaps.
  • Schema exploration (nebula_schema): one call runs SHOW GRAPHS, resolves the target graph (explicit graph= argument, the session working graph from SESSION SET graph, or the sole graph), then DESC GRAPH TYPE and returns the graph type's node types and edge types — labels, primary/multiedge keys, and properties. Read-only: the session working graph is never changed.
  • Interactive graph rendering (Web Client): when a nebula_execute result contains nodes, edges, or paths, the result is projected into a replayable graph payload and the bundled Web Client plugin renders it as an interactive AntV G6 graph (drag / zoom / hover), alongside the normal table output.
  • Bundles the gql-query-generator skill: the plugin registers a ctx.skills provider so the agent's skill tool can load NebulaGraph GQL-writing guidance (reference docs ship in gql-query-generator/references/ and resolve against the packaged directory).
  • Plugin config supplies default connection parameters; every tool argument can override them per call.
  • Password never travels through the model: nebula_connect takes a passwordRef (a credential reference / environment variable name), not the password value. The value is resolved per connection through the DSH credentials seam (ctx.credentials, falling back to the process environment) and cleared from memory right after authentication. Tool arguments, output, and the registry never carry the plaintext.
  • TLS by default, plaintext fallback available: connections try TLS first (tls: "auto", the default) and fall back to plaintext only when the server has no TLS listener — the fallback is reported to the caller as a warning. Set tls: "on" to require TLS (fails if the server does not speak it) or tls: "off" to force plaintext. CA / client certificate / key / server name overrides are configurable for private CAs and mutual TLS.
  • Unloading the plugin closes every open session (effect-based cleanup).

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-yolo-mode 下一个 Next dsh-waimao →