quantum-suitability-validator-mcp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/LICENSE +21 -0
- package/README.md +63 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +86 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +562 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/assess.d.ts.map +1 -0
- package/dist/schemas/assess.js +37 -0
- package/dist/schemas/assess.js.map +1 -0
- package/dist/schemas/report.d.ts.map +1 -0
- package/dist/schemas/report.js +41 -0
- package/dist/schemas/report.js.map +1 -0
- package/dist/services/claude-client.d.ts.map +1 -0
- package/dist/services/claude-client.js +32 -0
- package/dist/services/claude-client.js.map +1 -0
- package/dist/tools/assess.d.ts.map +1 -0
- package/dist/tools/assess.js +106 -0
- package/dist/tools/assess.js.map +1 -0
- package/dist/tools/report.d.ts.map +1 -0
- package/dist/tools/report.js +175 -0
- package/dist/tools/report.js.map +1 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +43 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.0.0] - 2026-05-04
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- Initial release
|
|
7
|
+
- `quantum_assess_problem` tool: AI-assisted quantum triage with 7-verdict system (RECOMMENDED_NOW through NOT_QUANTUM_AMENABLE)
|
|
8
|
+
- `quantum_readiness_report` tool (Pro): full formulation guidance, hardware family fit, error budget, validation plan
|
|
9
|
+
- Free tier: 5 quantum_assess_problem calls/month per IP, no API key required
|
|
10
|
+
- Refusal-first assessment engine encoding real expert heuristics: QUBO failure patterns, penalty dominance detection, hype language flags
|
|
11
|
+
- Streamable HTTP transport (Railway) + stdio transport (npm/Claude Desktop)
|
|
12
|
+
- Stripe webhook integration for Pro key provisioning
|
|
13
|
+
- UptimeRobot-compatible /health endpoint (GET + HEAD)
|
|
14
|
+
- Anthropic Registry, Smithery, and npm published
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kord Agencies Pte Ltd
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
[](https://smithery.ai/servers/OjasKord/quantum-suitability-validator-mcp-server)
|
|
2
|
+
|
|
3
|
+
# Quantum Suitability Validator MCP
|
|
4
|
+
|
|
5
|
+
MCP server that screens quantum computing POC proposals against expert decision rules -- before your agent escalates any initiative to a committee, allocates budget, or routes to a specialist.
|
|
6
|
+
|
|
7
|
+
## What it does
|
|
8
|
+
|
|
9
|
+
Enterprise innovation agents and R&D workflow agents process backlogs of proposed technology initiatives tagged as potential quantum computing candidates. Before escalating any candidate to a human committee, allocating POC budget, or routing to a quantum specialist, the agent calls `quantum_assess_problem` to produce an auditable triage verdict.
|
|
10
|
+
|
|
11
|
+
This server is **refusal-first by design**. It downgrades or refuses more often than it approves. Every verdict is auditable and machine-readable.
|
|
12
|
+
|
|
13
|
+
## Tools
|
|
14
|
+
|
|
15
|
+
### `quantum_assess_problem` (Free: 5/month, no key required)
|
|
16
|
+
|
|
17
|
+
Screens a quantum computing proposal against expert decision rules. Returns:
|
|
18
|
+
|
|
19
|
+
- `verdict`: RECOMMENDED_NOW | BENCHMARK_ONLY | HYBRID_ONLY | SIMULATOR_ONLY | NOT_RECOMMENDED | NOT_QUANTUM_AMENABLE | INSUFFICIENT_INFORMATION
|
|
20
|
+
- `suitability_score`: 0.0-1.0
|
|
21
|
+
- `confidence_score`: 0.0-1.0
|
|
22
|
+
- `problem_class`: combinatorial_optimisation | portfolio_optimisation | molecular_simulation | ml_kernel | cryptography_pqc | sampling_monte_carlo | other
|
|
23
|
+
- `dominant_blockers`: specific reasons why the problem fails screening
|
|
24
|
+
- `hype_flags`: detected hype language patterns
|
|
25
|
+
- `baseline_question`: always "What is your classical baseline today, and what metric must improve for this to matter?"
|
|
26
|
+
- `agent_action`: ESCALATE_TO_POC | ROUTE_TO_SIMULATOR | DEFINE_BASELINE_FIRST | REJECT | REQUEST_MORE_INFORMATION
|
|
27
|
+
|
|
28
|
+
### `quantum_readiness_report` (Pro only)
|
|
29
|
+
|
|
30
|
+
Full auditable Quantum Readiness Report. Everything from `quantum_assess_problem` plus:
|
|
31
|
+
|
|
32
|
+
- `recommended_workflow`: CLASSICAL_ONLY | HYBRID | SIMULATOR_ONLY | ANNEALING_PATH | GATE_MODEL_VARIATIONAL
|
|
33
|
+
- `formulation_guidance`: QUBO/Ising/variational suitability, estimated binary variables, penalty dominance risk
|
|
34
|
+
- `hardware_recommendations`: hardware family fit scores with access routes (D-Wave Leap, IBM Cloud, IonQ Cloud)
|
|
35
|
+
- `error_budget_assessment`: viability against current noise floors
|
|
36
|
+
- `classical_baseline_assessment`: baseline strength and minimum benchmark requirement
|
|
37
|
+
- `validation_plan`: ordered steps for technical review board submission
|
|
38
|
+
|
|
39
|
+
## Connect
|
|
40
|
+
|
|
41
|
+
### HTTP (Railway -- no install)
|
|
42
|
+
```json
|
|
43
|
+
{"type": "http", "url": "https://quantum-suitability-validator-mcp-production.up.railway.app"}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### stdio (npm -- requires ANTHROPIC_API_KEY)
|
|
47
|
+
```bash
|
|
48
|
+
npx quantum-suitability-validator-mcp
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Pricing
|
|
52
|
+
|
|
53
|
+
- **Free**: 5 `quantum_assess_problem` calls/month per IP -- no API key required
|
|
54
|
+
- **Pro**: $199/month -- unlimited `quantum_assess_problem` + full `quantum_readiness_report`
|
|
55
|
+
- **Enterprise**: $499/month -- volume + SLA
|
|
56
|
+
|
|
57
|
+
Upgrade: [kordagencies.com](https://kordagencies.com)
|
|
58
|
+
|
|
59
|
+
## Legal
|
|
60
|
+
|
|
61
|
+
AI-assisted triage -- NOT a substitute for experimental physicist review. Results are for informational and planning purposes only and do not constitute expert quantum computing advice. Full terms: kordagencies.com/terms.html
|
|
62
|
+
|
|
63
|
+
Kord Agencies Pte Ltd, Singapore
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,eAAe,QAAQ,CAAC;AACrC,eAAO,MAAM,eAAe,IAAI,CAAC;AACjC,eAAO,MAAM,YAAY,4BAA4B,CAAC;AACtD,eAAO,MAAM,eAAe,mDAAmD,CAAC;AAChF,eAAO,MAAM,sBAAsB,mDAAmD,CAAC;AAEvF,eAAO,MAAM,gBAAgB,QAMc,CAAC;AAE5C,eAAO,MAAM,aAAa,QAsEgC,CAAC;AAE3D,wBAAgB,MAAM,IAAI,MAAM,CAE/B"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export const VERSION = '1.0.0';
|
|
2
|
+
export const CHARACTER_LIMIT = 25000;
|
|
3
|
+
export const FREE_TIER_LIMIT = 5;
|
|
4
|
+
export const PERSIST_FILE = '/tmp/quantum_stats.json';
|
|
5
|
+
export const PRO_UPGRADE_URL = 'https://buy.stripe.com/cNi28q27P9Hnegk2paebu0x';
|
|
6
|
+
export const ENTERPRISE_UPGRADE_URL = 'https://buy.stripe.com/7sY14m7s98Djfko4xiebu0y';
|
|
7
|
+
export const LEGAL_DISCLAIMER = 'This assessment is generated by AI reasoning against an encoded expert decision framework. ' +
|
|
8
|
+
'It is for informational and planning purposes only and does not constitute expert quantum computing advice. ' +
|
|
9
|
+
'Results reflect heuristic rules, not experimental validation on physical hardware. ' +
|
|
10
|
+
'We do not log or store your problem description. ' +
|
|
11
|
+
'Provider maximum liability is limited to subscription fees paid in the preceding 3 months. ' +
|
|
12
|
+
'Full terms: kordagencies.com/terms.html';
|
|
13
|
+
export const SYSTEM_PROMPT = 'You are a quantum computing triage expert. Your role is to screen proposed quantum computing ' +
|
|
14
|
+
'initiatives against real expert decision rules. You are REFUSAL-FIRST: default to refuse or ' +
|
|
15
|
+
'downgrade. Approve only when all of these exist: classical baseline, measurable success metric, ' +
|
|
16
|
+
'reducible benchmark instance, and validation path.\n\n' +
|
|
17
|
+
'AUTOMATIC REFUSAL -- return NOT_QUANTUM_AMENABLE or NOT_RECOMMENDED immediately if any:\n' +
|
|
18
|
+
'- No classical baseline stated or inferable from context\n' +
|
|
19
|
+
'- No measurable success metric provided or inferable\n' +
|
|
20
|
+
'- No possibility of a reduced benchmark instance\n' +
|
|
21
|
+
'- Validation of results would be impossible\n' +
|
|
22
|
+
'- Constraint overhead clearly dominates the objective\n' +
|
|
23
|
+
'- Motivation is signalling, optics, or competitor-following\n' +
|
|
24
|
+
'- Economic upside unclear even if quantum worked perfectly\n\n' +
|
|
25
|
+
'HYPE LANGUAGE DETECTION -- populate hype_flags when detected:\n' +
|
|
26
|
+
'- "quantum advantage" without specific baseline and metric\n' +
|
|
27
|
+
'- "competitors are doing quantum so we must"\n' +
|
|
28
|
+
'- "vendor says it will work"\n' +
|
|
29
|
+
'- "we already have a QUBO" but no penalty scaling explanation\n' +
|
|
30
|
+
'- "quantum initiative for board/optics/PR"\n' +
|
|
31
|
+
'- "quantum breakthrough" with no problem-specific grounding\n' +
|
|
32
|
+
'- "quantum will solve" without naming what classical cannot\n\n' +
|
|
33
|
+
'BASELINE QUESTION -- always populate baseline_question with:\n' +
|
|
34
|
+
'"What is your classical baseline today, and what metric must improve for this to matter?"\n' +
|
|
35
|
+
'If unanswerable from input, set agent_action to DEFINE_BASELINE_FIRST.\n\n' +
|
|
36
|
+
'PROBLEM CLASS RULES:\n\n' +
|
|
37
|
+
'Combinatorial optimisation:\n' +
|
|
38
|
+
'GOOD: reducible to 50-300 binary variables; clean binary assignment; sponsor names classical ' +
|
|
39
|
+
'baseline (MIP/CP-SAT + heuristics) and defines success metric.\n' +
|
|
40
|
+
'BAD: constraint overhead dominates; equality constraints cause auxiliary variable explosion; ' +
|
|
41
|
+
'no baseline; no validation path.\n\n' +
|
|
42
|
+
'Portfolio optimisation:\n' +
|
|
43
|
+
'GOOD: discreteness essential (cardinality, turnover, lot sizes); constraints explicit; clear KPI; ' +
|
|
44
|
+
'backtesting plan exists.\n' +
|
|
45
|
+
'BAD: constraints subjective or constantly changing; baseline already strong with no improvement ' +
|
|
46
|
+
'target; no acceptance criteria.\n' +
|
|
47
|
+
'Benchmark start: 30-150 instruments with discrete constraints.\n\n' +
|
|
48
|
+
'Molecular simulation:\n' +
|
|
49
|
+
'GOOD: tight scientific scope; reduced Hamiltonian feasible; domain experts available; staged roadmap agreed.\n' +
|
|
50
|
+
'BAD: simulate everything with no reduction; no classical gold-standard comparison.\n\n' +
|
|
51
|
+
'ML / kernel methods:\n' +
|
|
52
|
+
'GOOD: narrow testable hybrid subroutine; measurable evaluation protocol; expectation is ' +
|
|
53
|
+
'benchmarking not production replacement.\n' +
|
|
54
|
+
'BAD: quantum replaces ML narrative; no baseline; no evaluation plan.\n\n' +
|
|
55
|
+
'Cryptography / PQC:\n' +
|
|
56
|
+
'Near-term value is PQC migration governance only. Flag and refuse conflation of quantum computing ' +
|
|
57
|
+
'with PQC -- these are completely separate problems.\n\n' +
|
|
58
|
+
'Sampling / Monte Carlo:\n' +
|
|
59
|
+
'GOOD: sampling is dominant cost; statistical success criteria exist.\n' +
|
|
60
|
+
'BAD: no verifiable metric; no classical baseline.\n\n' +
|
|
61
|
+
'QUBO FAILURE PATTERNS -- flag in dominant_blockers:\n' +
|
|
62
|
+
'- Heavy equality constraints or repeated exactly-one constraints at scale\n' +
|
|
63
|
+
'- Many if/then rules causing auxiliary variable explosion\n' +
|
|
64
|
+
'- Dense interaction graph post-encoding causing embedding blow-up\n' +
|
|
65
|
+
'- Penalty-dominated objectives: valid mathematically, meaningless commercially\n\n' +
|
|
66
|
+
'HARDWARE RULES (quantum_readiness_report only):\n' +
|
|
67
|
+
'- QUBO/Ising viable + new team: annealing/hybrid first (D-Wave Leap)\n' +
|
|
68
|
+
'- QAOA/variational: default simulator-only unless shallow circuit confirmed\n' +
|
|
69
|
+
'- New team or no baseline: simulator-only until baseline + reduction + validation exist\n' +
|
|
70
|
+
'- Key metric: two-qubit fidelity + effective depth survivability, NOT qubit count\n' +
|
|
71
|
+
'- Never recommend paid cloud hardware below suitability score 0.6\n\n' +
|
|
72
|
+
'SCORING:\n' +
|
|
73
|
+
'0.8+: all conditions met -- recommend structured pilot\n' +
|
|
74
|
+
'0.6-0.79: worth pilot with validation plan -- minimum for paid cloud run\n' +
|
|
75
|
+
'0.2-0.4: plausible class but baseline unclear -- needs reformulation\n' +
|
|
76
|
+
'0.05 or below: refuse immediately\n\n' +
|
|
77
|
+
'NEVER:\n' +
|
|
78
|
+
'- Use "quantum advantage" without problem-specific grounding\n' +
|
|
79
|
+
'- Promise quantum beats classical without a defined baseline\n' +
|
|
80
|
+
'- Recommend production hardware without prior simulator result\n' +
|
|
81
|
+
'- Present simulator wins as hardware wins\n' +
|
|
82
|
+
'- Recommend a pilot when motivation is investor optics';
|
|
83
|
+
export function nowISO() {
|
|
84
|
+
return new Date().toISOString();
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAC/B,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;AACrC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC;AACjC,MAAM,CAAC,MAAM,YAAY,GAAG,yBAAyB,CAAC;AACtD,MAAM,CAAC,MAAM,eAAe,GAAG,gDAAgD,CAAC;AAChF,MAAM,CAAC,MAAM,sBAAsB,GAAG,gDAAgD,CAAC;AAEvF,MAAM,CAAC,MAAM,gBAAgB,GAC3B,6FAA6F;IAC7F,8GAA8G;IAC9G,qFAAqF;IACrF,mDAAmD;IACnD,6FAA6F;IAC7F,yCAAyC,CAAC;AAE5C,MAAM,CAAC,MAAM,aAAa,GACxB,+FAA+F;IAC/F,8FAA8F;IAC9F,kGAAkG;IAClG,wDAAwD;IACxD,2FAA2F;IAC3F,4DAA4D;IAC5D,wDAAwD;IACxD,oDAAoD;IACpD,+CAA+C;IAC/C,yDAAyD;IACzD,+DAA+D;IAC/D,gEAAgE;IAChE,iEAAiE;IACjE,8DAA8D;IAC9D,gDAAgD;IAChD,gCAAgC;IAChC,iEAAiE;IACjE,8CAA8C;IAC9C,+DAA+D;IAC/D,iEAAiE;IACjE,gEAAgE;IAChE,6FAA6F;IAC7F,4EAA4E;IAC5E,0BAA0B;IAC1B,+BAA+B;IAC/B,+FAA+F;IAC/F,kEAAkE;IAClE,+FAA+F;IAC/F,sCAAsC;IACtC,2BAA2B;IAC3B,oGAAoG;IACpG,4BAA4B;IAC5B,kGAAkG;IAClG,mCAAmC;IACnC,oEAAoE;IACpE,yBAAyB;IACzB,gHAAgH;IAChH,wFAAwF;IACxF,wBAAwB;IACxB,0FAA0F;IAC1F,4CAA4C;IAC5C,0EAA0E;IAC1E,uBAAuB;IACvB,oGAAoG;IACpG,yDAAyD;IACzD,2BAA2B;IAC3B,wEAAwE;IACxE,uDAAuD;IACvD,uDAAuD;IACvD,6EAA6E;IAC7E,6DAA6D;IAC7D,qEAAqE;IACrE,oFAAoF;IACpF,mDAAmD;IACnD,wEAAwE;IACxE,+EAA+E;IAC/E,2FAA2F;IAC3F,qFAAqF;IACrF,uEAAuE;IACvE,YAAY;IACZ,0DAA0D;IAC1D,4EAA4E;IAC5E,wEAAwE;IACxE,uCAAuC;IACvC,UAAU;IACV,gEAAgE;IAChE,gEAAgE;IAChE,kEAAkE;IAClE,6CAA6C;IAC7C,wDAAwD,CAAC;AAE3D,MAAM,UAAU,MAAM;IACpB,OAAO,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|