Hapti

dev.hapti由 hapti.dev 发布官方发布者v1.0.2更新于 Nov 22, 2026

Do tasks on websites that have no API: a browser agent that works by sight, paid only on success.

已验证Streamable HTTP可网页运行效率与工作流浏览器自动化

概览

AI 生成的概览

远程 MCP 服务器,运行浏览器智能体在没有 API 的网站上完成任务,并附上每一步的凭证返回结果。

可以做什么
  • 启动、查看、回答、批准和取消在指定网站上执行目标的浏览器任务
  • 预估任务费用并查询账户余额
  • 列出已保存的模板、配方和历史任务
  • 按任务中提供的 JSON Schema 返回结构化结果
适用场景
适用于必须在没有 API、或 API 无法覆盖该工作的网站上完成的事情,例如预约、提交表单、从客户区下载发票或证明、在政务门户查询办理状态。若存在合适的 API,应优先使用 API。
运行要求
通过 streamable HTTP 连接 api.hapti.dev/mcp 远程端点。必须认证:使用 OAuth,或在 Authorization 请求头中提供 Bearer API 密钥。可获取免费测试密钥;无需本地运行时或安装包。
安装前请注意
智能体会代表用户在真实网站上操作,包括提交表单、申报理赔、取消合同,并可能暂停以询问验证码等缺失信息。任务按成功计费,实际使用会产生费用。登录信息存放在模型看不到的保险库中,但 Authorization 请求头中的 API 密钥属于机密。每一步骤和截图会保留 90 天。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Hapti,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/dev.hapti%2Fhapti/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "hapti": {
      "type": "http",
      "url": "https://api.hapti.dev/mcp"
    }
  }
}

README

Hapti

Hapti does tasks on websites that have no API. You send a website and a goal in plain words. An agent opens a real browser, looks at the screen, clicks and types like a person, and sends back the result with every step as proof. You pay only when a task succeeds, and test mode is free.

Documentation · Quickstart · API reference · For AI agents · llms.txt · OpenAPI

When to use Hapti

Use Hapti when a job has to be done on a website and that website has no API, or an API that does not cover the job:

  • book an appointment on a booking site, a town hall or a clinic;
  • fill in and submit an online form, up to the confirmation page;
  • download invoices, statements or certificates from a customer area;
  • declare a claim, cancel a contract, update contact details;
  • check the status of a file on an administration portal.

When a proper API exists for the job, use that API instead.

Install

bash
npm install hapti-sdk     # JavaScript and TypeScriptpip install hapti         # Python

Run a task

js
import Hapti from 'hapti-sdk';
const hapti = new Hapti(process.env.HAPTI_API_KEY);const task = await hapti.tasks.run(  {    url: 'https://portal.example.com/claims',    goal: 'Declare the water damage claim and give me the claim number.',    data: { contract: 'AX-4471', date: '2026-11-20' },    user: 'customer_42',    output: { type: 'object', properties: { claim_number: { type: 'string' } }, required: ['claim_number'] },  },  { onWaiting: (pending) => askTheCustomer(pending.text) },);console.log(task.result.data.claim_number);
python
from hapti import Hapti
hapti = Hapti()  # reads HAPTI_API_KEYtask = hapti.tasks.run(    {"url": "https://portal.example.com/claims",     "goal": "Declare the water damage claim and give me the claim number.",     "data": {"contract": "AX-4471", "date": "2026-11-20"},     "user": "customer_42"},    on_waiting=lambda pending, task: ask_the_customer(pending["text"]),)print(task["result"]["answer"])

The agent never invents a value. When something is missing, such as a code received by text message, the task waits with a question that you or the person answer. Get a free test key at app.hapti.dev.

Use it from an AI agent (MCP)

Hapti is a remote MCP server at https://api.hapti.dev/mcp, listed in the official MCP registry as dev.hapti/hapti.

[Add to Cursor] [Install in VS Code]

Replace hp_test_YOUR_KEY with your key once the editor opens, or create a key in the console and use its install buttons, which fill it in for you.

bash
claude mcp add --transport http hapti https://api.hapti.dev/mcp \  --header "Authorization: Bearer hp_test_..."
json
{  "mcpServers": {    "hapti": {      "url": "https://api.hapti.dev/mcp",      "headers": { "Authorization": "Bearer hp_test_..." }    }  }}

Tools: start_task, get_task, answer_task, approve_task, cancel_task, estimate_task, list_templates, list_tasks, list_recipes, get_balance. See Build with AI agents.

What you get

  • People, not sessions: tasks for the same user share one device, one session, one memory, an email inbox and a vault of sign-in details the model never sees.
  • Structured results: give a JSON Schema in output and the result follows it, or the task is not billed.
  • Built for production: idempotency keys, a dated API version, signed webhooks retried for three days, live streaming with Server-Sent Events, cursor pagination and request logs.
  • Proof: every step and screenshot, kept 90 days.

This repository

FolderWhat it holds
js/The JavaScript and TypeScript library, published as hapti-sdk
python/The Python library, published as hapti
examples/Small programs: a first task, a webhook receiver
server.jsonThe MCP registry entry

License

MIT

来源:README.md,提交 cb715a1

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v1.0.2最新Nov 22, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分