@prereason/mcp 0.1.6 → 0.1.9

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.9 (2026-03-10)
4
+
5
+ - Expand `socket.yml` to suppress all known-safe transitive dependency alerts from `@modelcontextprotocol/sdk`
6
+ - Covers eval (ajv), shell (cross-spawn), filesystem (express/send), debug, dynamic require, unmaintained micro-packages, and more
7
+
8
+ ## 0.1.8 (2026-03-05)
9
+
10
+ - Remove `createRequire` / dynamic `require('../package.json')` — hardcode version constants
11
+ - Eliminates Socket.dev "Dynamic require" and "Filesystem access" findings from our code
12
+ - Add `socket.yml` for GitHub PR alert suppression of expected behaviors (network access, env vars)
13
+
14
+ ## 0.1.7 (2026-03-04)
15
+
16
+ - Pin `@modelcontextprotocol/sdk` to exact `1.27.1` (fixes transitive CVEs in hono and qs)
17
+ - Update metric count from 26 to 30 (added 200D MA, distance from 200D MA, USDT market cap, USDT dominance)
18
+ - Update `btc.momentum` description to reflect 200D MA support/resistance
19
+ - Update `cross.regime` description to reflect USDT.D risk sentiment
20
+
3
21
  ## 0.1.6 (2026-02-25)
4
22
 
5
23
  - Fix description wording: replace "trend signals" with "trend interpretation"
package/README.md CHANGED
@@ -71,7 +71,7 @@ Restart your MCP client after editing the config. PreReason should appear with 5
71
71
  | Tool | Auth | Description |
72
72
  |------|------|-------------|
73
73
  | `list_templates` | Open | List all 17 context templates with tier requirements |
74
- | `list_metrics` | Open | List all 26 available metrics (filterable by category) |
74
+ | `list_metrics` | Open | List all 30 available metrics (filterable by category) |
75
75
  | `get_health` | Open | API health check, version, account tier |
76
76
  | `get_context` | Required | Fetch a context template (markdown or JSON) |
77
77
  | `get_metric` | Required | Fetch a single metric with trend/signal/percentile |
@@ -91,7 +91,7 @@ Restart your MCP client after editing the config. PreReason should appear with 5
91
91
  ### Basic - $19.99/mo (5 templates)
92
92
  | Template | Description |
93
93
  |----------|-------------|
94
- | `btc.momentum` | Extended momentum with 90d trends and percentiles |
94
+ | `btc.momentum` | 200D MA support/resistance with 7d/30d/90d momentum and YTD percentiles |
95
95
  | `macro.liquidity` | Liquidity indicators with momentum analysis |
96
96
  | `btc.on-chain` | Hash rate, difficulty, fees, mempool health |
97
97
  | `cross.breadth` | Cross-asset breadth with SPY, DXY, VIX |
@@ -102,7 +102,7 @@ Restart your MCP client after editing the config. PreReason should appear with 5
102
102
  |----------|-------------|
103
103
  | `btc.full` | Complete market intelligence with all metrics and analysis |
104
104
  | `btc.factors` | Multi-factor attribution for BTC price movements |
105
- | `cross.regime` | Market regime classification (risk-on/risk-off/transition) |
105
+ | `cross.regime` | Regime classification (risk-on/risk-off/transition) with USDT.D risk sentiment |
106
106
  | `fx.liquidity` | FX environment with DXY, treasury, and global liquidity |
107
107
  | `btc.energy` | Production cost model with gas input pressure |
108
108
  | `btc.treasury` | Corporate Bitcoin treasury intelligence from SEC filings |
package/bin/cli.js CHANGED
@@ -17,17 +17,17 @@
17
17
  * PREREASON_URL Override the default endpoint URL
18
18
  */
19
19
 
20
- import { createRequire } from 'node:module';
21
20
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
22
21
  import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
23
22
 
23
+ // Keep in sync with package.json on each release
24
+ const PKG_NAME = '@prereason/mcp';
25
+ const PKG_VERSION = '0.1.9';
24
26
  const DEFAULT_URL = 'https://api.prereason.com/api/mcp';
25
27
 
26
28
  // --- Help / Version ---
27
29
  if (process.argv.includes('--help') || process.argv.includes('-h')) {
28
- const require = createRequire(import.meta.url);
29
- const pkg = require('../package.json');
30
- process.stderr.write(`${pkg.name} v${pkg.version}\n\n`);
30
+ process.stderr.write(`${PKG_NAME} v${PKG_VERSION}\n\n`);
31
31
  process.stderr.write('Usage:\n');
32
32
  process.stderr.write(' npx @prereason/mcp\n');
33
33
  process.stderr.write(' npx @prereason/mcp [--header Key:Value]...\n\n');
@@ -43,9 +43,7 @@ if (process.argv.includes('--help') || process.argv.includes('-h')) {
43
43
  }
44
44
 
45
45
  if (process.argv.includes('--version') || process.argv.includes('-v')) {
46
- const require = createRequire(import.meta.url);
47
- const pkg = require('../package.json');
48
- process.stderr.write(`${pkg.version}\n`);
46
+ process.stderr.write(`${PKG_VERSION}\n`);
49
47
  process.exit(0);
50
48
  }
51
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prereason/mcp",
3
- "version": "0.1.6",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "description": "MCP server for pre-analyzed Bitcoin and macro financial intelligence. 17 context templates with trend interpretation, momentum analysis, and cross-asset correlations.",
6
6
  "bin": {
@@ -13,7 +13,7 @@
13
13
  "CHANGELOG.md"
14
14
  ],
15
15
  "dependencies": {
16
- "@modelcontextprotocol/sdk": "^1.26.0"
16
+ "@modelcontextprotocol/sdk": "1.27.1"
17
17
  },
18
18
  "engines": {
19
19
  "node": ">=18"