isingq-mcp
OfficialIsingQ Toolkit
English | 简体中文
IsingQ Toolkit 是北京伊辛智能科技有限公司公开维护的本地 Agent 工具。它帮助 Agent 将排程、路径规划、投资组合、图优化等问题表达为 QUBO,在用户确认后使用用户自己的 IsingQ API Key 调用玉盘·伊辛云求解。
建模引导、QUBO 生成、校验和结果记录在用户电脑上完成。
只有用户确认后的求解矩阵会通过 HTTPS 发送给 IsingQ。
支持 WorkBuddy、Codex、Claude Code、Cursor、VS Code、Trae 和 DeepSeek Harness。
标准 MCP 提供 7 个工具和 13 个本地 Resources;DSH 原生 Plugin 提供 9 个工具。
云平台 API 当前支持最高 2048 个 QUBO 二进制变量。
开始前:获取 IsingQ API Key
真实求解必须使用个人 IsingQ API Key。知识查询、建模引导和 QUBO 校验不需要 API Key。
打开 玉盘·伊辛云 并注册或登录个人账号。
在平台中进入 设置 → API。
点击 创建API,填写便于识别的 API 名称并完成创建。
安装时通过操作系统安全输入框保存 API Key。
平台的创建路径也记录在玉盘·伊辛云网站隐私政策的“设置”服务说明中。
不要把 API Key 发到 Agent 对话、命令参数、MCP JSON、Issue 或日志中。如果 Key 意外泄露,请回到云平台的 设置 → API 删除对应记录并重新创建。
Related MCP server: Quantum Code Validator
推荐安装:让 Agent 读取
把下面这段话发送给当前 Agent:
请从 https://github.com/ising-tech/isingq-toolkit 读取 skills/install-isingq-mcp/SKILL.zh-CN.md,严格遵循该 Skill,帮我安装 IsingQ MCP,并且只接入当前 Agent。不要在对话中索要或显示我的 API Key;需要 Key 时使用系统安全输入框。安装完成后,等我重启 Agent,再验证是否加载出 7 个 MCP 工具。安装 Skill 会选择当前操作系统和当前 Agent,不会因为电脑上安装了其他 Agent 就全部配置。Trae 需要把 Skill 输出的 stdio JSON 导入 MCP 设置页面。
安装成功应满足:
程序安装并通过哈希校验。
本机已有有效 API Key。
当前 Agent 已注册 MCP。
重启后标准 MCP 加载 7 个工具,或 DSH 原生 Plugin 加载 9 个工具。
从 GitHub 源码安装
当前公开仓库可以直接测试。需要 Node.js 18 或更高版本:
git clone https://github.com/ising-tech/isingq-toolkit.git
cd isingq-toolkit
npm ci
npm install -g .
isingq-mcp setup
isingq-mcp self-check --jsonisingq-mcp setup 会以无回显方式接收 API Key。然后只配置实际使用的 Agent:
isingq-mcp configure-host --name workbuddy--name 支持 workbuddy、codex、claude-code、cursor、vscode 和 generic。Trae 或其他 Host 可获取标准配置后手工导入:
isingq-mcp config --json通用 stdio 配置如下:
{
"mcpServers": {
"isingq": {
"command": "isingq-mcp",
"args": ["serve"]
}
}
}配置后请完全退出并重新启动 Agent。
npm、Release 与 DSH
有 Node.js 18 或更高版本时,直接通过 npm/npx 安装和配置:
npx @ising-tech/isingq-mcp setup
npx @ising-tech/isingq-mcp configure-host --name generic --npx将 generic 替换为实际使用的 workbuddy、codex、claude-code、cursor 或 vscode;Trae 保持使用 generic 并导入输出的 stdio JSON。
不希望安装 Node.js 的用户可以从 GitHub Releases 下载对应系统的固定版本程序,并使用 SHA256SUMS 校验。支持 macOS arm64/Linux、arm64 和 Windows x64。
DeepSeek Harness 使用原生 Plugin,不需要 MCP Bridge:
dsh plugin --profile <profile> add @ising-tech/isingq-dsh-plugin不要在同一个 DSH 中同时启用 IsingQ 原生 Plugin 和旧 MCP Bridge。
如何使用
安装并重启后,直接向 Agent 描述问题,不需要记忆工具名:
请把下面的排程问题建成 QUBO。先解释变量、目标函数、约束和 Penalty,等我确认后再调用 IsingQ 求解:
任务 A、B 只能选择一个;选择 A 的收益为 8,选择 B 的收益为 5。Agent 应先完成建模和校验,展示变量映射、目标函数、约束、Penalty、矩阵摘要和 SHA-256。只有你明确确认并通过操作系统确认框后,才会提交求解。
也可以查询本地公开知识:
玉盘·伊辛云目前提供什么能力?请给出知识版本、来源和表述边界。工具能力
工具 | 作用 | 是否联网 |
| 打开系统安全输入框,配置或更换个人 API Key | 否 |
| 查询伊辛智能、产品、技术、案例、FAQ 和来源 | 否 |
| 获取 QUBO 建模步骤和约束 | 否 |
| 校验 QUBO 并生成矩阵摘要 | 否 |
| 用户确认后提交 IsingQ 求解 | 是 |
| 查询一次任务状态并保存结果 | 是 |
| 读取本机保存的求解结果 | 否 |
求解结果同时保留:
IsingQ provider energy:
E(s) = -1/2 · Σ_i Σ_j J_ij s_i s_j - Σ_i h_i s_i。MCP 按 QUBO 重新计算的 objective:
f(x) = offset + Σ_i Q_ii x_i + Σ_{i<j} Q_ij x_i x_j。
两者可能因变量转换、常数项或系数口径不同而不相等。最低 energy 也不自动代表业务可行、全局最优或特定硬件性能。
数据与安全
API Key 只保存在本机私有文件中,不进入工具参数或对话。
建模引导、QUBO 校验和公开知识查询在本机完成。
只有
isingq_solve_start会在用户确认后发送求解矩阵。API 请求使用 HTTPS;矩阵上传使用短期签名,不携带个人 API Key。
本地记录保存模型、任务 ID 和结果,不保存 API Key。
更多边界见 Security Policy。
升级与多 Agent
升级时重新执行安装 Skill 或重新安装 npm/Release 即可。
已有 API Key 和本地求解记录会保留。
每台电脑只需安装一份程序;不同 Agent 分别注册同一个本地程序即可。
更新配置后必须完全重启对应 Agent。
遇到问题
没有 API Key:前往玉盘·伊辛云的 设置 → API → 创建API。
Agent 没有出现工具:确认配置后完全重启 Agent,并批准其 MCP 信任提示。
Agent 沙箱禁止写入:只授权明确的安装目录和用户配置目录;不要把 API Key 放进项目目录。
Trae 无法自动接入:运行
isingq-mcp config --json,通过 Trae MCP 设置页面导入。只测试出 NDJSON 响应:这只能说明进程可访问;必须在 Agent 中看到 7 个原生工具才算接入完成。
开发者文档
架构、包边界、QUBO 数据契约、构建与 Release 流程见 docs/DEVELOPMENT.md。
本项目使用 Apache License 2.0。该许可证不授予 IsingQ 或伊辛智能相关商标权。
Available Tools
4 toolsisingq_api_key_setup安全配置 IsingQ API KeyA
仅当用户请求配置云服务凭据时打开安全输入入口。先引导用户登录https://console.isingq.com/并在API Key页面创建Key,不在对话中接收或显示秘密;本地求解不要求云Key。返回配置状态不证明远端鉴权成功。
Inputs: force. Returns: ok, data, error, update_notice, +1 more
isingq_knowledge_get查询 IsingQ 与伊辛智能公开知识ARead-onlyIdempotent
从本机版本化知识包查询北京伊辛智能科技有限公司、公开产品清单、IsingQ、光电伊辛机、玉盘·伊辛云、解决方案、公开案例、FAQ 和术语;不联网,不需要 API Key。
Inputs: topic (required), locale. Returns: ok, data, error, update_notice, +1 more
isingq_modeling_guide_get获取 IsingQ QUBO 建模引导ARead-onlyIdempotent
获取伊辛智能 IsingQ 的本地 QUBO 建模步骤指导;不编译业务模型,不生成变量编码或约束系数。
Inputs: problem_summary. Returns: ok, data, error, update_notice, +1 more
isingq_solve准备、确认与查看本次业务求解A
建模产物与业务求解使用同一方法。model只做本机QUBO校验及三文件导出,不读目标、设备或凭据;要求求解准备时直接prepare,同时导出与准备,不必先model。model/prepare可提供model_markdown作为变量、业务目标、约束和公式说明;模型数学信息属于正常产物。首次建模/准备呈现modeling正文及实际文件入口,再附reply和全部操作;不要只剩求解摘要。结果reply是程序生成的本步业务回复,actions含完整业务label及现成call。用户明确要求准备求解时直接prepare,同时导出产物并准备目标;model仅用于只建模/只导出意图,不是求解前强制轮次,也不增加模型接受确认。prepare后先完成用户已经明确的业务选择。返回选项与用户指定的名称和来源无歧义相符时,沿该项现成call继续准备,不重复追问已知选择;已有明确付款选择也沿对应call复用,不代选资金、不擅自改变目标。选择不等于提交。在提交前准备阶段,仅在真正缺少目标或付款选择、遇到硬性阻断,或ready等待本次执行明确确认时,才呈现reply及全部动作并等待用户。只有用户明确确认当前内容才执行confirm;现成call不是授权证明。准备/管理/查询不提交,cancel仅停止提交前准备,受理未知不重建。较大模型从原业务文件通过本地建模程序生成qubo.json并计算实际字节SHA256,model/新prepare用qubo_file:{path,sha256}代替inline qubo,二者恰好选一个;文件位于Toolkit运行主机,无需聊天或工具参数展开矩阵。review_file仅是业务核验来源,不能代替QUBO输入。正常求解返回candidate_ready后,不以候选就绪作为最终答复:沿review现成call继续本地解码和业务复核,无需再询问用户是否解读,也不再次提交。Host从原建模上下文整理review.model(math-model-v1)、data及可选baseline;按原位索引使用x_0、x_1等变量,整数或其他编码通过bindings明确写出原解码表达式。程序从原记录取候选,不允许自行填写或替换本次赋值。仅在review现成call中补充业务核验信息,保留原关联不变。业务目标与QUBO含罚项的目标分开核对;不得反推或省略原约束来制造通过。缺原业务信息时保持未知,只补问业务缺项,不要求用户填写JSON、协议或内部参数。历史列表不批量复核。成功后直接呈现review返回reply中的完整方案、业务目标和约束复核,再基于这些事实解释业务含义;不只输出位串、状态或技术日志。模型内比较不说成实际收益,单个候选不声称全局最优;失败或不支持时保留原任务,说明未完成范围,不自动改模或重算。
Inputs: action (required), qubo, limit, offset, +11 more. Returns: ok, data, error, update_notice, +1 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The four top-level tools do target different things (credential setup, static knowledge, modeling guidance, solving), but the boundaries are blurred by the massive isingq_solve description, which internally folds model/prepare/confirm/cancel/review/list modes into one tool. An agent must parse an extremely dense paragraph to know which lifecycle step it is in, and it is unclear when isingq_modeling_guide_get ends and isingq_solve's modeling behavior begins.
All tools share the isingq_ prefix and a noun/verb suffix pattern (api_key_setup, knowledge_get, modeling_guide_get, solve). The trailing verb varies (setup/get/solve) and one is a bare verb, but the convention is readable and predictable overall.
Four tools is thin for a workflow that clearly contains credentialing, knowledge lookup, modeling, export, solve, review, confirm, and cancel. Compressing most of that lifecycle into a single isingq_solve tool makes the surface feel under-decomposed relative to the stated scope.
The set nominally covers setup, knowledge, guidance, and the full solve lifecycle (model/prepare/confirm/review/cancel), but key operations like listing task history or inspecting solve status are only hinted at inside a description rather than exposed as discoverable tools. Agents have limited hooks for error recovery or state inspection outside the monolith.
Maintenance
Related MCP Connectors
QuLab MCP remote server (Streamable HTTP) for computational science and lab tools.
MCP Server for an Agent Task Marketplace
Related MCP Servers
- AlicenseBqualityDmaintenanceMathematical Optimization MCP Server with PuLP and OR-Tools support135MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides static validation and documentation lookup for quantum computing libraries, currently supporting PennyLane. It allows users to verify quantum code syntax and method usage against official library documentation to ensure correct implementation.MIT
- FlicenseAqualityDmaintenanceUnofficial Model Context Protocol (MCP) server that enables LLMs to build and execute quantum circuits using Qiskit.137-

SpinQit MCP Toolsofficial
FlicenseNot gradedqualityDmaintenanceSpinQit MCP Tools is a Python MCP server that connects AI assistants to SpinQ Cloud, enabling QASM circuit submission, platform discovery, and quantum task result retrieval through the Model Context Protocol.2-