@mcp-layer/test-server 1.0.4 → 1.0.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-layer/test-server",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Feature-rich MCP server for integration testing and local development.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,10 +42,10 @@
42
42
  "access": "public"
43
43
  },
44
44
  "dependencies": {
45
- "@modelcontextprotocol/sdk": "^1.20.2",
45
+ "@modelcontextprotocol/sdk": "^1.32.2",
46
46
  "argh": "^1.0.0",
47
- "express": "^5.0.1",
48
- "zod": "^3.25.76",
47
+ "express": "^5.3.0",
48
+ "zod": "^4.6.7",
49
49
  "@mcp-layer/error": "0.2.1"
50
50
  },
51
51
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import { completable } from '@modelcontextprotocol/sdk/server/completable.js';
2
- import { z } from 'zod';
2
+ import { z } from 'zod/v3';
3
3
 
4
4
  const greeters = ['Ada', 'Casey', 'Echo', 'Mira'];
5
5
  const tones = ['casual', 'formal', 'cheerful'];
package/src/tools/add.js CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
 
3
3
  /**
4
4
  * Register the add tool returning structured totals.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
 
3
3
  /**
4
4
  * Register a tool that exercises annotations and _meta without output schema.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
 
3
3
  /**
4
4
  * Register a tool that accepts array/object inputs.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
 
3
3
  /**
4
4
  * Register the booking tool that triggers elicitation workflows.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
 
3
3
  const uri = 'ui://dashboard/app.html';
4
4
  const csp = "default-src 'self'";
package/src/tools/echo.js CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
 
3
3
  /**
4
4
  * Register the echo tool that optionally uppercases responses.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
 
3
3
  /**
4
4
  * Register the files tool that emits ResourceLinks referencing shared assets.
package/src/tools/logs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { LoggingLevelSchema } from '@modelcontextprotocol/sdk/types.js';
2
- import { z } from 'zod';
2
+ import { z } from 'zod/v3';
3
3
 
4
4
  const levels = LoggingLevelSchema.options;
5
5
 
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
 
3
3
  /**
4
4
  * Register a tool that mutates note resources and emits update notifications.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
 
3
3
  const PNG_BASE64 = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO3Z5wAAAABJRU5ErkJggg==';
4
4
  const WAV_BASE64 = 'UklGRiQAAABXQVZFZm10IBAAAAABAAEAESsAACJWAAACABAAZGF0YQAAAAA=';
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
  import { LayerError } from '@mcp-layer/error';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
 
3
3
  /**
4
4
  * Register the rebalance tool that toggles core tool registrations to exercise debounced notifications.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
 
3
3
  /**
4
4
  * Register the roots tool that calls roots/list on capable clients.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
 
3
3
  /**
4
4
  * Register the summaries tool that delegates to sampling/createMessage.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
  import { LayerError } from '@mcp-layer/error';
3
3
 
4
4
  /**