Zopaf

io.github.rjandino由 GitHub 账号 rjandino 发布v1.0.0更新于 Oct 24, 2026

Negotiation math engine. Pareto frontier, counteroffer generation, zero LLM tokens.

已验证Streamable HTTP可网页运行效率与工作流数据与分析商业与电商

概览

AI 生成的概览

谈判数学引擎,让助手对交易议题建模、生成帕累托最优还价方案,并推断对方优先级。

可以做什么
创建并查看谈判会话,添加议题与数值区间及评分刻度,记录偏好和 BATNA 备选方案以确定筹码与权重。生成三个等效用还价方案供同时提出。处理对方反应以推断其优先级,并给出改进后的第二轮报价。对照帕累托前沿为具体方案打分,显示已获价值与建议的交换。
适用场景
适合助手协助结构化谈判时使用,例如录用条件、投资条款清单、房地产、供应商合同或和解,需要一致且基于数学的套餐和考虑筹码的报价,而非临时估算。对话仍由助手负责,服务器只提供优化计算。
运行要求
需要远程 Streamable HTTP 端点;未声明本地软件包、账户、API 密钥或环境变量。客户端须支持 Streamable HTTP 传输,并需能通过网络访问该托管服务。
安装前请注意
你输入的谈判细节(议题、偏好、BATNA 备选方案、对方反应)会发送到第三方托管端点,请勿提交无法外传的机密交易条款。会话在该远程服务上创建和更新,且未声明任何身份验证,持有会话标识符的人可能访问同一状态。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Zopaf,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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

交给智能体安装

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

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

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

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "zopaf": {
      "type": "http",
      "url": "https://zopaf-mcp-production.up.railway.app/mcp"
    }
  }
}

README

Zopaf Negotiation Engine -- MCP Server

A negotiation math engine exposed as MCP tools that any AI agent can call. Zopaf computes Pareto frontiers, generates iso-utility counteroffers, and infers counterpart priorities from their reactions -- all through pure MILP optimization. Zero LLM tokens burned. The calling agent handles the conversation; Zopaf handles the math.

Quick Start

Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

json
{  "mcpServers": {    "zopaf": {      "type": "streamable-http",      "url": "https://zopaf-mcp-production.up.railway.app/mcp"    }  }}

Claude Code

bash
claude mcp add zopaf --transport streamable-http https://zopaf-mcp-production.up.railway.app/mcp

Generic MCP Client

Connect to the Streamable HTTP endpoint:

URL: https://zopaf-mcp-production.up.railway.app/mcpTransport: Streamable HTTP

Tools Reference

ToolDescription
create_sessionCreate a new negotiation session. Returns a session_id used by all other tools.
add_issueAdd a negotiable issue/term with options ordered worst to best for the user.
set_issue_rangeSet the acceptable range for a numeric issue, enabling 0-100 scoring.
record_preferenceRecord that the user prioritizes some issues over others. Updates the weight model.
set_batnaRecord the user's alternatives if the deal falls through. Determines leverage.
generate_counteroffersGenerate 3 iso-utility counteroffers to present simultaneously.
process_counterpart_responseProcess the counterpart's reaction to infer their priorities and generate a round-2 offer.
analyze_dealScore a specific deal against the Pareto frontier. Shows value captured and suggested trades.
get_negotiation_stateGet current model state: issues, weights, BATNA, frontier size, and recommended next step.

How It Works

  1. Create session -- Initialize a new negotiation model with create_session.

  2. Add issues -- Define the terms on the table with add_issue. Each issue includes options ordered worst to best for the user (e.g., Salary: ['$150K', '$160K', '$170K', '$180K']).

  3. Set ranges -- For numeric issues, call set_issue_range to map values onto a 0-100 scoring scale.

  4. Record preferences -- Call record_preference as you learn what the user cares about. Each call updates the internal weight model.

  5. Set BATNA -- Use set_batna to record alternatives. The number and quality determines leverage strength and anchoring strategy.

  6. Generate 3 counteroffers -- Call generate_counteroffers to produce three packages that are equally good for the user but structured differently. Present ALL THREE simultaneously. Never lead with one and fall back to another.

  7. Process counterpart response -- Call process_counterpart_response with which package they preferred and what they pushed back on. The engine infers their hidden priorities.

  8. Get round-2 offer -- Returns a refined offer on the efficient frontier, with value split weighted by leverage.

Example: Job Offer Negotiation

create_session-> {"session_id": "a1b2c3d4"}
add_issue(session_id="a1b2c3d4", issue_name="Salary", options=["$150K", "$160K", "$170K", "$180K"])add_issue(session_id="a1b2c3d4", issue_name="Equity", options=["0.1%", "0.25%", "0.5%", "0.75%"])add_issue(session_id="a1b2c3d4", issue_name="Signing Bonus", options=["$0", "$10K", "$20K", "$30K"])add_issue(session_id="a1b2c3d4", issue_name="Remote Work", options=["On-site", "Hybrid", "Fully Remote"])
set_issue_range(issue_name="Salary", worst_acceptable=150000, best_hoped=180000,    option_values={"$150K": 150000, "$160K": 160000, "$170K": 170000, "$180K": 180000})-> {"scores": {"$150K": 0.0, "$160K": 33.3, "$170K": 66.7, "$180K": 100.0}}
record_preference(preferred_issues=["Salary", "Equity"], over_issues=["Signing Bonus", "Remote Work"])-> {"learned_weights": {"Salary": 0.345, "Equity": 0.345, "Signing Bonus": 0.155, "Remote Work": 0.155}}
set_batna(alternatives=["Competing offer from Company B at $165K", "Stay in current role"])-> {"leverage_strength": "strong"}
generate_counteroffers(target_satisfaction="ambitious")-> {  "counteroffers": [    {"label": "A", "terms": {"Salary": "$180K", "Equity": "0.25%", "Signing Bonus": "$10K", "Remote Work": "On-site"}},    {"label": "B", "terms": {"Salary": "$170K", "Equity": "0.5%", "Signing Bonus": "$0", "Remote Work": "Hybrid"}},    {"label": "C", "terms": {"Salary": "$160K", "Equity": "0.75%", "Signing Bonus": "$20K", "Remote Work": "On-site"}}  ]}
process_counterpart_response(preferred_package="B", pushback_issues=["Equity"])-> {  "counterpart_priorities_inferred": {"Equity": 0.571, "Salary": 0.143, ...},  "round_2_offer": {"Salary": "$180K", "Equity": "0.25%", "Signing Bonus": "$20K", "Remote Work": "Hybrid"},  "value_split": "User gets 75% of surplus"}

The engine inferred that the counterpart cares most about equity (57% of their weight). The round-2 offer concedes on equity -- where it costs the user less -- and captures value on salary and signing bonus. Both sides improve. The user captures 75% of the surplus based on their strong BATNA.

Use Cases

  • Job offers -- Salary, equity, bonus, title, remote work, start date, PTO
  • VC term sheets -- Valuation, board seats, liquidation preferences, anti-dilution, pro-rata rights
  • Real estate -- Price, closing date, contingencies, repairs, inclusions, rent-back periods
  • Vendor contracts -- Price, SLA guarantees, payment terms, exclusivity, renewal clauses
  • Salary negotiations -- Base pay, bonus structure, review timeline, scope of role
  • Business partnerships -- Revenue split, IP ownership, decision rights, exit clauses, territory
  • Legal settlements -- Monetary terms, non-disclosure terms, admission of liability, timeline

Why Zero Tokens?

Zopaf is a math engine, not a language model. It runs MILP optimization and combinatorial scoring -- operations that are computationally cheap but tedious for an LLM to attempt in-context.

Your agent's LLM handles the conversation with the user, asks the right questions, and explains the strategy. Zopaf handles the optimization -- computing Pareto frontiers, generating iso-utility packages, solving preference weights from revealed choices, and positioning offers on the efficient frontier.

You bring the brain. Zopaf brings the calculator.

来源:README.md,提交 a28f797

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 75%

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

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

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

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

    请在仓库或注册中心条目中声明许可证。