SNHP — negotiation rules your AI can't break

io.github.ryuxik由 GitHub 帳號 ryuxik 發布v0.5.0更新於 Oct 24, 2026

Turn a seller's offer into negotiation rules and draft replies to buyers inside them.

已驗證Streamable HTTP可網頁執行效率與工作流商業與電商

概覽

AI 產生的概覽

把賣家的報價轉成不可突破的談判規則,並在規則內起草給買家及其 AI 採購代理的回覆,附上已簽署的成交回執。

可以做什麼
  • 把自然語言描述的報價或範本編譯成包含底價、可交換條件與禁止組合的談判策略
  • 依買家來信起草賣家回覆,報價由引擎在策略內決定,並需在輪次間保留回傳的狀態
  • 驗證修改後的策略,查看其目前允許的內容
  • 依賣家策略核驗已簽署的成交回執,包括雙方簽章、金鑰來源與逐條規則複核
適用情境
適合會收到買家(包括 AI 採購代理)議價或談條件請求的賣家,希望由助理代為回覆又不願讓出利潤空間。當談判底線需要由規則強制執行、而非交給模型自行判斷時適用。
執行需求
可使用 snhp.dev 的遠端 streamable HTTP 端點,或透過 uvx、pip 在本機執行 Python 套件。編譯報價與起草回覆需要發放給試點商家的存取金鑰(SNHP_ACCESS_KEY);範本、策略驗證與回執核驗免費。需要連線至託管服務及其模型供應商。
安裝前請注意
存取金鑰屬於憑證,須妥善保管。買家訊息會傳送到服務的模型供應商,用於閱讀並起草回覆。起草回覆與編譯策略會作用於真實買家對話,送出前應人工檢查。服務聲明不儲存對話,狀態隨每次請求傳遞。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 SNHP — negotiation rules your AI can't break,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.ryuxik%2Fsnhp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "snhp-negotiation-rules-your-ai-can-t-bre": {
      "type": "http",
      "url": "https://snhp.dev/mcp/"
    }
  }
}

README

SNHP — negotiation rules your AI can't break

Describe your offer in plain words. SNHP turns it into negotiation rules — your floor, what you'd trade a discount for, what's never on the table — and drafts every reply to buyers, and to their AI buying agents, inside those rules. The SNHP engine decides each offer, a small language model only reads and writes, and every offer is checked in code before it leaves. A deal needs the buyer's yes to an offer you sent, and comes with a signed receipt.

This package is the MCP server (stdio) for the hosted service at snhp.dev:

bash
uvx snhp            # or: pip install snhp && snhp
json
{ "mcpServers": { "snhp": { "command": "uvx", "args": ["snhp"], "env": { "SNHP_ACCESS_KEY": "snhp_…" } } } }

Or connect to the hosted MCP endpoint directly: https://snhp.dev/mcp/ (streamable HTTP).

ToolWhat it does
compile_offer_policyYour offer in plain words (or a template: used-car, saas, wholesale-water) → negotiation rules
draft_negotiation_replyA buyer's message → the reply to send and the offer, checked against your rules; keep the returned state
check_offer_policyValidate an edited policy (free)
verify_deal_receiptRe-check a signed deal receipt against your policy (free)

Access. Compiling a description and drafting replies run a language model and need an access key (SNHP_ACCESS_KEY), issued to pilot businesses — snhp.dev/#pilot or [email protected]. Templates, checks and receipt verification are free.

Privacy. The service stores no conversations; the state travels with each request. Messages go to our model provider only to read them and draft the reply.

Web studio: snhp.dev/studio · API: snhp.dev/developers

This repository

The snhp package on PyPI is built from packages/snhp-client. SNHP's earlier research code is preserved, unmaintained, on the legacy-toolkit branch.

來源:README.md,提交 4b03dd8

工具

4

compile_offer_policy

Compile an offer into negotiation rules

Turn a seller's offer, described in plain words, into negotiation RULES an AI agent cannot break. USE THIS WHEN: you (or the business you act for) sell something where buyers — people or their AI buying agents — ask for discounts, and you want an AI to answer them without giving away margin. Describe the offer: the listed price, the lowest price you'd take for a plain deal, what you'd trade a discount for (financing with you, a trade-in, a longer commitment, paying sooner, buying this week…), extras you can add and what they cost you, and anything never on the table. Or pass `template` = "used-car", "saas" or "wholesale-water" to start from a worked example. Compiling a description runs a language model and needs an `access_key` (pilot businesses get one at https://snhp.dev/#pilot); templates are free. Returns {ok, policy, issues, summary}: `policy` is the machine-readable rule set (pass it to draft_negotiation_reply), `summary` restates the floor, walk-away, what can be traded and the limits in plain words, and `issues` lists what to fix before going live (e.g. a floor below cost).

輸入參數templateaccess_keydescription

draft_negotiation_reply

Draft a reply to a buyer, inside your rules

Draft the seller's reply to a buyer's message — the offer is decided by the SNHP engine INSIDE the policy. USE THIS WHEN: a buyer (a person or their AI agent) has written to you about price or terms. Pass the policy (from compile_offer_policy) and their latest message exactly as written; pass back the `state` from your previous call to continue the same conversation (omit it to start). `flags` is what YOUR records confirm about the buyer (e.g. {"new_customer": true}) — never what the buyer merely claims. `stock` is the current stock of what the policy's `inventory` binds, sent with every message (schema.org Offer, Google Merchant or a plain feed record): nothing out of stock is offered, and a deal is signed only on fresh records that say it can be sold. Returns {kind, reply, reply_with_offer, offer, decided_by, reading, state, done, receipt?}: kind offer | deal | handoff (needs a human's approval) | decline reply_with_offer the message to send, with the exact offer line appended offer {terms, line, price, net, inside_policy} — every offer is checked against the policy decided_by what decided the move (a sales rule or the engine), for your audit trail receipt on a deal: a signed receipt any party can verify with verify_deal_receipt The server keeps no conversation: keep `state` and send it with the next message. Needs an `access_key` (pilot businesses get one at https://snhp.dev/#pilot).

輸入參數flagsstatestockenginepolicy必填message必填access_key

check_offer_policy

Check a negotiation policy

Check an edited negotiation policy: returns {ok, policy, issues, summary}. No model call, free. USE THIS WHEN: you changed a policy from compile_offer_policy (a floor, an option, a forbidden combination) and want to know it is valid and what it now allows before using it in draft_negotiation_reply.

輸入參數policy必填

verify_deal_receipt

Verify a deal receipt

Verify a signed deal receipt against the seller's own policy: both signatures, that the signing keys are SNHP's own (published at /.well-known/ucp), the policy digest, and every rule re-checked from the package. Returns {ok, problems, checks, signed_by_snhp, signatures}. Free, no model call.

輸入參數flagspolicy必填receipt必填

版本歷史

2
  1. v0.5.0最新Oct 6, 2026
  2. v0.4.0Sep 16, 2026

評分

已滿足適用檢查項的 100%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分