
Heuresis
io.github.ToremLabs由 GitHub 账号 ToremLabs 发布v1.0.0-rc.9更新于 Oct 24, 2026
Read & write your Heuresis idea graph and run TRIZ/C-K/ASIT operators from your AI assistant.
概览
把 AI 助手连接到 Heuresis 创意图谱,可读取、搜索和编辑概念、连线、想法与项目,并运行构思算子。
- 可以做什么
- 读取工作区:摘要、项目、项目图谱、概念、连线、子树、近期决策,以及概念搜索与查询
- 写入概念:新增、更新、批量新增、设置父级、校验、设置立场、归档、取消归档、加星、删除
- 管理连线、想法与项目:连接概念、添加 kref、创建/重命名/改色/删除想法、设置想法成员、创建/更新/删除项目
- 运行构思算子(Branch、Matrix、ASIT、TRIZ、Combine、Free、Contradiction),可选择直接提交结果,并递归展开概念
- 在工作区数据行变化时接收实时同步通知(可关闭)
- 适用场景
- 当你的思考或产品工作保存在 Heuresis 工作区,并希望助手浏览、更新该工作区,或生成并提交新的创意候选而无需切换到网页端时适用。
- 运行要求
- 通过 npm 包 @heuresis/mcp 在本地运行(需要 Node.js 与 npx)。需要 Heuresis 账号:可用 heuresis-mcp login 设备配对,凭据写入 ~/.heuresis/credentials.json;或在无头环境用 HEURESIS_EMAIL、HEURESIS_PASSWORD、HEURESIS_ANON_KEY(可选 HEURESIS_SUPABASE_URL)登录。需要访问 Heuresis 的 Supabase 后端网络。已弃用的只读模式使用 HEURESIS_SNAPSHOT 指向 JSON 导出文件。
安装
在 SourceWeft 中
- 打开 控制台中的 Heuresis,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@heuresis/mcp
A Model Context Protocol (MCP) server that exposes a Heuresis workspace to any MCP-capable client (Claude Desktop, Claude Code, Cursor, Windsurf, custom agents). The server logs into the user's Heuresis account, talks to the same Supabase project the webapp talks to, and respects the same RLS. Webapp and MCP are two front-ends to one cloud workspace.
Current version: 1.0.0-rc.13.
Install
Package name vs. command name. The npm package is
@heuresis/mcp; the command it installs isheuresis-mcp. A barenpx -y @heuresis/mcp(no subcommand) starts the MCP server fine, butnpx @heuresis/mcp logincan fail withheuresis-mcp: not foundbecause npx derives the command name from the scope-stripped package name (mcp), which doesn't match. To run a subcommand reliably on every npm/OS, name the binary explicitly with-p:
Quickstart
1. Link this machine to your Heuresis account
The CLI prints a device code and a one-click URL of the form
https://heuresis.app/device?code=XXXX-XXXX. Open it in your browser,
sign in if you aren't already, and confirm the device. The CLI polls
in the background and writes credentials to
~/.heuresis/credentials.json (chmod 600 on POSIX) the moment you
confirm. Subsequent runs of the MCP are silent.
The login flow rides three Supabase Edge Functions:
mcp-device-init, mcp-device-grant, and mcp-device-poll.
To unlink a machine: npx -y -p @heuresis/mcp heuresis-mcp logout, or open
Settings ▸ Connected devices in the webapp to revoke remotely.
npx -y -p @heuresis/mcp heuresis-mcp whoami confirms which account a machine
is currently linked to.
2. Point your MCP client at it
Claude Desktop. Edit
~/Library/Application Support/Claude/claude_desktop_config.json on
macOS, or %APPDATA%/Claude/claude_desktop_config.json on Windows:
Claude Code / Cursor / Windsurf. Drop a .mcp.json in the
workspace root:
Restart the client. The Heuresis tools appear in the tool menu.
3. CLI subcommands
Headless mode (CI, cloud agents, disposable containers)
Device pairing writes a refresh token to disk. That works great on a personal machine, but it does not survive disposable/ephemeral environments (CI runners, cloud agent containers, "Claude Code on the web"): the filesystem is wiped between runs, and a Supabase refresh token is single-use under rotation — so a token baked into config dies after the first session.
For those environments, skip pairing and let the server sign in fresh on every boot from your account email + password (a password is not consumed on use, so it works forever with no re-pairing). Set three env vars:
When HEURESIS_EMAIL + HEURESIS_PASSWORD are present they take precedence
over any credentials.json, and the MCP server authenticates per boot — no
device link required. Requirements:
- Email + password sign-in must be enabled for the Supabase project, and the account must have a password set (passwordless / magic-link-only accounts need a password added first).
- Treat
HEURESIS_PASSWORDas a secret. Prefer a dedicated account if your environment can only expose env vars that are visible to its users.
Live sync
When the MCP boots in cloud mode it subscribes to the workspace over
Supabase Realtime and notifies the client whenever a nodes, edges,
projects, or ideas row changes. Edits made in the webapp show up
in the agent's view without a manual refresh, and writes from one
MCP-connected client reach any other connected client the same way.
Pass --no-realtime to disable the subscription (useful if the
chatter is noisy or the client logs every notification). The
preference is saved to ~/.heuresis/config.json so the flag only
needs to be passed once.
Tools
34 tools total: 31 data tools against the cloud workspace, plus 3 operator tools that drive the same ideation operators the webapp uses.
Reads (10). get_workspace_summary, list_projects,
get_project_graph, list_concepts, list_edges, get_subtree,
get_concept, search_concepts, find_concepts,
list_recent_decisions. Most agent sessions start with
get_workspace_summary or list_projects.
Writes (21). Concepts: add_concept, update_concept,
bulk_add_concepts, set_parent, validate_concept, set_standing,
archive_concept, unarchive_concept, star_concept,
remove_concept. Edges: link_concepts, add_kref. Ideas:
create_idea, rename_idea, recolor_idea, set_idea_members,
add_to_idea, delete_idea. Projects: create_project,
update_project, delete_project. Every write stamps a row in
public.provenance with origin='mcp' so the webapp's session log
shows which surface made the change.
Operator runs (3). run_operator (generate candidates with
Branch / Matrix / ASIT / TRIZ / Combine / Free / Contradiction),
run_operator_and_commit (same, plus commit the result in one
round-trip), and expand_concept (recursive Branch, capped at depth ×
breadth ≤ 60).
Tool input shapes mirror their counterparts in the webapp's
src/agent/tools.ts, so an agent that uses both surfaces sees a
uniform contract.
Wave-shipping: find_in_files (in-browser embedding search) is in the
webapp but not yet on the MCP.
Legacy snapshot mode (deprecated)
The original read-only snapshot reader still works as a fallback while
users migrate to cloud auth. With no ~/.heuresis/credentials.json
and the HEURESIS_SNAPSHOT env var set, the server reads a JSON
export from disk and exposes the original read-only tool set
(get_workspace_summary, list_projects, search_concepts,
get_concept, get_subtree, get_project_graph,
list_recent_decisions).
This path is deprecated and will be removed in a later release. It is here so existing setups keep working through the migration to cloud auth.
License
AGPL-3.0-or-later.
来源:README.md,提交 3ac8ac5
工具
0版本历史
1- v1.0.0-rc.9最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分