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 分