@edda-business/mcp 0.74.0 → 0.75.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/package.json +1 -1
- package/src/server.js +8 -1
package/package.json
CHANGED
package/src/server.js
CHANGED
|
@@ -33,9 +33,13 @@
|
|
|
33
33
|
|
|
34
34
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
35
35
|
import { z } from "zod";
|
|
36
|
+
import { createRequire } from "node:module";
|
|
36
37
|
import { get, post, patch, postRaw, isReadOnly } from "./client.js";
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
// Read from package.json, never retyped here. The constant said 0.66.0 for nine releases: every
|
|
40
|
+
// handshake, `--version` and /health answered with a version that had not shipped since June, which
|
|
41
|
+
// is the one number support asks for first.
|
|
42
|
+
export const SERVER_VERSION = createRequire(import.meta.url)("../package.json").version;
|
|
39
43
|
|
|
40
44
|
// ─── helpers ──────────────────────────────────────────────────────────────────
|
|
41
45
|
|
|
@@ -384,6 +388,7 @@ export function createServer() {
|
|
|
384
388
|
subject_kind: z.enum(["project", "person", "company", "page"]).optional().describe("Default project — the project this is filed into."),
|
|
385
389
|
subject_id: z.string().optional().describe("Only when the subject is NOT the destination project."),
|
|
386
390
|
confidence: z.enum(["stated", "inferred"]).optional().describe("stated = the source says it outright; inferred = you read it between the lines."),
|
|
391
|
+
excerpt: z.string().max(600).optional().describe("A short passage copied WORD FOR WORD from the document that supports this claim (one or two sentences). Shown to people as the evidence. It is kept only if it is actually found in the filed document; never paraphrase."),
|
|
387
392
|
})).optional().describe(
|
|
388
393
|
"What this material CHANGES about what the company believes — the point of sharing an update rather than a document. " +
|
|
389
394
|
"'The term sheet arrived and Tom is unhappy with it' is not a document, it is two claims. " +
|
|
@@ -462,6 +467,7 @@ export function createServer() {
|
|
|
462
467
|
subject_kind: z.enum(["project", "person", "company", "page"]).optional(),
|
|
463
468
|
subject_id: z.string().optional(),
|
|
464
469
|
confidence: z.enum(["stated", "inferred"]).optional(),
|
|
470
|
+
excerpt: z.string().max(600).optional().describe("A short passage copied WORD FOR WORD from the document that supports this claim (one or two sentences). Shown to people as the evidence. It is kept only if it is actually found in the filed document; never paraphrase."),
|
|
465
471
|
})).optional().describe("What THIS item changes about what the company believes."),
|
|
466
472
|
})).max(100).describe("The items from one ingest run."),
|
|
467
473
|
},
|
|
@@ -531,6 +537,7 @@ export function createServer() {
|
|
|
531
537
|
standing: z.enum(["committed", "reported", "indicative", "contested"]).optional().describe("committed = signed/agreed/done · reported = a source states it · indicative = non-binding, draft, conditional · contested = disputed. A weaker claim never retires a firmer one."),
|
|
532
538
|
as_of: z.string().optional().describe("When it became TRUE (YYYY-MM-DD), not when you learned it."),
|
|
533
539
|
confidence: z.enum(["stated", "inferred"]).optional(),
|
|
540
|
+
excerpt: z.string().max(600).optional().describe("A short passage copied WORD FOR WORD from one of the cited source_refs documents that supports this claim. Kept only if found in that document; never paraphrase."),
|
|
534
541
|
})).max(25).describe("The beliefs that changed. One per fact — do not pack two facts into one sentence."),
|
|
535
542
|
source_refs: z.array(z.object({
|
|
536
543
|
kind: z.enum(["company_file", "river_original", "river_receipt"]),
|