@keelage/mcp 0.1.1 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keelage/mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Token intelligence for Robinhood Chain, as an MCP server. Structural verdicts, holder maps, launcher templates and a published track record. Research only, not financial advice.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/server/core.mjs CHANGED
@@ -9,7 +9,13 @@ import { templateFor } from '../lib/template.mjs';
9
9
  import { trackRecord } from '../lib/record.mjs';
10
10
  import { knownRulesets, THRESHOLDS } from '../lib/calc.mjs';
11
11
 
12
- export const SERVER_INFO = { name: 'keelage', title: 'Keelage', version: '0.1.0' };
12
+ // The version the server reports is the package's, read through io so the hosted bundle (package.json embedded) agrees.
13
+ import { io } from '../lib/io.mjs';
14
+ import { dirname, join } from 'path';
15
+ import { fileURLToPath } from 'url';
16
+ const PKG_DIR = (() => { try { return join(dirname(fileURLToPath(import.meta.url)), '..'); } catch { return '/keelage'; } })();
17
+ const PKG_VERSION = (() => { try { return JSON.parse(io.read(join(PKG_DIR, 'package.json'))).version; } catch { return '0.0.0'; } })();
18
+ export const SERVER_INFO = { name: 'keelage', title: 'Keelage', version: PKG_VERSION };
13
19
  const SUPPORTED = ['2025-11-25', '2025-06-18', '2025-03-26', '2024-11-05'];
14
20
  const ADDRESS_SCHEMA = { type: 'string', description: 'Token contract address on Robinhood Chain (0x + 40 hex characters).', pattern: '^0x[0-9a-fA-F]{40}$' };
15
21
  // The ruleset the verdict is computed under: a preset by name, or the default with some lines replaced.
@@ -5,5 +5,6 @@ import { setIO, memoryIO } from '../lib/io.mjs';
5
5
  import thresholds from '../data/thresholds.json' with { type: 'json' };
6
6
  import trackRecord from '../data/track-record.json' with { type: 'json' };
7
7
  import templates from '../lib/templates.json' with { type: 'json' };
8
+ import pkg from '../package.json' with { type: 'json' };
8
9
 
9
- setIO(memoryIO({ 'data/thresholds.json': thresholds, 'data/track-record.json': trackRecord, 'lib/templates.json': templates }));
10
+ setIO(memoryIO({ 'data/thresholds.json': thresholds, 'data/track-record.json': trackRecord, 'lib/templates.json': templates, 'package.json': pkg }));