Ophir

io.github.Ophir-ai-creator由 GitHub 账号 Ophir-ai-creator 发布v0.2.1更新于 Oct 24, 2026

Ophir protocol tools for AI agent discovery, negotiation, and settlement

概览

AI 生成的概览

Ophir 让 AI 代理通过 Ophir 协议发现 AI 服务提供方、协商报价、签署协议、监控 SLA 并发起争议。

可以做什么
  • 发现提供方及其服务、价格与信誉评分
  • 向匹配的提供方发送询价,收集并排序报价,选出最优方案
  • 接受报价,与选定的提供方生成已签署的协议
  • 列出有效协议,并按约定目标检查 SLA 合规情况
  • 提交附带加密证据的 SLA 争议
适用场景
适合代理需要从第三方提供方采购推理等服务,并在承诺前比较价格、SLA 与信誉时使用;也适合跟踪并争议已有的提供方协议。
运行要求
通过 npx 从 npm 包 @ophirai/mcp-server 在本地运行,需要 Node.js 以及访问公开 Ophir 注册表的网络连接。无需 API 密钥。可选环境变量用于设置注册表地址、卖方端点和本地买方代理端点。
安装前请注意
接受报价会与提供方生成已签署的协议,价格以 USDC 计价,可能涉及实际支出。争议会提交至协议的争议解决流程。提供方端点与注册表流量会发往第三方,买方端点默认指向本地地址。

安装

在 SourceWeft 中

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

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@ophirai/mcp-server

MCP server that gives your AI agent the ability to discover, negotiate with, and manage AI service providers through the Ophir protocol.

No API keys required — connects to the public Ophir registry.

Installation

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "ophir": {      "command": "npx",      "args": ["@ophirai/mcp-server"]    }  }}

Cursor

Add to .cursor/mcp.json in your project root:

json
{  "ophir": {    "command": "npx",    "args": ["@ophirai/mcp-server"]  }}

Windsurf

Add to your Windsurf MCP config:

json
{  "mcpServers": {    "ophir": {      "command": "npx",      "args": ["@ophirai/mcp-server"]    }  }}

Cline

Add to your Cline MCP settings:

json
{  "mcpServers": {    "ophir": {      "command": "npx",      "args": ["@ophirai/mcp-server"]    }  }}

Any MCP client (npx)

bash
npx @ophirai/mcp-server

Smithery

bash
smithery install ophir-negotiate

Configuration

Environment VariableDescriptionDefault
OPHIR_REGISTRY_URLOphir registry endpointhttps://registry.ophir.ai/v1
OPHIR_SELLERSComma-separated seller endpointsAuto-discovered
OPHIR_BUYER_ENDPOINTLocal buyer agent endpointhttp://localhost:3001

What can it do?

ophir_discover — Find providers

"Find me inference providers with a reputation score above 80."

Returns a list of providers with their services, pricing, and reputation scores:

json
{  "providers": [    {      "agent_id": "provider-abc",      "endpoint": "https://provider-abc.ophir.ai",      "services": [{ "category": "inference", "base_price": "0.002", "currency": "USDC", "unit": "request" }],      "reputation": { "score": 92, "total_agreements": 1847 }    }  ],  "total": 3}

ophir_negotiate — Full negotiation flow

"Negotiate inference service with a max budget of 0.005 USDC per request."

Sends an RFQ to all matching providers, collects quotes, ranks them, and returns the best option:

json
{  "best_quote": {    "seller": "provider-abc",    "price": "0.0018",    "currency": "USDC",    "unit": "request",    "sla": [      { "metric": "latency_p99", "target": "500ms" },      { "metric": "uptime", "target": "99.9%" }    ]  },  "total_quotes": 5,  "rfq_id": "rfq_01HXYZ..."}

ophir_accept_quote — Accept a quote

"Accept quote qt_abc123 from RFQ rfq_01HXYZ."

Creates a signed agreement with the selected provider, locking in the negotiated terms.

ophir_check_agreement — Monitor SLA compliance

"Check if agreement agr_xyz is meeting its SLA targets."

Returns current SLA metric observations and compliance status:

json
{  "agreement_id": "agr_xyz",  "sla_metrics": [    { "name": "latency_p99", "target": "500ms", "comparison": "lte" },    { "name": "uptime", "target": "99.9%", "comparison": "gte" }  ],  "compliance_status": "monitoring_available"}

ophir_list_agreements — View active agreements

"Show me all my active provider agreements."

Lists all agreements with their pricing, status, and SLA terms.

ophir_dispute — File an SLA dispute

"File a dispute against agreement agr_xyz for latency violations."

Submits a dispute with cryptographic evidence of SLA violations, triggering the protocol's dispute resolution process.

License

MIT

来源:packages/mcp-server/README.md,提交 17b0e61

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

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

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