
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.
概览
本地 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 地址。
安装
在 SourceWeft 中
- 打开 控制台中的 Formhaus,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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:
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:
Claude Desktop (claude_desktop_config.json) and Cursor (.cursor/mcp.json):
Tools
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:
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版本历史
14- v0.6.3最新Oct 18, 2026
- v0.6.2Oct 18, 2026
- v0.6.1Oct 16, 2026
- v0.5.2Oct 16, 2026
- v0.5.0Oct 15, 2026
- v0.4.2Oct 15, 2026
- v0.4.0Oct 15, 2026
- v0.3.4Oct 14, 2026
- v0.3.3Oct 14, 2026
- v0.3.2Oct 14, 2026
- v0.3.1Oct 12, 2026
- v0.2.1Oct 11, 2026
- v0.2.0Oct 11, 2026
- v0.1.2Oct 9, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分