@general-liquidity/sharpebench-mcp 0.15.0 → 0.16.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/README.md +9 -3
- package/dist/server.js +1 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @general-liquidity/sharpebench-mcp
|
|
2
2
|
|
|
3
|
-
An **MCP server** that exposes the [SharpeBench](https://github.com/general-liquidity/sharpebench) luck-robust scoring kernel as agent-callable tools. Point
|
|
3
|
+
An **MCP server** that exposes the [SharpeBench](https://github.com/general-liquidity/sharpebench) luck-robust scoring kernel as agent-callable tools. Point an MCP client at it to deflate a Sharpe, check pass^k reliability, compare regimes, audit a briefing, or price option tail risk. Every result comes from the deterministic Rust kernel with no network access.
|
|
4
4
|
|
|
5
5
|
## Tools
|
|
6
6
|
|
|
@@ -13,8 +13,14 @@ An **MCP server** that exposes the [SharpeBench](https://github.com/general-liqu
|
|
|
13
13
|
| `score_allocation` | Score a weight-vector trajectory (validity + turnover) |
|
|
14
14
|
| `greeks` | Black-Scholes price + Greeks + tail-selling risk |
|
|
15
15
|
| `canary` | Derive a do-not-train contamination tripwire |
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
| `is_my_sharpe_real` | Deflate one return series for its search footprint and render the honesty verdict |
|
|
17
|
+
| `regime_compare` | Compare aligned returns inside caller-supplied regimes |
|
|
18
|
+
| `percentile_selection` | Compare the observed point winner with a bootstrap-percentile winner |
|
|
19
|
+
| `decompose_uncertainty` | Report aleatoric, epistemic, and distributional diagnostic legs |
|
|
20
|
+
| `crowding_half_life` | Evaluate a caller-calibrated crowding-decay prior |
|
|
21
|
+
| `classify_disqualification` | Name every hard-gate and advisory signal that fired |
|
|
22
|
+
|
|
23
|
+
All tools are read-only and deterministic. They do not execute entrant code or access the network.
|
|
18
24
|
|
|
19
25
|
## Use it
|
|
20
26
|
|
package/dist/server.js
CHANGED
|
@@ -27,14 +27,6 @@ function run(fn) {
|
|
|
27
27
|
// load time so a release bump (cargo-release rewrites npm/mcp/package.json from
|
|
28
28
|
// the workspace version) is the single source of truth and nothing here drifts.
|
|
29
29
|
const { version: PACKAGE_VERSION } = createRequire(import.meta.url)("../package.json");
|
|
30
|
-
function kernelRegimeCompare() {
|
|
31
|
-
const fn = sb.regimeCompare;
|
|
32
|
-
if (typeof fn !== "function") {
|
|
33
|
-
throw new Error("regime_compare is not exported by this build of @general-liquidity/sharpebench; " +
|
|
34
|
-
"use `sharpebench regime <a.csv> <b.csv> <regimes.csv>` from the CLI");
|
|
35
|
-
}
|
|
36
|
-
return fn;
|
|
37
|
-
}
|
|
38
30
|
/** Build the SharpeBench MCP server with all kernel tools registered. */
|
|
39
31
|
export function createServer() {
|
|
40
32
|
const server = new McpServer({ name: "sharpebench", version: PACKAGE_VERSION });
|
|
@@ -73,7 +65,7 @@ export function createServer() {
|
|
|
73
65
|
zero_tol: z.number().optional(),
|
|
74
66
|
min_periods: z.number().optional(),
|
|
75
67
|
tie_tol: z.number().optional(),
|
|
76
|
-
}, async ({ returns_a, returns_b, regimes, zero_tol, min_periods, tie_tol }) => run(() =>
|
|
68
|
+
}, async ({ returns_a, returns_b, regimes, zero_tol, min_periods, tie_tol }) => run(() => sb.regimeCompare(returns_a, returns_b, regimes, {
|
|
77
69
|
zeroTol: zero_tol,
|
|
78
70
|
minPeriods: min_periods,
|
|
79
71
|
tieTol: tie_tol,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@general-liquidity/sharpebench-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "MCP server exposing the SharpeBench luck-robust scoring kernel as agent-callable tools (deflated Sharpe, pass^k, process discipline, briefing audit, options Greeks).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prepublishOnly": "tsc"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@general-liquidity/sharpebench": "^0.
|
|
33
|
+
"@general-liquidity/sharpebench": "^0.16.0",
|
|
34
34
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
35
35
|
"zod": "^4.0.0"
|
|
36
36
|
},
|