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.

已驗證STDIO僅桌面效率與工作流知識與記憶

概覽

AI 產生的概覽

把 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 匯出檔。
安裝前請注意
無介面模式需要把帳號密碼存放在 HEURESIS_PASSWORD,應視為機密;若環境變數對他人可見,請優先使用專用帳號。伺服器會寫入雲端工作區:21 個工具可建立、更新、封存或刪除概念、想法與專案,每次寫入都會以 origin 'mcp' 記錄。憑證保存在本機 ~/.heuresis/credentials.json;裝置遺失時請在網頁版撤銷。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Heuresis,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

bash
npm install -g @heuresis/mcp# or on demand without installing:npx -y @heuresis/mcp

Package name vs. command name. The npm package is @heuresis/mcp; the command it installs is heuresis-mcp. A bare npx -y @heuresis/mcp (no subcommand) starts the MCP server fine, but npx @heuresis/mcp login can fail with heuresis-mcp: not found because 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:

bash
npx -y -p @heuresis/mcp heuresis-mcp login

Quickstart

1. Link this machine to your Heuresis account

bash
npx -y -p @heuresis/mcp heuresis-mcp login

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:

json
{  "mcpServers": {    "heuresis": { "command": "npx", "args": ["-y", "@heuresis/mcp"] }  }}

Claude Code / Cursor / Windsurf. Drop a .mcp.json in the workspace root:

json
{  "mcpServers": {    "heuresis": { "command": "npx", "args": ["-y", "@heuresis/mcp"] }  }}

Restart the client. The Heuresis tools appear in the tool menu.

3. CLI subcommands

bash
npx -y -p @heuresis/mcp heuresis-mcp whoami   # show the linked account + devicenpx -y -p @heuresis/mcp heuresis-mcp logout   # delete the credentials filenpx -y -p @heuresis/mcp heuresis-mcp --help   # all optionsnpx -y @heuresis/mcp --no-realtime            # boot the server with live sync off (persisted)npx -y @heuresis/mcp --realtime               # re-enable live sync

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:

bash
[email protected]          # your Heuresis account emailHEURESIS_PASSWORD=your-account-password # secret — store it in a secrets managerHEURESIS_ANON_KEY=sb_publishable_...    # project anon/publishable key (public, not a secret)# optional: HEURESIS_SUPABASE_URL=...   # defaults to the production project

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_PASSWORD as 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).

bash
export HEURESIS_SNAPSHOT="/absolute/path/to/your-export.json"npx @heuresis/mcp

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.0-rc.9最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分