@general-liquidity/sharpebench-mcp 0.0.6 → 0.0.12

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.
Files changed (2) hide show
  1. package/dist/server.js +14 -0
  2. package/package.json +2 -2
package/dist/server.js CHANGED
@@ -39,6 +39,20 @@ export function createServer() {
39
39
  is_call: z.boolean(),
40
40
  }, async (params) => run(() => sb.greeks(params)));
41
41
  server.tool("canary", "Derive a deterministic do-not-train contamination tripwire token from seed material.", { seed: z.string() }, async ({ seed }) => run(() => sb.canary(seed)));
42
+ server.tool("is_my_sharpe_real", "Answer 'is this Sharpe real, or an artifact of luck and multiple testing?' for a single return series. Deflates the observed Sharpe for n_trials (the search footprint), then returns a Pass/Borderline/Fail verdict with deflated Sharpe, PSR, haircut, MinTRL, and a plain-English explanation. n_trials = 1 is almost always a lie — pass the true number of strategies/configs you tried.", {
43
+ returns: z.array(z.number()),
44
+ n_trials: z.number(),
45
+ trials_sr_std: z.number().optional(),
46
+ confidence: z.number().optional(),
47
+ borderline: z.number().optional(),
48
+ sr_benchmark: z.number().optional(),
49
+ }, async ({ returns, n_trials, trials_sr_std, confidence, borderline, sr_benchmark }) => run(() => sb.isMySharpeReal(returns, {
50
+ nTrials: n_trials,
51
+ trialsSrStd: trials_sr_std,
52
+ confidence,
53
+ borderline,
54
+ srBenchmark: sr_benchmark,
55
+ })));
42
56
  return server;
43
57
  }
44
58
  async function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@general-liquidity/sharpebench-mcp",
3
- "version": "0.0.6",
3
+ "version": "0.0.12",
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.0.6",
33
+ "@general-liquidity/sharpebench": "^0.0.12",
34
34
  "@modelcontextprotocol/sdk": "^1.0.0",
35
35
  "zod": "^4.0.0"
36
36
  },