@aws/run-mcp-servers-with-aws-lambda 0.5.3 → 0.5.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.
@@ -66,12 +66,6 @@ async function handleRequest(serverParams, event, _context) {
66
66
  const client = new Client({
67
67
  name: "mcp-client",
68
68
  version: "1.0.0",
69
- }, {
70
- capabilities: {
71
- prompts: {},
72
- resources: {},
73
- tools: {},
74
- },
75
69
  });
76
70
  try {
77
71
  const transport = new StdioClientTransport(serverParams);
@@ -63,13 +63,15 @@ test('should list tools', async () => {
63
63
  name: 'echo',
64
64
  inputSchema: {
65
65
  $schema: 'http://json-schema.org/draft-07/schema#',
66
- additionalProperties: false,
67
66
  properties: {
68
67
  message: { type: 'string' },
69
68
  },
70
69
  required: ['message'],
71
70
  type: 'object',
72
71
  },
72
+ execution: {
73
+ taskSupport: 'forbidden',
74
+ },
73
75
  },
74
76
  ],
75
77
  },
@@ -179,9 +181,14 @@ test('return error for unknown tool call', async () => {
179
181
  const expectedResponse = {
180
182
  jsonrpc: '2.0',
181
183
  id: 1,
182
- error: {
183
- code: ErrorCode.InvalidParams,
184
- message: 'MCP error -32602: MCP error -32602: Tool does-not-exist not found',
184
+ result: {
185
+ content: [
186
+ {
187
+ type: 'text',
188
+ text: 'MCP error -32602: Tool does-not-exist not found',
189
+ },
190
+ ],
191
+ isError: true,
185
192
  },
186
193
  };
187
194
  const response = (await stdioServerAdapter(serverParameters, callToolsMessage, mockContext));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws/run-mcp-servers-with-aws-lambda",
3
3
  "description": "Run Model Context Protocol (MCP) servers with AWS Lambda",
4
- "version": "0.5.3",
4
+ "version": "0.5.4",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "author": {
@@ -39,6 +39,7 @@
39
39
  "dist"
40
40
  ],
41
41
  "devDependencies": {
42
+ "@cfworker/json-schema": "^4.1.1",
42
43
  "@eslint/js": "^9.39.0",
43
44
  "@tsconfig/recommended": "^1.0.11",
44
45
  "@types/aws-lambda": "^8.10.157",
@@ -60,7 +61,7 @@
60
61
  "@aws-sdk/credential-provider-node": "^3.913.0",
61
62
  "@aws-sdk/protocol-http": "^3.374.0",
62
63
  "@aws-sdk/types": "^3.910.0",
63
- "@modelcontextprotocol/sdk": "^1.20.2",
64
+ "@modelcontextprotocol/sdk": "^1.24.2",
64
65
  "@smithy/signature-v4": "^5.3.3",
65
66
  "winston": "^3.18.3"
66
67
  }