Introduction

The core capability of DeepSeek Harness is to extend the system through plugins. Building or integrating a knowledge graph is a common requirement, but it involves configuring database connections and query tools. This section introduces a Dream of the Red Chamber Character Relationship Graph plugin that converts graph data structures into MCP tools for model invocation.

What This Is

This is a DSH plugin named Dream of the Red Chamber Character Relationship Graph, maintained by xby-skill. It provides a set of interfaces for accessing the graph database of Dream of the Red Chamber character relationships, solving the problem of directly manipulating graph data structures in a conversational environment.

Core Features

The plugin provides the following tools:

  • set_xby_apikey: Sets an API key in the chat context. The key is persisted automatically and remains valid after process restart.
  • get_schema: Retrieves the schema information of the graph database, including node types, properties, and relationships among them.
  • execute_read_cypher: Executes read-only Cypher queries on the graph database through the MCP Tool interface.

Installation and Enablement

Install the plugin via the command line:

dsh plugin --profile web add github:xby_skill/xby-dream-of-red-chamber-relationship

After installation is complete, the plugin registers the corresponding MCP tools in the DSH process.

Typical Usage

You need to configure an API key before use.

  1. In the conversation, invoke the set_xby_apikey tool and pass in the API key obtained from the official Xiaobenyang website.
  2. Use get_schema to view the node and relationship structure of the graph and understand the data model.
  3. Use execute_read_cypher to execute specific query statements, such as finding a relationship path for a specific person.

Use Cases and Cautions

  • Prerequisites: You must register on the official Xiaobenyang website and obtain an API key, which is the required credential for connecting to the graph data.
  • Permissions and Security: The plugin runs with the permissions of the current DSH process. Before installation, it is recommended to check the source code and license.
  • License: This plugin follows the MIT License.

Conclusion

With this plugin, you can directly manipulate the graph database in DeepSeek Harness, making it easier to build agents based on structured knowledge. For more details and the source code, refer to GitHub.