@yawlabs/mcp-compliance 0.16.1 → 0.16.3

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.
@@ -57,6 +57,8 @@ import { existsSync, readFileSync } from "fs";
57
57
  import { dirname, join } from "path";
58
58
  import { fileURLToPath } from "url";
59
59
  function readPackageVersion(metaUrl) {
60
+ if (typeof __VERSION__ === "string" && __VERSION__) return __VERSION__;
61
+ if (!metaUrl) return "0.0.0";
60
62
  let dir = dirname(fileURLToPath(metaUrl));
61
63
  for (; ; ) {
62
64
  const pkgPath = join(dir, "package.json");
package/dist/index.js CHANGED
@@ -726,6 +726,8 @@ import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
726
726
  import { dirname, join as join2 } from "path";
727
727
  import { fileURLToPath } from "url";
728
728
  function readPackageVersion(metaUrl) {
729
+ if (typeof __VERSION__ === "string" && __VERSION__) return __VERSION__;
730
+ if (!metaUrl) return "0.0.0";
729
731
  let dir = dirname(fileURLToPath(metaUrl));
730
732
  for (; ; ) {
731
733
  const pkgPath = join2(dir, "package.json");
@@ -5103,8 +5105,7 @@ function splitStdioTarget(s) {
5103
5105
  }
5104
5106
 
5105
5107
  // src/index.ts
5106
- var require2 = createRequire(import.meta.url);
5107
- var { version: version2 } = require2("../package.json");
5108
+ var version2 = typeof __VERSION__ === "string" && __VERSION__ ? __VERSION__ : createRequire(import.meta.url)("../package.json").version;
5108
5109
  function parseHeaderArg(value, prev) {
5109
5110
  const idx = value.indexOf(":");
5110
5111
  if (idx === -1) {
@@ -3,7 +3,7 @@ import {
3
3
  TEST_DEFINITIONS,
4
4
  readPackageVersion,
5
5
  runComplianceSuite
6
- } from "../chunk-4RMQADAA.js";
6
+ } from "../chunk-XBHHNN6R.js";
7
7
 
8
8
  // src/mcp/server.ts
9
9
  import { realpathSync } from "fs";
package/dist/runner.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  parseSSEResponse,
9
9
  previewTests,
10
10
  runComplianceSuite
11
- } from "./chunk-4RMQADAA.js";
11
+ } from "./chunk-XBHHNN6R.js";
12
12
  export {
13
13
  SPEC_BASE,
14
14
  SPEC_VERSION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yawlabs/mcp-compliance",
3
- "version": "0.16.1",
3
+ "version": "0.16.3",
4
4
  "mcpName": "io.github.YawLabs/mcp-compliance",
5
5
  "description": "CLI tool and MCP server that tests MCP servers for spec compliance",
6
6
  "license": "MIT",
@@ -40,11 +40,14 @@
40
40
  "prepublishOnly": "npm run build",
41
41
  "start": "node dist/index.js"
42
42
  },
43
+ "overrides": {
44
+ "esbuild": "^0.28.1"
45
+ },
43
46
  "dependencies": {
44
47
  "@modelcontextprotocol/sdk": "^1.29.0",
45
48
  "chalk": "^5.4.1",
46
49
  "commander": "^14.0.3",
47
- "undici": "^7.8.0",
50
+ "undici": "^7.28.0",
48
51
  "zod": "^4.4.3"
49
52
  },
50
53
  "devDependencies": {
@@ -52,8 +55,10 @@
52
55
  "@types/node": "^25.5.2",
53
56
  "ajv": "^8.18.0",
54
57
  "ajv-formats": "^3.0.1",
55
- "tsup": "^8.4.0",
56
- "tsx": "^4.21.0",
58
+ "esbuild": "^0.28.1",
59
+ "postject": "^1.0.0-alpha.6",
60
+ "tsup": "^8.5.1",
61
+ "tsx": "^4.22.4",
57
62
  "typescript": "^6.0.3",
58
63
  "vitest": "^4.1.8"
59
64
  },