@causari/mcp-server 0.1.3 → 0.1.4

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
@@ -7,6 +7,21 @@ the package uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ---
9
9
 
10
+ ## [0.1.4] — 2026-06-28 — Fix: `npx` install was broken (bundle the CKG)
11
+
12
+ ### Fixed
13
+
14
+ - **`npx @causari/mcp-server` failed to install** on 0.1.2 and 0.1.3. The package
15
+ declared the private workspace package `@causari/ckg` as a runtime dependency
16
+ (`workspace:*`) — which npm cannot resolve (`EUNSUPPORTEDPROTOCOL`) — and the
17
+ `tsc` build left bare `@causari/ckg` imports in `dist`. The build now bundles
18
+ `@causari/ckg` into the artifact via `tsup` (config was already present but
19
+ unwired), and `@causari/ckg` moves to `devDependencies`. Verified by a cold
20
+ install from the packed tarball: all 5 tools list and `--pack worldcup-2026`
21
+ loads. No code/API changes — 0.1.4 is 0.1.3 that actually installs.
22
+
23
+ ---
24
+
10
25
  ## [0.1.3] — 2026-06-26 — Denser graph + opt-in data packs
11
26
 
12
27
  ### Added
@@ -1,8 +1,11 @@
1
1
  import {
2
2
  ALL_TOOLS,
3
3
  CKGStore,
4
- loadSeed
5
- } from "./chunk-7XWPOH6R.js";
4
+ ValidationError,
5
+ loadPack,
6
+ loadSeed,
7
+ mergeSeedData
8
+ } from "./chunk-KBU67SEH.js";
6
9
 
7
10
  // src/server.ts
8
11
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
@@ -10,13 +13,18 @@ import {
10
13
  CallToolRequestSchema,
11
14
  ListToolsRequestSchema
12
15
  } from "@modelcontextprotocol/sdk/types.js";
13
- var SERVER_VERSION = "0.1.1";
16
+
17
+ // src/version.ts
18
+ var VERSION = "0.1.3";
19
+ var SERVER_NAME = "causari-mcp-server";
20
+
21
+ // src/server.ts
14
22
  function createCausariServer(opts = {}) {
15
- const store = opts.store ?? new CKGStore(loadSeed());
23
+ const store = opts.store ?? new CKGStore(opts.pack ? mergeSeedData(loadSeed(), loadPack(opts.pack)) : loadSeed());
16
24
  const server = new Server(
17
25
  {
18
- name: "causari-mcp-server",
19
- version: SERVER_VERSION
26
+ name: SERVER_NAME,
27
+ version: VERSION
20
28
  },
21
29
  {
22
30
  capabilities: {
@@ -47,6 +55,12 @@ function createCausariServer(opts = {}) {
47
55
  content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
48
56
  };
49
57
  } catch (err) {
58
+ if (err instanceof ValidationError) {
59
+ return {
60
+ content: [{ type: "text", text: `Invalid arguments: ${err.message}` }],
61
+ isError: true
62
+ };
63
+ }
50
64
  const message = err instanceof Error ? err.message : String(err);
51
65
  return {
52
66
  content: [{ type: "text", text: `Tool error: ${message}` }],