Hashgrid DNA

A search engine that learns from feedback, over embeddings: one tool per API route.

我该使用它吗

质量与安全性

A
描述质量
97%
模式完整度
72%
命名质量
98%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~1,641token 数(工具定义)
~885 B典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 1.28%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "dna": {
      "url": "https://dna.hashgrid.ai/mcp"
    }
  }
}

远程端点

https://dna.hashgrid.ai/mcpstreamable-http

它能做什么

工具清单

工具(12)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢get_grid

GET /: the grid the API key opens, by name.

输入模式

{
  "type": "object",
  "properties": {},
  "title": "get_gridArguments"
}

输出模式

{
  "type": "object",
  "additionalProperties": true,
  "title": "get_gridDictOutput"
}
🟢list_nodes(cursor, limit)

GET /nodes: the grid's nodes, each with its id, key and emb, in id order. `limit` is 1 to 1024; for the next page, pass the last id as `cursor`.

输入模式

{
  "type": "object",
  "properties": {
    "cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Cursor"
    },
    "limit": {
      "default": 32,
      "title": "Limit",
      "type": "integer"
    }
  },
  "title": "list_nodesArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "title": "Result",
      "type": "array"
    }
  },
  "required": [
    "result"
  ],
  "title": "list_nodesOutput"
}
🟢get_node(nid)

GET /nodes/{nid}: a node, with its key (null if it has none) and its embedding `emb`.

输入模式

{
  "type": "object",
  "properties": {
    "nid": {
      "title": "Nid",
      "type": "string"
    }
  },
  "required": [
    "nid"
  ],
  "title": "get_nodeArguments"
}

输出模式

{
  "type": "object",
  "additionalProperties": true,
  "title": "get_nodeDictOutput"
}
🟡create_node(emb, key)

POST /nodes: add a node. An item gets a `key`, a path unique in the grid (e.g. "/items/42"), so searches can find it; a query gets none. `emb` is its embedding, 1 to 2048 floats from any model; use one model per grid. Returns its id and key (not its emb, to keep replies short; get_node has it).

输入模式

{
  "type": "object",
  "properties": {
    "emb": {
      "items": {
        "type": "number"
      },
      "title": "Emb",
      "type": "array"
    },
    "key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Key"
    }
  },
  "required": [
    "emb"
  ],
  "title": "create_nodeArguments"
}

输出模式

{
  "type": "object",
  "additionalProperties": true,
  "title": "create_nodeDictOutput"
}
🔴update_node(nid, key, emb)

PATCH /nodes/{nid}: change a node. `key`: a new path, or null to remove it, so the node can no longer be found; leave it out to keep it. `emb`: a new embedding; leave it out to keep it. Its scores keep training, on the new embedding. Returns its id and key.

输入模式

{
  "type": "object",
  "properties": {
    "nid": {
      "title": "Nid",
      "type": "string"
    },
    "key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": "",
      "title": "Key"
    },
    "emb": {
      "anyOf": [
        {
          "items": {
            "type": "number"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Emb"
    }
  },
  "required": [
    "nid"
  ],
  "title": "update_nodeArguments"
}

输出模式

{
  "type": "object",
  "additionalProperties": true,
  "title": "update_nodeDictOutput"
}
🔴delete_node(nid)

DELETE /nodes/{nid}: delete a node and every edge from or to it; its scores no longer train.

输入模式

{
  "type": "object",
  "properties": {
    "nid": {
      "title": "Nid",
      "type": "string"
    }
  },
  "required": [
    "nid"
  ],
  "title": "delete_nodeArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "delete_nodeOutput"
}
🟢list_edges(nid, cursor, limit)

GET /nodes/{nid}/edges: a query's results so far, each an edge with the found node's `id` and its `score` (null if not scored), in id order. `limit` is 1 to 1024; for the next page, pass the last id as `cursor`.

输入模式

{
  "type": "object",
  "properties": {
    "nid": {
      "title": "Nid",
      "type": "string"
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Cursor"
    },
    "limit": {
      "default": 32,
      "title": "Limit",
      "type": "integer"
    }
  },
  "required": [
    "nid"
  ],
  "title": "list_edgesArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "title": "Result",
      "type": "array"
    }
  },
  "required": [
    "result"
  ],
  "title": "list_edgesOutput"
}
🟢get_edge(nid, eid)

GET /nodes/{nid}/edges/{eid}: one result of query `nid`, and its score (null if not scored).

输入模式

{
  "type": "object",
  "properties": {
    "nid": {
      "title": "Nid",
      "type": "string"
    },
    "eid": {
      "title": "Eid",
      "type": "string"
    }
  },
  "required": [
    "nid",
    "eid"
  ],
  "title": "get_edgeArguments"
}

输出模式

{
  "type": "object",
  "additionalProperties": true,
  "title": "get_edgeDictOutput"
}
🟡create_edge(nid, prefix)

POST /nodes/{nid}/edges, the search: from query node `nid`, the best node it has not been shown yet, among those whose key starts with `prefix` ("" for any), stored as a new edge: `id` is the found node's id, `score` is null until you score it (update_edge). Null when nothing is left. Call again for the next.

输入模式

{
  "type": "object",
  "properties": {
    "nid": {
      "title": "Nid",
      "type": "string"
    },
    "prefix": {
      "default": "",
      "title": "Prefix",
      "type": "string"
    }
  },
  "required": [
    "nid"
  ],
  "title": "create_edgeArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Result"
    }
  },
  "required": [
    "result"
  ],
  "title": "create_edgeOutput"
}
🟡put_edge(nid, eid, score)

PUT /nodes/{nid}/edges/{eid}: score how well node `eid` fits query `nid`, from -1 (wrong) to 1 (perfect), creating the edge if DNA never suggested it, e.g. scores you already have. Only scores train DNA; a new score replaces the last.

输入模式

{
  "type": "object",
  "properties": {
    "nid": {
      "title": "Nid",
      "type": "string"
    },
    "eid": {
      "title": "Eid",
      "type": "string"
    },
    "score": {
      "title": "Score",
      "type": "number"
    }
  },
  "required": [
    "nid",
    "eid",
    "score"
  ],
  "title": "put_edgeArguments"
}

输出模式

{
  "type": "object",
  "additionalProperties": true,
  "title": "put_edgeDictOutput"
}
🟡update_edge(nid, eid, score)

PATCH /nodes/{nid}/edges/{eid}: score a result of query `nid` that create_edge returned, from -1 (wrong) to 1 (perfect). Only scores train DNA; a new score replaces the last.

输入模式

{
  "type": "object",
  "properties": {
    "nid": {
      "title": "Nid",
      "type": "string"
    },
    "eid": {
      "title": "Eid",
      "type": "string"
    },
    "score": {
      "title": "Score",
      "type": "number"
    }
  },
  "required": [
    "nid",
    "eid",
    "score"
  ],
  "title": "update_edgeArguments"
}

输出模式

{
  "type": "object",
  "additionalProperties": true,
  "title": "update_edgeDictOutput"
}
🔴delete_edge(nid, eid)

DELETE /nodes/{nid}/edges/{eid}: forget a result, so it can be suggested again; its score no longer trains.

输入模式

{
  "type": "object",
  "properties": {
    "nid": {
      "title": "Nid",
      "type": "string"
    },
    "eid": {
      "title": "Eid",
      "type": "string"
    }
  },
  "required": [
    "nid",
    "eid"
  ],
  "title": "delete_edgeArguments"
}

输出模式

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "delete_edgeOutput"
}

社区

评价此服务器

证据

最近观测

已验证未记录版本12 个工具