Formhaus

io.github.ignsm由 GitHub 帳號 ignsm 發布v0.6.3更新於 Nov 1, 2026

Validate Formhaus form definitions and simulate multi-step paths against the real engine.

已驗證STDIO僅桌面效率與工作流開發者工具

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理驗證 Formhaus 表單定義、自動套用安全修正並模擬多步驟路徑,也可在 Formhaus Cloud 發布與管理表單。

可以做什麼
  • 驗證表單定義,回傳含 JSON 指標、提示與建議修補的問題清單
  • 自動套用安全修正並重新檢查剩餘問題
  • 以答案、next/back/skip 動作與 overlay 模擬多步驟路徑,輸出可見欄位、錯誤與送出值
  • 查詢引擎能力、產生翻譯 overlay 範本、讀取內建範例定義
  • 在 Formhaus Cloud 發布表單、列出表單、讀取送出資料、更新設定,以及檢視或揭露 webhook 資訊
適用情境
適合在開發或除錯 Formhaus 表單時,讓助理依真實引擎檢查定義、測試分支路徑,或在發布前準備翻譯。若希望助理透過 Formhaus Cloud 發布表單並查看送出資料,也可使用。
執行需求
透過 npx 以 stdio 在本機執行,需要 Node 22.12 或更新版本。驗證、修正、模擬、能力查詢、翻譯與範例皆可離線使用,不需帳號或金鑰。雲端工具需在伺服器自身環境設定 FORMHAUS_API_KEY(不讀取專案 .env);帳號金鑰可存取所有表單,代理金鑰僅限其建立的表單。可用 FORMHAUS_API_BASE 覆寫 API 位址。
安裝前請注意
雲端工具會將資料傳送至 api.formhaus.dev,publish_form 會建立線上表單。reveal_webhook_secret 會回傳完整 webhook 密鑰,標示為敏感且非唯讀,用戶端是否先詢問取決於其權限設定。update_form_settings 會變更線上表單設定。建議資料保留在自有後端,未經使用者同意不要發布。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@formhaus/mcp

[formhaus-dev/formhaus MCP server]

MCP server that lets AI agents check Formhaus form definitions against the real @formhaus/core engine. Runs over stdio. Requires Node 22.12 or later. The checks need no account or key.

validate_definition, fix_definition, simulate_path, translation_template, capabilities and example_definitions run offline. The other tools publish forms, read submissions and manage settings in Formhaus Cloud. If the app has its own backend, keep the data there and don't publish without the user's consent.

Setup

Claude Code plugin, with the Formhaus skills:

bash
claude plugin marketplace add formhaus-dev/formhausclaude plugin install formhaus@formhaus

Inside a Claude Code session, /plugin marketplace add formhaus-dev/formhaus and /plugin install formhaus@formhaus do the same after a confirmation prompt.

Claude Code, server only:

bash
claude mcp add formhaus -- npx -y @formhaus/mcp

Claude Desktop (claude_desktop_config.json) and Cursor (.cursor/mcp.json):

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

Tools

ToolInputOutput
validate_definitiondefinition (object or JSON string){ valid, issues }. Each issue has code, severity, a JSON pointer path, message, hint and, when a repair is known, fixes ({ title, safe, patch } with an RFC 6902 JSON Patch)
fix_definitiondefinition (object or JSON string){ definition, applied, valid, issues }: the definition with every safe fix applied, the fixes applied and the issues left
simulate_pathdefinition, answers, optional actions (next, back, skip) and overlayActive step path with visible fields, action trace, validation ({ valid, issues }), field errors, wouldSubmit, submitValues. Group item fields appear as paths such as participants.0.email
capabilitiesnoneField types, sections, repeatable groups, field props, validation rules, condition operators, step and route semantics, translation catalogs, keys and overlay addresses, adapters
translation_templatedefinition, lang, optional prefixoverlay skeleton with the source texts, suggested file name and slots with address, key, placeholders and hash
example_definitionsoptional idList of bundled examples, or one definition
publish_formdefinition, optional form_id, email, success_message, redirect_urlform_id, endpoint, hosted_url, embed_snippet, react_snippet, dashboard_url, warnings
list_formsnoneForms the API key reaches with status, version, submission count and endpoint
get_submissionsform_id, optional limit, cursorsubmissions and next_cursor
update_form_settingsform_id, optional webhook_url, notify_mode, success_message, redirect_url, statusform_id, status, success_message, redirect_url, notify_mode, webhook_url, masked webhook_secret
get_webhookform_idurl and the masked secret
reveal_webhook_secretform_idform_id and the full webhook_secret. Marked as a non-read-only, sensitive tool. Whether the client asks first depends on its permission settings

publish_form, list_forms, get_submissions, update_form_settings, get_webhook and reveal_webhook_secret call Formhaus Cloud at https://api.formhaus.dev. All but publish_form need FORMHAUS_API_KEY in the server environment, and publish_form uses it when set. An account key (fh_live_...) reaches every form and all six tools. An agent key (fh_agent_..., returned once by the first keyless publish_form) reaches only the forms it created, and update_form_settings, get_webhook and reveal_webhook_secret need an account key. The server reads FORMHAUS_API_KEY from its own environment, not from the project .env. Add it to the env of the formhaus server in your MCP client config (for example .mcp.json with ${FORMHAUS_API_KEY} and the value in your shell or a gitignored .env your client loads), then restart the server. FORMHAUS_API_BASE overrides the API URL. The server also sends short usage instructions to the client on connect.

simulate_path applies answers as initial values, with group answers as arrays of item objects, then presses the actions in order, or Next until the last step or the first blocking error. errors covers visited steps only. Custom validators, onStepValidate and lifecycle hooks are not run. The capabilities are also available as the formhaus://capabilities resource.

The tool handlers are exported for use without MCP:

ts
import { simulatePathTool, validateDefinitionTool } from '@formhaus/mcp';
const report = await validateDefinitionTool({ definition });const result = await simulatePathTool({ definition, answers: { kind: 'business' } });

See the MCP guide for example output. A remote MCP server for Formhaus Cloud is also available. npx formhaus sets up the server in the coding agents on your machine; see formhaus.

License

MIT

來源:packages/mcp/README.md,提交 cf472c1

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

14
  1. v0.6.3最新Oct 18, 2026
  2. v0.6.2Oct 18, 2026
  3. v0.6.1Oct 16, 2026
  4. v0.5.2Oct 16, 2026
  5. v0.5.0Oct 15, 2026
  6. v0.4.2Oct 15, 2026
  7. v0.4.0Oct 15, 2026
  8. v0.3.4Oct 14, 2026
  9. v0.3.3Oct 14, 2026
  10. v0.3.2Oct 14, 2026
  11. v0.3.1Oct 12, 2026
  12. v0.2.1Oct 11, 2026
  13. v0.2.0Oct 11, 2026
  14. v0.1.2Oct 9, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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