配置一次 Notion Integration Token,Agent 即可搜索、读取、查询、创建、更新、追加 Notion 页面与数据库内容,并提供 Web 设置页。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-notion-connector
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:zhengjy01/dsh-notion-connector
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
English | 中文
DeepSeek Harness 的 Notion 连接插件。配置一次 Integration Token 后,agent 与 Web GUI 设置页都可以操作你的 Notion 工作区。
功能
- Agent 工具(配置后自动可用):
notion_search— 搜索页面/数据库notion_read_page— 读取页面标题、属性、内容块(嵌套递归,最多 200 块)notion_query_database— 查询数据库条目(filter / sorts / 翻页)notion_create_page— 创建页面(页面或数据库下)notion_update_page— 更新属性 / 归档notion_append_blocks— 追加内容块
- Web 设置页:设置 → Notion — 连接状态、Token 粘贴(保存时自动校验并读取工作区名)、清除配置、三步指引
- 存储:Token 存
~/.dsh/notion.json(权限 0600);通过 loopback-only 的/api/dsh-notion-connector/*与浏览器半交互;API 调用走 Node 原生 fetch,无 shell 依赖
安装
dsh plugin --profile web add github:zhengjy01/dsh-notion-connector
重启 dsh web 后生效。
使用
- 打开 https://www.notion.so/my-integrations 创建内部集成,复制
secret_开头的 Internal Integration Secret - 在 Notion 中把要访问的页面/数据库 Share 给该集成
- GUI 设置 → Notion 粘贴并保存
- 之后对 agent 说「搜索 Notion 里的 XX」「把这段内容存进 Notion」即可
开发
pnpm install # esbuild / typescript / 类型依赖
pnpm build # esbuild: lib/index.js (host) + lib/client.js (browser)
pnpm typecheck # tsc --noEmit
pnpm install:local # 本地开发快速安装(复制到 ~/.dsh/profiles/node_modules/dsh-notion-connector)
限制
- 页面/数据库必须分享给该 Integration 才能访问
- Token 以明文保存在用户主目录私有文件(权限 0600)
- 插件是第三方代码:安装前请审阅源码,只在信任的来源使用
License
MIT
链接
同类插件
vectorize-io/hindsight#coding-agents★ 42988
Hindsight:会学习的 Agent 长期记忆系统,自动召回/保存、知识页、深度反思与按仓库隔离的记忆银行。
volcengine/OpenViking#examples/dsh-memory-plugin★ 38990
面向 DeepSeek Harness 的 OpenViking 记忆与上下文插件:pre-step 自动召回与画像注入、会话捕获、`viking://` URI 防护,以及对接 OpenViking 服务端的 recall/write 记忆工具。
agentscope-ai/ReMe#dsh★ 3534
将 DeepSeek Harness 接入 ReMe 本地优先、自进化的个人知识库:自动把已完成的主 Agent 对话沉淀为用户掌控的 Markdown 记忆,通过 reme_search 结合 BM25、可选向量检索和 wikilink 展开搜索对话与资料,并按日整理长期记忆。
zilliztech/memsearch#MemSearch★ 2682
供 DSH 与其他编程 Agent 共享的 Markdown 记忆,支持自动捕获、步骤前上下文注入、搜索召回,以及通过审阅面板实现 memory-to-skill 自进化。
vshulcz/deja-vu#extensions/dsh★ 1093
读取本机上其他三十三个编程智能体已经写下的会话文件——Claude Code、Codex、Cursor、VS Code Copilot Chat、opencode、OpenClaw、Hermes、Kimi、Cline、Zed 等,包括安装之前的历史:提供 deja_recall、deja_session、deja_blame、deja_fix、deja_how、deja_remember 六个工具与 /deja 命令,并可选地把召回结果加入运行时上下文。本地 BM25 索引,不用大模型,不用向量嵌入,不联网(dsh plugin --profile web add dsh-deja)。
adoresever/graph-memory★ 633
DeepSeek Harness 的可追溯、可检索跨会话记忆:把对话知识沉淀为带类型的图节点(任务/技能/事件)与关系边。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。