crypto-quant-signal-mcp 1.30.0 → 1.31.1
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/.cursor-plugin/plugin.json +33 -0
- package/README.md +24 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +103 -34
- package/dist/index.js.map +1 -1
- package/dist/lib/account-handlers.d.ts.map +1 -1
- package/dist/lib/account-handlers.js +17 -15
- package/dist/lib/account-handlers.js.map +1 -1
- package/dist/lib/adapters/_history-plan.d.ts +103 -0
- package/dist/lib/adapters/_history-plan.d.ts.map +1 -0
- package/dist/lib/adapters/_history-plan.js +112 -0
- package/dist/lib/adapters/_history-plan.js.map +1 -0
- package/dist/lib/adapters/bitget.d.ts +18 -1
- package/dist/lib/adapters/bitget.d.ts.map +1 -1
- package/dist/lib/adapters/bitget.js +36 -11
- package/dist/lib/adapters/bitget.js.map +1 -1
- package/dist/lib/adapters/okx.d.ts +40 -1
- package/dist/lib/adapters/okx.d.ts.map +1 -1
- package/dist/lib/adapters/okx.js +108 -28
- package/dist/lib/adapters/okx.js.map +1 -1
- package/dist/lib/attribution-backfill.d.ts +28 -0
- package/dist/lib/attribution-backfill.d.ts.map +1 -0
- package/dist/lib/attribution-backfill.js +81 -0
- package/dist/lib/attribution-backfill.js.map +1 -0
- package/dist/lib/attribution-sources.d.ts +1 -1
- package/dist/lib/attribution-sources.d.ts.map +1 -1
- package/dist/lib/attribution-sources.js +15 -1
- package/dist/lib/attribution-sources.js.map +1 -1
- package/dist/lib/band-signal-capture.d.ts +7 -0
- package/dist/lib/band-signal-capture.d.ts.map +1 -1
- package/dist/lib/band-signal-capture.js +1 -1
- package/dist/lib/band-signal-capture.js.map +1 -1
- package/dist/lib/caller-tags.d.ts +37 -0
- package/dist/lib/caller-tags.d.ts.map +1 -0
- package/dist/lib/caller-tags.js +96 -0
- package/dist/lib/caller-tags.js.map +1 -0
- package/dist/lib/contact-page.d.ts +24 -3
- package/dist/lib/contact-page.d.ts.map +1 -1
- package/dist/lib/contact-page.js +25 -4
- package/dist/lib/contact-page.js.map +1 -1
- package/dist/lib/cross-asset-grid.d.ts.map +1 -1
- package/dist/lib/cross-asset-grid.js +2 -1
- package/dist/lib/cross-asset-grid.js.map +1 -1
- package/dist/lib/exchange-universe.d.ts +12 -0
- package/dist/lib/exchange-universe.d.ts.map +1 -1
- package/dist/lib/exchange-universe.js +147 -60
- package/dist/lib/exchange-universe.js.map +1 -1
- package/dist/lib/funnel-dashboard-html.d.ts.map +1 -1
- package/dist/lib/funnel-dashboard-html.js +5 -4
- package/dist/lib/funnel-dashboard-html.js.map +1 -1
- package/dist/lib/funnel-scoreboard.d.ts +22 -0
- package/dist/lib/funnel-scoreboard.d.ts.map +1 -1
- package/dist/lib/funnel-scoreboard.js +24 -3
- package/dist/lib/funnel-scoreboard.js.map +1 -1
- package/dist/lib/integrations-data/ai-agents.js +8 -8
- package/dist/lib/integrations-data/claim-evidence.d.ts +119 -0
- package/dist/lib/integrations-data/claim-evidence.d.ts.map +1 -0
- package/dist/lib/integrations-data/claim-evidence.js +246 -0
- package/dist/lib/integrations-data/claim-evidence.js.map +1 -0
- package/dist/lib/integrations-data/exchange-kits.js +14 -14
- package/dist/lib/integrations-data/mcp-clients.d.ts +10 -2
- package/dist/lib/integrations-data/mcp-clients.d.ts.map +1 -1
- package/dist/lib/integrations-data/mcp-clients.js +253 -48
- package/dist/lib/integrations-data/mcp-clients.js.map +1 -1
- package/dist/lib/integrations-data/readme-mcp-clients.d.ts +35 -0
- package/dist/lib/integrations-data/readme-mcp-clients.d.ts.map +1 -0
- package/dist/lib/integrations-data/readme-mcp-clients.js +72 -0
- package/dist/lib/integrations-data/readme-mcp-clients.js.map +1 -0
- package/dist/lib/integrations-data/render.d.ts +14 -1
- package/dist/lib/integrations-data/render.d.ts.map +1 -1
- package/dist/lib/integrations-data/render.js +40 -3
- package/dist/lib/integrations-data/render.js.map +1 -1
- package/dist/lib/integrations-data/types.d.ts +61 -9
- package/dist/lib/integrations-data/types.d.ts.map +1 -1
- package/dist/lib/integrations-data/types.js +4 -1
- package/dist/lib/integrations-data/types.js.map +1 -1
- package/dist/lib/lifecycle/engine.d.ts +75 -10
- package/dist/lib/lifecycle/engine.d.ts.map +1 -1
- package/dist/lib/lifecycle/engine.js +139 -46
- package/dist/lib/lifecycle/engine.js.map +1 -1
- package/dist/lib/lifecycle/ledger.d.ts +67 -3
- package/dist/lib/lifecycle/ledger.d.ts.map +1 -1
- package/dist/lib/lifecycle/ledger.js +102 -7
- package/dist/lib/lifecycle/ledger.js.map +1 -1
- package/dist/lib/lifecycle/schema.d.ts.map +1 -1
- package/dist/lib/lifecycle/schema.js +19 -0
- package/dist/lib/lifecycle/schema.js.map +1 -1
- package/dist/lib/lifecycle/steps.d.ts +28 -21
- package/dist/lib/lifecycle/steps.d.ts.map +1 -1
- package/dist/lib/lifecycle/steps.js +97 -49
- package/dist/lib/lifecycle/steps.js.map +1 -1
- package/dist/lib/off-origin-redirect.d.ts +48 -0
- package/dist/lib/off-origin-redirect.d.ts.map +1 -0
- package/dist/lib/off-origin-redirect.js +131 -0
- package/dist/lib/off-origin-redirect.js.map +1 -0
- package/dist/lib/performance-db.d.ts +6 -30
- package/dist/lib/performance-db.d.ts.map +1 -1
- package/dist/lib/performance-db.js +70 -50
- package/dist/lib/performance-db.js.map +1 -1
- package/dist/lib/primitive-projection.d.ts +24 -0
- package/dist/lib/primitive-projection.d.ts.map +1 -0
- package/dist/lib/primitive-projection.js +107 -0
- package/dist/lib/primitive-projection.js.map +1 -0
- package/dist/lib/receipts.d.ts +9 -0
- package/dist/lib/receipts.d.ts.map +1 -1
- package/dist/lib/receipts.js +4 -0
- package/dist/lib/receipts.js.map +1 -1
- package/dist/lib/runtime.d.ts +9 -0
- package/dist/lib/runtime.d.ts.map +1 -1
- package/dist/lib/runtime.js +19 -0
- package/dist/lib/runtime.js.map +1 -1
- package/dist/lib/scorer-input-capture.d.ts +8 -0
- package/dist/lib/scorer-input-capture.d.ts.map +1 -1
- package/dist/lib/scorer-input-capture.js.map +1 -1
- package/dist/lib/signin-identity.d.ts +27 -0
- package/dist/lib/signin-identity.d.ts.map +1 -0
- package/dist/lib/signin-identity.js +80 -0
- package/dist/lib/signin-identity.js.map +1 -0
- package/dist/lib/signup-flow.js +2 -2
- package/dist/lib/signup-flow.js.map +1 -1
- package/dist/lib/site-nav.js +3 -3
- package/dist/lib/site-nav.js.map +1 -1
- package/dist/lib/site-theme.d.ts +48 -0
- package/dist/lib/site-theme.d.ts.map +1 -0
- package/dist/lib/site-theme.js +147 -0
- package/dist/lib/site-theme.js.map +1 -0
- package/dist/lib/stripe.d.ts +34 -0
- package/dist/lib/stripe.d.ts.map +1 -1
- package/dist/lib/stripe.js +58 -24
- package/dist/lib/stripe.js.map +1 -1
- package/dist/lib/subscriber-attribution.d.ts +35 -15
- package/dist/lib/subscriber-attribution.d.ts.map +1 -1
- package/dist/lib/subscriber-attribution.js +7 -33
- package/dist/lib/subscriber-attribution.js.map +1 -1
- package/dist/lib/tf-support.d.ts +12 -0
- package/dist/lib/tf-support.d.ts.map +1 -1
- package/dist/lib/tf-support.js +16 -1
- package/dist/lib/tf-support.js.map +1 -1
- package/dist/lib/track-token.d.ts +32 -3
- package/dist/lib/track-token.d.ts.map +1 -1
- package/dist/lib/track-token.js +32 -3
- package/dist/lib/track-token.js.map +1 -1
- package/dist/lib/universe-admission.d.ts +139 -0
- package/dist/lib/universe-admission.d.ts.map +1 -0
- package/dist/lib/universe-admission.js +327 -0
- package/dist/lib/universe-admission.js.map +1 -0
- package/dist/lib/upstream-weight-budget.d.ts +88 -5
- package/dist/lib/upstream-weight-budget.d.ts.map +1 -1
- package/dist/lib/upstream-weight-budget.js +395 -22
- package/dist/lib/upstream-weight-budget.js.map +1 -1
- package/dist/lib/venue-budget-registry.d.ts +10 -1
- package/dist/lib/venue-budget-registry.d.ts.map +1 -1
- package/dist/lib/venue-budget-registry.js +38 -1
- package/dist/lib/venue-budget-registry.js.map +1 -1
- package/dist/lib/venue-candle-horizons.d.ts +31 -0
- package/dist/lib/venue-candle-horizons.d.ts.map +1 -0
- package/dist/lib/venue-candle-horizons.js +47 -0
- package/dist/lib/venue-candle-horizons.js.map +1 -0
- package/dist/lib/venue-slo-tiers.d.ts +12 -0
- package/dist/lib/venue-slo-tiers.d.ts.map +1 -1
- package/dist/lib/venue-slo-tiers.js +17 -1
- package/dist/lib/venue-slo-tiers.js.map +1 -1
- package/dist/lib/verdict-factors.d.ts +9 -0
- package/dist/lib/verdict-factors.d.ts.map +1 -1
- package/dist/lib/verdict-factors.js +19 -3
- package/dist/lib/verdict-factors.js.map +1 -1
- package/dist/lib/verdict-rule-assignment.d.ts +36 -0
- package/dist/lib/verdict-rule-assignment.d.ts.map +1 -0
- package/dist/lib/verdict-rule-assignment.js +41 -0
- package/dist/lib/verdict-rule-assignment.js.map +1 -0
- package/dist/lib/verdict-rule-registry.d.ts +93 -0
- package/dist/lib/verdict-rule-registry.d.ts.map +1 -0
- package/dist/lib/verdict-rule-registry.js +195 -0
- package/dist/lib/verdict-rule-registry.js.map +1 -0
- package/dist/lib/x402-http-routes.d.ts.map +1 -1
- package/dist/lib/x402-http-routes.js +55 -3
- package/dist/lib/x402-http-routes.js.map +1 -1
- package/dist/resources/signal-performance.d.ts.map +1 -1
- package/dist/resources/signal-performance.js +4 -1
- package/dist/resources/signal-performance.js.map +1 -1
- package/dist/scripts/adapter-history-contiguity.d.ts +81 -0
- package/dist/scripts/adapter-history-contiguity.d.ts.map +1 -0
- package/dist/scripts/adapter-history-contiguity.js +258 -0
- package/dist/scripts/adapter-history-contiguity.js.map +1 -0
- package/dist/scripts/ads1/core.d.ts +109 -0
- package/dist/scripts/ads1/core.d.ts.map +1 -0
- package/dist/scripts/ads1/core.js +270 -0
- package/dist/scripts/ads1/core.js.map +1 -0
- package/dist/scripts/ads1/ddl-parity-check.d.ts +2 -0
- package/dist/scripts/ads1/ddl-parity-check.d.ts.map +1 -0
- package/dist/scripts/ads1/ddl-parity-check.js +77 -0
- package/dist/scripts/ads1/ddl-parity-check.js.map +1 -0
- package/dist/scripts/ads1/ddl-parity.d.ts +16 -0
- package/dist/scripts/ads1/ddl-parity.d.ts.map +1 -0
- package/dist/scripts/ads1/ddl-parity.js +91 -0
- package/dist/scripts/ads1/ddl-parity.js.map +1 -0
- package/dist/scripts/ads1/extract-sql.d.ts +43 -0
- package/dist/scripts/ads1/extract-sql.d.ts.map +1 -0
- package/dist/scripts/ads1/extract-sql.js +209 -0
- package/dist/scripts/ads1/extract-sql.js.map +1 -0
- package/dist/scripts/ads1/layers.d.ts +98 -0
- package/dist/scripts/ads1/layers.d.ts.map +1 -0
- package/dist/scripts/ads1/layers.js +200 -0
- package/dist/scripts/ads1/layers.js.map +1 -0
- package/dist/scripts/ads1/parity-fixture.d.ts +30 -0
- package/dist/scripts/ads1/parity-fixture.d.ts.map +1 -0
- package/dist/scripts/ads1/parity-fixture.js +182 -0
- package/dist/scripts/ads1/parity-fixture.js.map +1 -0
- package/dist/scripts/ads1/rank.d.ts +5 -0
- package/dist/scripts/ads1/rank.d.ts.map +1 -0
- package/dist/scripts/ads1/rank.js +43 -0
- package/dist/scripts/ads1/rank.js.map +1 -0
- package/dist/scripts/ads1/scorecard.d.ts +326 -0
- package/dist/scripts/ads1/scorecard.d.ts.map +1 -0
- package/dist/scripts/ads1/scorecard.js +832 -0
- package/dist/scripts/ads1/scorecard.js.map +1 -0
- package/dist/scripts/ads1/selftest.d.ts +9 -0
- package/dist/scripts/ads1/selftest.d.ts.map +1 -0
- package/dist/scripts/ads1/selftest.js +239 -0
- package/dist/scripts/ads1/selftest.js.map +1 -0
- package/dist/scripts/ads1/spec.d.ts +144 -0
- package/dist/scripts/ads1/spec.d.ts.map +1 -0
- package/dist/scripts/ads1/spec.js +206 -0
- package/dist/scripts/ads1/spec.js.map +1 -0
- package/dist/scripts/ads1-scorecard.d.ts +2 -0
- package/dist/scripts/ads1-scorecard.d.ts.map +1 -0
- package/dist/scripts/ads1-scorecard.js +154 -0
- package/dist/scripts/ads1-scorecard.js.map +1 -0
- package/dist/scripts/backfill-directional-labels.d.ts +304 -0
- package/dist/scripts/backfill-directional-labels.d.ts.map +1 -1
- package/dist/scripts/backfill-directional-labels.js +1189 -72
- package/dist/scripts/backfill-directional-labels.js.map +1 -1
- package/dist/scripts/backfill-funding-episodes.d.ts +2 -0
- package/dist/scripts/backfill-funding-episodes.d.ts.map +1 -1
- package/dist/scripts/backfill-funding-episodes.js +53 -6
- package/dist/scripts/backfill-funding-episodes.js.map +1 -1
- package/dist/scripts/backfill-hold-decision-labels.d.ts +114 -0
- package/dist/scripts/backfill-hold-decision-labels.d.ts.map +1 -1
- package/dist/scripts/backfill-hold-decision-labels.js +395 -21
- package/dist/scripts/backfill-hold-decision-labels.js.map +1 -1
- package/dist/scripts/backfill-outcomes.js +2 -2
- package/dist/scripts/backfill-outcomes.js.map +1 -1
- package/dist/scripts/backfill-signup-attribution-class.d.ts +69 -0
- package/dist/scripts/backfill-signup-attribution-class.d.ts.map +1 -0
- package/dist/scripts/backfill-signup-attribution-class.js +252 -0
- package/dist/scripts/backfill-signup-attribution-class.js.map +1 -0
- package/dist/scripts/directional-labeler.d.ts +147 -0
- package/dist/scripts/directional-labeler.d.ts.map +1 -1
- package/dist/scripts/directional-labeler.js +219 -1
- package/dist/scripts/directional-labeler.js.map +1 -1
- package/dist/scripts/dwr-cluster-edge.d.ts +47 -0
- package/dist/scripts/dwr-cluster-edge.d.ts.map +1 -1
- package/dist/scripts/dwr-cluster-edge.js +132 -0
- package/dist/scripts/dwr-cluster-edge.js.map +1 -1
- package/dist/scripts/frozen-window-attribution.js +1 -1
- package/dist/scripts/frozen-window-attribution.js.map +1 -1
- package/dist/scripts/lifecycle-dispatch.d.ts +40 -6
- package/dist/scripts/lifecycle-dispatch.d.ts.map +1 -1
- package/dist/scripts/lifecycle-dispatch.js +90 -35
- package/dist/scripts/lifecycle-dispatch.js.map +1 -1
- package/dist/scripts/lifecycle-readout.d.ts +61 -5
- package/dist/scripts/lifecycle-readout.d.ts.map +1 -1
- package/dist/scripts/lifecycle-readout.js +170 -37
- package/dist/scripts/lifecycle-readout.js.map +1 -1
- package/dist/scripts/lrw/annotation-sources.d.ts +16 -0
- package/dist/scripts/lrw/annotation-sources.d.ts.map +1 -0
- package/dist/scripts/lrw/annotation-sources.js +58 -0
- package/dist/scripts/lrw/annotation-sources.js.map +1 -0
- package/dist/scripts/lrw/completeness.d.ts +35 -0
- package/dist/scripts/lrw/completeness.d.ts.map +1 -0
- package/dist/scripts/lrw/completeness.js +180 -0
- package/dist/scripts/lrw/completeness.js.map +1 -0
- package/dist/scripts/lrw/disagreement.d.ts +145 -0
- package/dist/scripts/lrw/disagreement.d.ts.map +1 -0
- package/dist/scripts/lrw/disagreement.js +564 -0
- package/dist/scripts/lrw/disagreement.js.map +1 -0
- package/dist/scripts/lrw/extract-sql.d.ts +29 -0
- package/dist/scripts/lrw/extract-sql.d.ts.map +1 -0
- package/dist/scripts/lrw/extract-sql.js +137 -0
- package/dist/scripts/lrw/extract-sql.js.map +1 -0
- package/dist/scripts/lrw/registered.d.ts +38 -0
- package/dist/scripts/lrw/registered.d.ts.map +1 -0
- package/dist/scripts/lrw/registered.js +49 -0
- package/dist/scripts/lrw/registered.js.map +1 -0
- package/dist/scripts/lrw/relabel-sql.d.ts +21 -0
- package/dist/scripts/lrw/relabel-sql.d.ts.map +1 -0
- package/dist/scripts/lrw/relabel-sql.js +72 -0
- package/dist/scripts/lrw/relabel-sql.js.map +1 -0
- package/dist/scripts/monitor.js +1 -1
- package/dist/scripts/monitor.js.map +1 -1
- package/dist/scripts/product-updates-digest.js +1 -1
- package/dist/scripts/product-updates-digest.js.map +1 -1
- package/dist/scripts/seed-signals.d.ts.map +1 -1
- package/dist/scripts/seed-signals.js +39 -15
- package/dist/scripts/seed-signals.js.map +1 -1
- package/dist/tools/get-market-regime.d.ts.map +1 -1
- package/dist/tools/get-market-regime.js +2 -1
- package/dist/tools/get-market-regime.js.map +1 -1
- package/dist/tools/get-trade-call.d.ts +7 -0
- package/dist/tools/get-trade-call.d.ts.map +1 -1
- package/dist/tools/get-trade-call.js +100 -47
- package/dist/tools/get-trade-call.js.map +1 -1
- package/dist/tools/scan-funding-arb.d.ts.map +1 -1
- package/dist/tools/scan-funding-arb.js +3 -2
- package/dist/tools/scan-funding-arb.js.map +1 -1
- package/dist/tools/scan-trade-calls.d.ts.map +1 -1
- package/dist/tools/scan-trade-calls.js +2 -1
- package/dist/tools/scan-trade-calls.js.map +1 -1
- package/mcp.json +9 -0
- package/package.json +35 -3
- package/plugin.json +33 -0
- package/server.json +2 -2
- package/dist/lib/trend-mode-flag.d.ts +0 -31
- package/dist/lib/trend-mode-flag.d.ts.map +0 -1
- package/dist/lib/trend-mode-flag.js +0 -7
- package/dist/lib/trend-mode-flag.js.map +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "crypto-quant-signal-mcp",
|
|
3
|
+
"version": "1.31.1",
|
|
4
|
+
"description": "Composite BUY/SELL/HOLD verdicts for crypto perpetual futures — cross-venue signal interpretation, funding-rate arbitrage scanning, market-regime detection, and an on-chain-anchored track record. Built for AI agents.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "AlgoVault Labs",
|
|
7
|
+
"url": "https://algovault.com"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://algovault.com",
|
|
10
|
+
"repository": "https://github.com/AlgoVaultLabs/crypto-quant-signal-mcp",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"mcp",
|
|
14
|
+
"trading",
|
|
15
|
+
"crypto",
|
|
16
|
+
"trade-call",
|
|
17
|
+
"signals",
|
|
18
|
+
"hyperliquid",
|
|
19
|
+
"binance",
|
|
20
|
+
"bybit",
|
|
21
|
+
"okx",
|
|
22
|
+
"bitget",
|
|
23
|
+
"funding-rate",
|
|
24
|
+
"quant",
|
|
25
|
+
"defi",
|
|
26
|
+
"arbitrage",
|
|
27
|
+
"technical-analysis",
|
|
28
|
+
"model-context-protocol",
|
|
29
|
+
"ai-agent",
|
|
30
|
+
"x402"
|
|
31
|
+
],
|
|
32
|
+
"logo": "logo.png"
|
|
33
|
+
}
|
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://algovault.com">
|
|
3
3
|
<img src="https://raw.githubusercontent.com/AlgoVaultLabs/crypto-quant-signal-mcp/main/logo.png" alt="AlgoVault" width="120" />
|
|
4
|
+
|
|
4
5
|
</a>
|
|
5
6
|
</p>
|
|
6
7
|
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
</p>
|
|
12
13
|
|
|
13
14
|
<p align="center">
|
|
14
|
-
<span data-tr-field="pfe_wr">
|
|
15
|
+
<span data-tr-field="pfe_wr">90.8%</span> PFE win rate across <span data-tr-field="total_calls">941,979</span>+ verified calls. Merkle-verified on Base L2. Don't trust — verify. <!-- SNAPSHOT-LINE -->
|
|
15
16
|
</p>
|
|
16
17
|
|
|
17
18
|
<p align="center">
|
|
@@ -30,10 +31,11 @@
|
|
|
30
31
|
<p align="center">
|
|
31
32
|
<a href="https://www.npmjs.com/package/crypto-quant-signal-mcp"><img src="https://img.shields.io/npm/v/crypto-quant-signal-mcp" alt="npm version" /></a>
|
|
32
33
|
<a href="https://www.npmjs.com/package/crypto-quant-signal-mcp"><img src="https://img.shields.io/npm/dw/crypto-quant-signal-mcp" alt="npm downloads" /></a>
|
|
33
|
-
<a href="https://
|
|
34
|
+
<a href="https://github.com/AlgoVaultLabs/crypto-quant-signal-mcp/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="MIT" /></a>
|
|
34
35
|
<a href="https://basescan.org/address/0x6485396ac981fe0a58540dfbf3e730f6f7bcbf81"><img src="https://img.shields.io/badge/Track_Record-On--Chain_Verified-blue?logo=ethereum" alt="On-Chain Verified" /></a>
|
|
35
36
|
<a href="https://basescan.org/token/0x8004A169FB4a3325136EB29fA0ceB6D2e539a432?a=44544"><img src="https://img.shields.io/badge/ERC--8004-Verified_Agent-8A2BE2?logo=ethereum" alt="ERC-8004 Verified Agent" /></a>
|
|
36
37
|
<a href="https://github.com/AlgoVaultLabs/crypto-quant-signal-mcp"><img src="https://img.shields.io/github/stars/AlgoVaultLabs/crypto-quant-signal-mcp?style=social" alt="GitHub Repo stars" /></a>
|
|
38
|
+
<a href="https://mcpqueen.com/s/io.github.AlgoVaultFi/crypto-quant-signal-mcp"><img src="https://mcpqueen.com/badge/io.github.AlgoVaultFi/crypto-quant-signal-mcp.svg" alt="MCP Queen operational grade" /></a>
|
|
37
39
|
</p>
|
|
38
40
|
|
|
39
41
|
---
|
|
@@ -42,7 +44,7 @@
|
|
|
42
44
|
|
|
43
45
|
No code. No API key. No install. The server speaks Streamable HTTP at `https://api.algovault.com/mcp` — any [Model Context Protocol](https://github.com/modelcontextprotocol) client connects directly.
|
|
44
46
|
|
|
45
|
-
**1. Add the connector.** In Claude →
|
|
47
|
+
**1. Add the connector.** In Claude → Customize → Connectors → + → Add custom connector:
|
|
46
48
|
|
|
47
49
|
| Field | Value |
|
|
48
50
|
|---|---|
|
|
@@ -95,12 +97,12 @@ Under the hood, a self-tuning model fuses momentum, trend structure, derivatives
|
|
|
95
97
|
"_algovault": {
|
|
96
98
|
"version": "1.30.0",
|
|
97
99
|
"tool": "get_trade_call",
|
|
98
|
-
"compatible_with": [
|
|
100
|
+
"compatible_with": []
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
```
|
|
102
104
|
|
|
103
|
-
The `_algovault` block
|
|
105
|
+
The `_algovault` block is the envelope every tool response carries: the server version, the tool that answered, your quota, and `compatible_with` — the companion packages that accept this object directly. It projects from a machine-verified registry, so it lists a package only once that package is published and runnable. It is `[]` today, and that is the truthful answer: there is no companion package yet.
|
|
104
106
|
|
|
105
107
|
---
|
|
106
108
|
|
|
@@ -111,7 +113,7 @@ The `_algovault` block makes outputs composable: downstream risk and backtest to
|
|
|
111
113
|
scripts/snapshot-landing-data.mjs at npm-publish + Hetzner-deploy. Do NOT hand-edit the
|
|
112
114
|
numbers; edit "What's new" by hand. Wired by OPS-NPM-README-SINGLE-SOT-W1 (2026-05-31). -->
|
|
113
115
|
<p align="center">
|
|
114
|
-
<strong><span data-tr-field="pfe_wr">
|
|
116
|
+
<strong><span data-tr-field="pfe_wr">90.8%</span> PFE Win Rate</strong> · <strong><span data-tr-field="total_calls">941,979</span> trade calls</strong> · <strong><span data-tr-field="merkle_batches">177</span> on-chain batches</strong> <!-- SNAPSHOT-LINE -->
|
|
115
117
|
</p>
|
|
116
118
|
|
|
117
119
|
<p align="center">
|
|
@@ -135,16 +137,20 @@ AlgoVault is drop-in for every MCP-spec client, every major agent framework, and
|
|
|
135
137
|
|
|
136
138
|
**MCP clients.**
|
|
137
139
|
|
|
140
|
+
<!-- MCP_CLIENTS_README_TABLE:start -->
|
|
138
141
|
| Client | Config |
|
|
139
142
|
|---|---|
|
|
140
|
-
| **Claude Desktop** |
|
|
141
|
-
| **Claude Code** (CLI) | `claude mcp add crypto-quant-signal https://api.algovault.com/mcp` |
|
|
142
|
-
| **Cursor** | `~/.cursor/
|
|
143
|
+
| **Claude Desktop** | Customize → Connectors → + → Add custom connector → `https://api.algovault.com/mcp` |
|
|
144
|
+
| **Claude Code** (CLI) | `claude mcp add --transport http crypto-quant-signal https://api.algovault.com/mcp` |
|
|
145
|
+
| **Cursor** | `~/.cursor/mcp.json` → `mcpServers` block → `url: "https://api.algovault.com/mcp"` |
|
|
143
146
|
| **Cline** | VS Code Cline extension → MCP server settings → add Streamable HTTP server |
|
|
144
147
|
| **Codex** (OpenAI CLI) | `~/.codex/config.toml` → `[mcp_servers.algovault]` table + `url = "https://api.algovault.com/mcp"` (or `codex mcp` CLI) |
|
|
145
148
|
| **Windsurf** | `~/.codeium/windsurf/mcp_config.json` → `mcpServers.algovault.serverUrl = "https://api.algovault.com/mcp"` |
|
|
146
149
|
| **Continue.dev** | `config.yaml` → `mcpServers: [{ name: algovault, type: streamable-http, url: "https://api.algovault.com/mcp" }]` |
|
|
147
150
|
| Any other MCP-spec-compliant client | Configure the Streamable HTTP transport with URL `https://api.algovault.com/mcp` |
|
|
151
|
+
<!-- MCP_CLIENTS_README_TABLE:end -->
|
|
152
|
+
|
|
153
|
+
**Agent plugin hosts.** The npm package ships `plugin.json`, `mcp.json` and `.cursor-plugin/plugin.json`, so an Agent-Plugins-compatible host — Cursor included — can read the server definition out of the installed package instead of being handed a config block to paste.
|
|
148
154
|
|
|
149
155
|
**Agent frameworks.** First-party tutorials pair AlgoVault with each framework's canonical MCP adapter — copy-pasteable demo code, no SDK.
|
|
150
156
|
|
|
@@ -255,26 +261,26 @@ Pro 6-month is currently $129 — limited-time pricing; subscribe now and renewa
|
|
|
255
261
|
|
|
256
262
|
---
|
|
257
263
|
|
|
258
|
-
## What's new in v1.
|
|
264
|
+
## What's new in v1.31.0
|
|
265
|
+
|
|
266
|
+
- **🧩 Install from the package, not from a pasted config block.** `plugin.json`, `mcp.json` and `.cursor-plugin/plugin.json` now ship inside the npm tarball, so an Agent-Plugins-compatible host — Cursor included — reads the server definition straight out of the installed package. Until this release those files lived in the repository only, and no npm consumer could obtain them.
|
|
267
|
+
|
|
268
|
+
- **v1.31.1** — Trade-call verdicts are now chosen by one declared rule per timeframe and trend direction, instead of a global mode setting. The calls you receive are unchanged by the switch.
|
|
269
|
+
|
|
270
|
+
**Upgrading from v1.30.x** — one value in the response envelope changed: `_algovault.compatible_with` is now `[]` and names no companion package. If your client rendered those package names, stop rendering them; there is no companion package published today. Nothing else in the envelope changed, and no tool or parameter was added, renamed or removed.
|
|
271
|
+
|
|
272
|
+
### v1.30.x highlights (recap)
|
|
259
273
|
|
|
260
274
|
- **🔑 Your key, one click away.** Every tool response that carries an auth block now returns `claim_url` and `claim_hint` in the `_algovault` envelope — a direct link to keep the key you are already using, and a heads-up before you reach the cap.
|
|
261
275
|
- **💵 Six-month pricing is machine-readable.** `GET /api/plans/public` gains `price_usd_6month` on every tier, so a client can render prepay pricing instead of hardcoding it.
|
|
262
276
|
- **🤝 Enterprise is quoted, not published.** The plans endpoint now returns `null` for Enterprise price and limits rather than a fixed figure. No key was removed — the values are null.
|
|
263
277
|
|
|
264
|
-
**Upgrading from v1.29.x** — nothing breaking, but one value changed: if you rendered an Enterprise price from `GET /api/plans/public`, it is now `null` and Enterprise is quoted directly. Every tier key is still present. Two response fields were added, no tool was added or renamed.
|
|
265
|
-
|
|
266
278
|
### v1.29.x highlights (recap)
|
|
267
279
|
|
|
268
280
|
- **📊 The track record is a tool, not only a resource.** `get_track_record` returns the same verified aggregate as `performance://signal-performance`, so a harness that bridges tools but not resources can read it.
|
|
269
281
|
- **✋ HOLD means HOLD.** When a book is not currently trading, the call returns HOLD instead of a direction, and the reasoning says so and says when it resumes.
|
|
270
282
|
- **🔓 Allowances are machine-readable.** `GET /api/plans/public` returns the current free and paid call limits, unauthenticated.
|
|
271
283
|
|
|
272
|
-
### v1.28.x highlights (recap)
|
|
273
|
-
|
|
274
|
-
- **🔐 Authentication tells you what happened.** Every response carries `_algovault.auth`. A well-formed but unrecognised key is refused instead of being quietly served free-tier data, and "malformed", "unknown" and "we couldn't verify" are three distinct outcomes.
|
|
275
|
-
- **📘 Two parameters that were always there, now documented.** `assetClass` on the trade-call tools and `minLiquidityUsd` on `scan_trade_calls`, both projected from the live schema so the docs cannot drift from the server.
|
|
276
|
-
- **🤝 Pair with [Binance Agent OS](https://algovault.com/integrations/binance-agent-os).** One MCP client, two servers: AlgoVault returns the verdict, Binance Agent OS executes it. OAuth at connect time — no API keys on your machine, and trading confined to a sub-account you fund yourself.
|
|
277
|
-
|
|
278
284
|
> **Refresh your MCP client to pick up this release.** MCP clients cache `tools/list` at session start — Claude.ai/Desktop: toggle the connector off+on; Cursor/Cline: restart the MCP server connection.
|
|
279
285
|
|
|
280
286
|
---
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAWA,OAAO,EAAE,SAAS,EAAuC,MAAM,yCAAyC,CAAC;AAIzG,OAAO,KAAK,EAAc,WAAW,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAWA,OAAO,EAAE,SAAS,EAAuC,MAAM,yCAAyC,CAAC;AAIzG,OAAO,KAAK,EAAc,WAAW,EAAE,MAAM,YAAY,CAAC;AAqW1D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,MAAM,EAAE,MAAM,GACb,MAAM,CAOR;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,OAAO,SAAS,EAAE,OAAO,EAC9B,GAAG,EAAE,OAAO,SAAS,EAAE,QAAQ,EAC/B,UAAU,EAAE,MAAM,SAAS,GAC1B,OAAO,CAAC,IAAI,CAAC,CAYf;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,OAAO,SAAS,EAAE,OAAO,EAC9B,GAAG,EAAE,OAAO,SAAS,EAAE,QAAQ,EAC/B,OAAO,EAAE,WAAW,GACnB,OAAO,CAQT;AAsrKD,wBAAgB,mBAAmB,cAElC"}
|
package/dist/index.js
CHANGED
|
@@ -252,6 +252,7 @@ const account_handlers_js_1 = require("./lib/account-handlers.js");
|
|
|
252
252
|
const routes_js_1 = require("./lib/lifecycle/routes.js");
|
|
253
253
|
const census_js_1 = require("./lib/lifecycle/census.js");
|
|
254
254
|
const site_nav_js_1 = require("./lib/site-nav.js");
|
|
255
|
+
const site_theme_js_1 = require("./lib/site-theme.js");
|
|
255
256
|
const oi_ranking_js_1 = require("./lib/oi-ranking.js");
|
|
256
257
|
/** Timing-safe string comparison to prevent side-channel attacks on admin key. */
|
|
257
258
|
function safeCompare(a, b) {
|
|
@@ -449,7 +450,7 @@ function createServer() {
|
|
|
449
450
|
// Single-derivation: resolve the route once + dispatch to the perp or equity
|
|
450
451
|
// engine. The model picking get_trade_call or get_equity_call yields the same
|
|
451
452
|
// contract-correct engine. Quota is handled inside whichever engine runs.
|
|
452
|
-
const { route, result } = await (0, upstream_weight_budget_js_1.runAsCaller)(toolNameForAnalytics, () => (0, trade_call_router_js_1.routeTradeCall)({ coin, timeframe, includeReasoning, exchange, assetClass, license }));
|
|
453
|
+
const { route, result } = await (0, upstream_weight_budget_js_1.runAsCaller)(toolNameForAnalytics === 'get_trade_signal' ? 'get_trade_signal' : 'get_trade_call', () => (0, trade_call_router_js_1.routeTradeCall)({ coin, timeframe, includeReasoning, exchange, assetClass, license }));
|
|
453
454
|
const verdict = result.call;
|
|
454
455
|
(0, analytics_js_1.logRequest)({
|
|
455
456
|
sessionId: (0, license_js_1.getRequestSessionId)(),
|
|
@@ -3413,6 +3414,51 @@ async function startHttp() {
|
|
|
3413
3414
|
? await (0, signup_emails_store_js_1.upsertSignupEmail)({ email, source: safeSource, optin_consent: true })
|
|
3414
3415
|
: { inserted: false };
|
|
3415
3416
|
const optinAt = new Date().toISOString();
|
|
3417
|
+
// ── FUNNEL-FIX-SIGNIN-PAID-IDENTITY-W1 — a PAYING customer never gets a shadow free key ──
|
|
3418
|
+
//
|
|
3419
|
+
// This route used to mint unconditionally, so a paying customer who typed their own
|
|
3420
|
+
// address here received an `av_free_` key that cannot resolve at `/account`. Measured on
|
|
3421
|
+
// cus_UepUXyDjxzx99c (GitHub issue #39): a free key minted 2026-07-17 19:31:17 UTC, 27
|
|
3422
|
+
// minutes before her $49 upgrade invoice, `last_used_at` still NULL.
|
|
3423
|
+
//
|
|
3424
|
+
// 🛑 UNLIKE the OAuth callback, this endpoint is an UNAUTHENTICATED POST carrying only an
|
|
3425
|
+
// address — nothing here proves the sender owns it. So the paid key is NEVER put in the
|
|
3426
|
+
// response body; that would make this route a paid-credential oracle for any address an
|
|
3427
|
+
// attacker can guess. It goes out by EMAIL, which is what proves ownership — the same
|
|
3428
|
+
// choice `/account/recover-key` already makes.
|
|
3429
|
+
//
|
|
3430
|
+
// Residual, stated rather than papered over: the PAID response omits `key` /
|
|
3431
|
+
// `referral_code` / `referral_link`, so a caller who inspects the JSON can tell that an
|
|
3432
|
+
// address belongs to a customer. That is a membership oracle, not a credential one, and
|
|
3433
|
+
// it is strictly less bad than either alternative (disclose the key, or keep locking
|
|
3434
|
+
// paying customers out of their own billing portal).
|
|
3435
|
+
const { resolveSigninIdentity } = await import('./lib/signin-identity.js');
|
|
3436
|
+
const signinIdentity = await resolveSigninIdentity(email);
|
|
3437
|
+
if (signinIdentity.outcome === 'PAID' && signinIdentity.key) {
|
|
3438
|
+
const { sendKeyRecoveryEmail } = await import('./lib/email.js');
|
|
3439
|
+
// Bound to locals first. Inlining `signinIdentity.key` here put a bare `key,` member
|
|
3440
|
+
// access inside an object that also carries `tier:`, which is precisely the shape the
|
|
3441
|
+
// credential-outcome gate (R1) reads as an unstamped LicenseInfo — this is a recovery
|
|
3442
|
+
// payload, not a license, and naming it says so to both the gate and the next reader.
|
|
3443
|
+
const recoveryKey = signinIdentity.key;
|
|
3444
|
+
const recoveryTier = signinIdentity.tier ?? 'starter';
|
|
3445
|
+
void sendKeyRecoveryEmail({ to: email, apiKey: recoveryKey, tier: recoveryTier })
|
|
3446
|
+
.then(() => console.log(`[/api/signup-email] existing paid account — key emailed to ${email[0]}***@***`))
|
|
3447
|
+
.catch((err) => console.error(`[/api/signup-email] paid key recovery send failed: ${err instanceof Error ? err.message : err}`));
|
|
3448
|
+
return res.status(200).json({ ok: true, optin_at: optinAt, inserted: result.inserted });
|
|
3449
|
+
}
|
|
3450
|
+
// INDETERMINATE mints NOTHING either, and answers with the SAME body as the PAID case so
|
|
3451
|
+
// the two are indistinguishable from outside. Falling through to the free path here was
|
|
3452
|
+
// considered and rejected: `mintFreeKey` is idempotent, but during a Stripe outage the
|
|
3453
|
+
// address we could not check may well BE a customer's, and the transactional email would
|
|
3454
|
+
// then post a free key to a paying human — reconstructing issue #39 exactly, on the one
|
|
3455
|
+
// day nobody is watching for it. The cost is bounded (a retry once Stripe answers) and
|
|
3456
|
+
// the paid product already depends on Stripe being reachable.
|
|
3457
|
+
if (signinIdentity.outcome === 'INDETERMINATE' || !signinIdentity.key) {
|
|
3458
|
+
console.error('[/api/signup-email] identity INDETERMINATE — no key minted, no key sent');
|
|
3459
|
+
return res.status(200).json({ ok: true, optin_at: optinAt, inserted: result.inserted });
|
|
3460
|
+
}
|
|
3461
|
+
const resolvedFreeKey = signinIdentity.key;
|
|
3416
3462
|
// Referred path UNCHANGED: a valid, non-self ref mints the key + grants the +500
|
|
3417
3463
|
// referee bonus + attribution. Non-referred → key only, NO bonus (the +500 stays
|
|
3418
3464
|
// referral-exclusive). Fail-open; never blocks the 200.
|
|
@@ -3431,7 +3477,7 @@ async function startHttp() {
|
|
|
3431
3477
|
// REFERRAL-FREE-KEY-SIGNUP-W1: mint an av_free_ key for EVERY signup (idempotent
|
|
3432
3478
|
// on email), then derive the persisted referral code + share link. The keyless
|
|
3433
3479
|
// free tier (no key passed) is untouched — this only ADDS the opt-in account.
|
|
3434
|
-
const {
|
|
3480
|
+
const { isEphemeralKey } = await import('./lib/free-keys-store.js');
|
|
3435
3481
|
const { ensureUserCode } = await import('./lib/referral-store.js');
|
|
3436
3482
|
const { shareLink } = await import('./lib/referral-constants.js');
|
|
3437
3483
|
const { isNewSignupEnabled } = await import('./lib/auth-providers.js');
|
|
@@ -3448,7 +3494,9 @@ async function startHttp() {
|
|
|
3448
3494
|
key = (await captureEmail(ephemeralKey, email, ref ?? null)).key;
|
|
3449
3495
|
}
|
|
3450
3496
|
else {
|
|
3451
|
-
|
|
3497
|
+
// Already minted (idempotently) by `resolveSigninIdentity` above — reusing its value is
|
|
3498
|
+
// what keeps this surface free of a second, independent identity decision.
|
|
3499
|
+
key = resolvedFreeKey;
|
|
3452
3500
|
}
|
|
3453
3501
|
const referralCode = await ensureUserCode(key, email);
|
|
3454
3502
|
const referralLink = shareLink(referralCode);
|
|
@@ -3587,20 +3635,41 @@ async function startHttp() {
|
|
|
3587
3635
|
const provider = getAuthProvider(id);
|
|
3588
3636
|
const redirectUri = `https://${req.get('host')}/auth/${id}/callback`;
|
|
3589
3637
|
const profile = await provider.exchange({ code, redirectUri });
|
|
3590
|
-
//
|
|
3591
|
-
|
|
3638
|
+
// FUNNEL-FIX-SIGNIN-PAID-IDENTITY-W1: resolve WHICH credential belongs to this verified
|
|
3639
|
+
// human before issuing anything. This used to be a bare `mintFreeKey` call on the raw
|
|
3640
|
+
// verified email, which handed a paying customer an `av_free_` key that cannot resolve
|
|
3641
|
+
// at `/account` — measured on cus_UepUXyDjxzx99c, 2026-07-17 (issue #39). The provider verified
|
|
3642
|
+
// this email, so this is one of the two surfaces allowed to RENDER a paid key.
|
|
3643
|
+
const { resolveSigninIdentity } = await import('./lib/signin-identity.js');
|
|
3592
3644
|
const { ensureUserCode } = await import('./lib/referral-store.js');
|
|
3593
3645
|
const { shareLink } = await import('./lib/referral-constants.js');
|
|
3594
|
-
const
|
|
3646
|
+
const identity = await resolveSigninIdentity(profile.email);
|
|
3647
|
+
// Stripe is configured and did not answer. Minting here is exactly how a paying human
|
|
3648
|
+
// acquires a shadow free identity, so mint nothing and send them to the page that can
|
|
3649
|
+
// resolve them once Stripe is back. REFUSE, never throw — this is a live serving path.
|
|
3650
|
+
if (identity.outcome === 'INDETERMINATE' || !identity.key) {
|
|
3651
|
+
res.setHeader('Content-Type', 'text/html; charset=utf-8');
|
|
3652
|
+
return res.status(503).send(`<!doctype html><meta charset="utf-8"><title>Signed in — AlgoVault</title>` +
|
|
3653
|
+
`<body style="font-family:system-ui;background:#0d1117;color:#c9d1d9;max-width:560px;margin:60px auto;padding:0 20px">` +
|
|
3654
|
+
`<h1 style="color:#d29922">Signed in, but we couldn't load your account</h1>` +
|
|
3655
|
+
`<p>Your ${id} sign-in worked. Our billing provider didn't respond just now, so we haven't shown a key — issuing one blindly could hand a paying customer the wrong credential.</p>` +
|
|
3656
|
+
`<p>Please retry in a minute, or go to <a style="color:#58a6ff" href="/account">/account</a> and use <strong>Recover lost key</strong>.</p>` +
|
|
3657
|
+
`<p style="color:#8b949e;font-size:13px">Still stuck? <a style="color:#58a6ff" href="mailto:admin@algovault.com">admin@algovault.com</a>.</p></body>`);
|
|
3658
|
+
}
|
|
3659
|
+
const key = identity.key;
|
|
3595
3660
|
const referralCode = await ensureUserCode(key, profile.email);
|
|
3596
3661
|
const referralLink = shareLink(referralCode);
|
|
3597
3662
|
// Attribution first-touch survives the redirect: stamp ?src (cookie) against the key.
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3663
|
+
// FREE only — a PAID identity already converted, and stamping `tierRequested: 'free'`
|
|
3664
|
+
// against their live key would invent a second, fictional signup for one human.
|
|
3665
|
+
if (identity.outcome === 'FREE') {
|
|
3666
|
+
try {
|
|
3667
|
+
const src = readCookie('av_oauth_src');
|
|
3668
|
+
const { recordSignupAttribution } = await import('./lib/subscriber-attribution.js');
|
|
3669
|
+
recordSignupAttribution({ clientReferenceId: key, utmSource: src, tierRequested: 'free' });
|
|
3670
|
+
}
|
|
3671
|
+
catch { /* best-effort */ }
|
|
3602
3672
|
}
|
|
3603
|
-
catch { /* best-effort */ }
|
|
3604
3673
|
// Clear the CSRF cookies.
|
|
3605
3674
|
res.setHeader('Set-Cookie', [
|
|
3606
3675
|
'av_oauth_state=; HttpOnly; SameSite=Lax; Path=/auth; Max-Age=0',
|
|
@@ -3609,13 +3678,22 @@ async function startHttp() {
|
|
|
3609
3678
|
]);
|
|
3610
3679
|
res.setHeader('Content-Type', 'text/html; charset=utf-8');
|
|
3611
3680
|
const stubNote = provider.live ? '' : ' <em>(stub — set the provider OAuth creds to go live)</em>';
|
|
3681
|
+
const paid = identity.outcome === 'PAID';
|
|
3682
|
+
// A paid human gets THEIR key, their real tier, and the billing portal stated as the
|
|
3683
|
+
// cancel path — the thing issue #39 could not find. The free copy is unchanged.
|
|
3684
|
+
const keyCaption = paid
|
|
3685
|
+
? `Your <strong>${identity.tier}</strong> API key${identity.subscriptionStatus && identity.subscriptionStatus !== 'active' ? ` (subscription: ${identity.subscriptionStatus})` : ''}:`
|
|
3686
|
+
: 'Your free API key (200 calls/mo, 100/day, no card):';
|
|
3687
|
+
const footLine = paid
|
|
3688
|
+
? `Use it as <code>Authorization: Bearer <key></code>. To change plan, update your card or <strong>cancel</strong>, open <a style="color:#58a6ff" href="/account">/account</a> → <em>I have my API key</em> → <em>Open Billing Portal</em>.`
|
|
3689
|
+
: `Use it as <code>Authorization: Bearer <key></code>. <a style="color:#58a6ff" href="/account">Manage your account →</a>`;
|
|
3612
3690
|
return res.send(`<!doctype html><meta charset="utf-8"><title>You're in — AlgoVault</title>` +
|
|
3613
3691
|
`<body style="font-family:system-ui;background:#0d1117;color:#c9d1d9;max-width:560px;margin:60px auto;padding:0 20px">` +
|
|
3614
3692
|
`<h1 style="color:#56d364">You're in via ${id}${stubNote}</h1>` +
|
|
3615
|
-
`<p
|
|
3693
|
+
`<p>${keyCaption}</p>` +
|
|
3616
3694
|
`<pre style="background:#161b22;border:1px solid #30363d;border-radius:8px;padding:12px;user-select:all">${key}</pre>` +
|
|
3617
3695
|
`<p>Referral link: <a style="color:#58a6ff" href="${referralLink}">${referralLink}</a></p>` +
|
|
3618
|
-
`<p style="color:#8b949e;font-size:13px"
|
|
3696
|
+
`<p style="color:#8b949e;font-size:13px">${footLine}</p></body>`);
|
|
3619
3697
|
}
|
|
3620
3698
|
catch (err) {
|
|
3621
3699
|
console.error(`[/auth/${id}/callback] internal error: ${err instanceof Error ? err.message : err}`);
|
|
@@ -3923,9 +4001,11 @@ async function startHttp() {
|
|
|
3923
4001
|
catch { /* best-effort */ }
|
|
3924
4002
|
}
|
|
3925
4003
|
}
|
|
3926
|
-
// TG-BROADCAST-STACK-W1 CH6 (2026-05-28): track-token capture
|
|
3927
|
-
// /unlock_premium_alerts npm-install verification path
|
|
3928
|
-
//
|
|
4004
|
+
// TG-BROADCAST-STACK-W1 CH6 (2026-05-28): track-token capture, BORN as the
|
|
4005
|
+
// /unlock_premium_alerts npm-install verification path β and since repurposed
|
|
4006
|
+
// as the integrations attribution header — that command no longer exists, this
|
|
4007
|
+
// capture is live; see src/lib/track-token.ts before deleting anything here.
|
|
4008
|
+
// Header `X-AlgoVault-Track-Token` (set by stdio-client wrapper) takes
|
|
3929
4009
|
// precedence over `--track-token=` argv (process-wide fallback).
|
|
3930
4010
|
// Idempotent per (session_id, token); first tools/call emits one
|
|
3931
4011
|
// funnel_events row, subsequent calls suppressed. The bot's */10 cron
|
|
@@ -4224,8 +4304,8 @@ async function startHttp() {
|
|
|
4224
4304
|
// OPS-HL-RATELIMITER-W2: the in-server backfill is bulk → run in `batch`
|
|
4225
4305
|
// weight class so its HL candle fetches wait behind the shared weight budget
|
|
4226
4306
|
// and yield the interactive reserve to live MCP tool callers.
|
|
4227
|
-
setTimeout(() => (0, upstream_weight_budget_js_1.runAsBatch)(() => (0, signal_performance_js_1.runBackfill)(), '
|
|
4228
|
-
setInterval(() => (0, upstream_weight_budget_js_1.runAsBatch)(() => (0, signal_performance_js_1.runBackfill)(), '
|
|
4307
|
+
setTimeout(() => (0, upstream_weight_budget_js_1.runAsBatch)(() => (0, signal_performance_js_1.runBackfill)(), 'backfill_outcomes_server').catch(() => { }), 10_000); // first run after 10s
|
|
4308
|
+
setInterval(() => (0, upstream_weight_budget_js_1.runAsBatch)(() => (0, signal_performance_js_1.runBackfill)(), 'backfill_outcomes_server').catch(() => { }), 300_000); // then every 5 min
|
|
4229
4309
|
// CALL-REGIME-WEBHOOK-LAYER-W1 (2026-05-29): outbound webhook delivery worker.
|
|
4230
4310
|
// Ships DARK — only starts when WEBHOOK_DELIVERY_ENABLED=true. Flag-off = zero
|
|
4231
4311
|
// new behavior (worker never starts; the post-insert detection hook in
|
|
@@ -4583,20 +4663,7 @@ ${(0, analytics_snippet_js_1.renderAnalyticsRegion)()}
|
|
|
4583
4663
|
<!-- END: AlgoVault canonical design loader -->
|
|
4584
4664
|
<link rel="icon" type="image/png" href="/logo.png">
|
|
4585
4665
|
<!-- DESIGN-W11 / C2 / R-2 inline-fix: Tailwind CDN for canonical Nav utility classes (hidden sm:flex, text-gray-400, hover:text-white, text-mint-400, bg-mint-500/15) -->
|
|
4586
|
-
|
|
4587
|
-
<script>
|
|
4588
|
-
tailwind.config = {
|
|
4589
|
-
theme: {
|
|
4590
|
-
extend: {
|
|
4591
|
-
colors: {
|
|
4592
|
-
navy: { 900: '#060a14', 800: '#0a0e1a', 700: '#0f1526', 600: '#161d30' },
|
|
4593
|
-
mint: { 50: 'oklch(0.97 0.03 165)', 100: 'oklch(0.94 0.06 165)', 200: 'oklch(0.91 0.09 165)', 300: 'oklch(0.89 0.13 165)', 400: 'oklch(0.86 0.16 165)', 500: 'oklch(0.78 0.18 165)', 600: 'oklch(0.66 0.18 165)', 700: 'oklch(0.54 0.16 165)', 800: 'oklch(0.42 0.12 165)', 900: 'oklch(0.32 0.08 165)' },
|
|
4594
|
-
steel: { 400: '#8b9bb5', 500: '#7b8ca0', 600: '#5e6d82' }
|
|
4595
|
-
}
|
|
4596
|
-
}
|
|
4597
|
-
}
|
|
4598
|
-
}
|
|
4599
|
-
</script>
|
|
4666
|
+
${(0, site_theme_js_1.renderThemeBlock)()}
|
|
4600
4667
|
<style>
|
|
4601
4668
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
4602
4669
|
/* DESIGN-W11 / C2 / Q-W11-2: REPLACED body styles per architect ratification. background/color/font-family use canonical CSS vars; padding+max-width move to artboard wrapper. Pre-W11: body { padding:24px; max-width:1400px; margin:0 auto; background:#0f1117; color:#e1e4e8 } */
|
|
@@ -5495,8 +5562,10 @@ ${(0, footer_content_js_1.renderBrandFooter)('desktop')}
|
|
|
5495
5562
|
}
|
|
5496
5563
|
// ── Entry Point ──
|
|
5497
5564
|
// TG-BROADCAST-STACK-W1 CH6 (2026-05-28): capture `--track-token=` from
|
|
5498
|
-
// process.argv at startup (no-op if absent).
|
|
5499
|
-
// viral mechanic
|
|
5565
|
+
// process.argv at startup (no-op if absent). Built for the /unlock_premium_alerts
|
|
5566
|
+
// viral mechanic, which no longer exists; this argv path is its one genuine
|
|
5567
|
+
// residue and is deliberately kept — see src/lib/track-token.ts, whose header
|
|
5568
|
+
// explains why a grep of `unlock_premium` must not delete that module.
|
|
5500
5569
|
// OPS-MCP-SESSION-RESILIENCE-W1: boot only as the entrypoint (node dist/index.js / npx
|
|
5501
5570
|
// stdio). The guard makes this module import-safe so the stateless handler + correlation
|
|
5502
5571
|
// resolver can be unit-tested without binding a port or connecting upstreams.
|