dogpolicies-mcp 0.2.3 → 0.2.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
@@ -10,6 +10,14 @@ The data inside the package has its own date (`as_of` in every result). A
10
10
  new package version ships a new snapshot; the server also refreshes from the
11
11
  site on its own when the network allows.
12
12
 
13
+ ## 0.2.4 - 2026-10-31
14
+
15
+ - The registry listing names the hosted server, https://dogpolicies.com/mcp/, now that the site is live on Cloudflare.
16
+
17
+ - Bundler-friendly for other runtimes: `package.json` is read with a static JSON import and the bundled snapshot
18
+ path is only resolved when `import.meta.url` exists. No change for npm users; the site's Cloudflare Worker now
19
+ runs this package inside a Durable Object.
20
+
13
21
  ## 0.2.3 - 2026-10-31
14
22
 
15
23
  - Smaller, cleaner install: the MCP client SDK is no longer a dependency. `demo`, `check` and `connectInProcess` use a small built-in client over the in-memory transport. The client SDK pulled in process-spawning and other code a server never runs, which supply-chain scanners flag.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dogpolicies-mcp",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "MCP server for verified dog rules at California and Nevada parks, beaches, trails, hotels, campgrounds and restaurant patios: leash rules, pet fees, weight limits, trip planning, every fact with its official source and the date it was checked.",
5
5
  "mcpName": "io.github.xultrax-web/dogpolicies-mcp",
6
6
  "type": "module",
package/server.json CHANGED
@@ -8,13 +8,13 @@
8
8
  "url": "https://github.com/xultrax-web/dogpolicies-mcp",
9
9
  "source": "github"
10
10
  },
11
- "version": "0.2.3",
11
+ "version": "0.2.4",
12
12
  "packages": [
13
13
  {
14
14
  "registryType": "npm",
15
15
  "registryBaseUrl": "https://registry.npmjs.org",
16
16
  "identifier": "dogpolicies-mcp",
17
- "version": "0.2.3",
17
+ "version": "0.2.4",
18
18
  "runtimeHint": "npx",
19
19
  "transport": {
20
20
  "type": "stdio"
@@ -37,6 +37,12 @@
37
37
  ]
38
38
  }
39
39
  ],
40
+ "remotes": [
41
+ {
42
+ "type": "streamable-http",
43
+ "url": "https://dogpolicies.com/mcp/"
44
+ }
45
+ ],
40
46
  "_meta": {
41
47
  "io.modelcontextprotocol.registry/publisher-provided": {
42
48
  "tool": "dogpolicies-release",
package/src/config.mjs CHANGED
@@ -4,10 +4,9 @@
4
4
  // Values can be overridden at runtime through the environment, so the same
5
5
  // build works before the domain is final and after it moves.
6
6
 
7
- import { createRequire } from "node:module";
8
-
9
- const require = createRequire(import.meta.url);
10
- const pkg = require("../package.json");
7
+ // A static JSON import (import attributes, Node 20.10+), so bundlers that
8
+ // target other runtimes (the site's Cloudflare Worker) can inline it.
9
+ import pkg from "../package.json" with { type: "json" };
11
10
 
12
11
  /** The npm package name, from package.json (the single config point). */
13
12
  export const PACKAGE_NAME = pkg.name;
@@ -31,7 +31,9 @@ import { tools } from "./tools/index.mjs";
31
31
  import { resources } from "./resources.mjs";
32
32
  import { prompts } from "./prompts.mjs";
33
33
 
34
- const HERE = dirname(fileURLToPath(import.meta.url));
34
+ // import.meta.url is undefined when the package is bundled for another runtime
35
+ // (the site's Cloudflare Worker), which always passes a snapshot object instead.
36
+ const HERE = import.meta.url ? dirname(fileURLToPath(import.meta.url)) : ".";
35
37
  export const BUNDLED_SNAPSHOT = join(
36
38
  HERE,
37
39
  "..",