@openephemeris/mcp-server 3.13.4 → 3.13.6
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.
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import fs from "node:fs";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { fileURLToPath } from "node:url";
|
|
20
|
-
import { registerTool } from "../index.js";
|
|
20
|
+
import { registerTool, SERVER_VERSION } from "../index.js";
|
|
21
21
|
import { getActiveClient } from "../../backend/client.js";
|
|
22
22
|
// ── Constants ─────────────────────────────────────────────────────────────────
|
|
23
23
|
export const BI_WHEEL_RESOURCE_URI = "ui://openephemeris/bi-wheel";
|
|
@@ -303,7 +303,7 @@ registerTool({
|
|
|
303
303
|
return {
|
|
304
304
|
content: [
|
|
305
305
|
{ type: "text", text: summary },
|
|
306
|
-
{ type: "text", text: JSON.stringify(payload) },
|
|
306
|
+
{ type: "text", text: JSON.stringify({ ...payload, server_version: SERVER_VERSION }) },
|
|
307
307
|
{
|
|
308
308
|
type: "resource",
|
|
309
309
|
resource: {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import fs from "node:fs";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { fileURLToPath } from "node:url";
|
|
20
|
-
import { registerTool } from "../index.js";
|
|
20
|
+
import { registerTool, SERVER_VERSION } from "../index.js";
|
|
21
21
|
import { getActiveClient } from "../../backend/client.js";
|
|
22
22
|
// ── Constants ─────────────────────────────────────────────────────────────
|
|
23
23
|
export const BODYGRAPH_RESOURCE_URI = "ui://openephemeris/bodygraph";
|
|
@@ -78,6 +78,7 @@ const CENTER_NAME_ALIASES = {
|
|
|
78
78
|
"heart": "Heart",
|
|
79
79
|
"will": "Heart",
|
|
80
80
|
"solar plexus": "Solar Plexus",
|
|
81
|
+
"solar_plexus": "Solar Plexus",
|
|
81
82
|
"emotional": "Solar Plexus",
|
|
82
83
|
"sp": "Solar Plexus",
|
|
83
84
|
"spleen": "Spleen",
|
|
@@ -176,9 +177,9 @@ function buildHdModelPayload(data, birthParams) {
|
|
|
176
177
|
return g1 != null && g2 != null ? `${g1}-${g2}` : String(ch);
|
|
177
178
|
});
|
|
178
179
|
}
|
|
179
|
-
// Personality / Design
|
|
180
|
-
const rawP = data.
|
|
181
|
-
const rawD = data.design_gates ?? data.unconscious_gates ?? [];
|
|
180
|
+
// Personality / Design gates — API nests them under personality.activations / design.activations
|
|
181
|
+
const rawP = data.personality?.activations ?? data.personality_gates ?? data.conscious_gates ?? [];
|
|
182
|
+
const rawD = data.design?.activations ?? data.design_gates ?? data.unconscious_gates ?? [];
|
|
182
183
|
const personality_gates = [...new Set(extractGateNums(rawP))].sort((a, b) => a - b);
|
|
183
184
|
const design_gates = [...new Set(extractGateNums(rawD))].sort((a, b) => a - b);
|
|
184
185
|
return {
|
|
@@ -284,7 +285,7 @@ registerTool({
|
|
|
284
285
|
return {
|
|
285
286
|
content: [
|
|
286
287
|
{ type: "text", text: summary },
|
|
287
|
-
{ type: "text", text: JSON.stringify(modelPayload) },
|
|
288
|
+
{ type: "text", text: JSON.stringify({ ...modelPayload, server_version: SERVER_VERSION }) },
|
|
288
289
|
{
|
|
289
290
|
type: "resource",
|
|
290
291
|
resource: {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import fs from "node:fs";
|
|
19
19
|
import path from "node:path";
|
|
20
20
|
import { fileURLToPath } from "node:url";
|
|
21
|
-
import { registerTool } from "../index.js";
|
|
21
|
+
import { registerTool, SERVER_VERSION } from "../index.js";
|
|
22
22
|
import { getActiveClient } from "../../backend/client.js";
|
|
23
23
|
// ── Constants ─────────────────────────────────────────────────────────────
|
|
24
24
|
export const CHART_WHEEL_RESOURCE_URI = "ui://openephemeris/chart-wheel";
|
|
@@ -181,7 +181,7 @@ registerTool({
|
|
|
181
181
|
return {
|
|
182
182
|
content: [
|
|
183
183
|
{ type: "text", text: summary },
|
|
184
|
-
{ type: "text", text: JSON.stringify(modelPayload) },
|
|
184
|
+
{ type: "text", text: JSON.stringify({ ...modelPayload, server_version: SERVER_VERSION }) },
|
|
185
185
|
{
|
|
186
186
|
type: "resource",
|
|
187
187
|
resource: {
|
package/dist/tools/index.d.ts
CHANGED
package/dist/tools/index.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
/** Resolved from package.json at startup — stamped into all app tool payloads. */
|
|
5
|
+
export const SERVER_VERSION = (() => {
|
|
6
|
+
try {
|
|
7
|
+
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
8
|
+
const raw = fs.readFileSync(path.resolve(here, "..", "..", "package.json"), "utf-8");
|
|
9
|
+
return JSON.parse(raw).version?.trim() ?? "0.0.0-unknown";
|
|
10
|
+
}
|
|
11
|
+
catch {
|
|
12
|
+
return "0.0.0-unknown";
|
|
13
|
+
}
|
|
14
|
+
})();
|
|
1
15
|
/**
|
|
2
16
|
* Returns tools that should be exposed to Claude in the ListTools response.
|
|
3
17
|
* Filters out tools that have visibility restricted to the UI (app-only).
|