From 489fdb8244a872414482ae91547e4c85b83d496a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Dec 2025 17:02:08 +0000 Subject: [PATCH 1/2] chore(deps): bump @modelcontextprotocol/sdk from 1.20.2 to 1.24.0 Bumps [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk) from 1.20.2 to 1.24.0. - [Release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases) - [Commits](https://github.com/modelcontextprotocol/typescript-sdk/compare/1.20.2...1.24.0) --- updated-dependencies: - dependency-name: "@modelcontextprotocol/sdk" dependency-version: 1.24.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- yarn.lock | 50 +++++++++++++++++++++++++++++++++++++------------- 1 file changed, 37 insertions(+), 13 deletions(-) diff --git a/yarn.lock b/yarn.lock index 26355302..d9db8470 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1449,10 +1449,11 @@ __metadata: linkType: hard "@modelcontextprotocol/sdk@npm:^1.20.2": - version: 1.20.2 - resolution: "@modelcontextprotocol/sdk@npm:1.20.2" + version: 1.24.2 + resolution: "@modelcontextprotocol/sdk@npm:1.24.2" dependencies: - ajv: "npm:^6.12.6" + ajv: "npm:^8.17.1" + ajv-formats: "npm:^3.0.1" content-type: "npm:^1.0.5" cors: "npm:^2.8.5" cross-spawn: "npm:^7.0.5" @@ -1460,11 +1461,20 @@ __metadata: eventsource-parser: "npm:^3.0.0" express: "npm:^5.0.1" express-rate-limit: "npm:^7.5.0" + jose: "npm:^6.1.1" pkce-challenge: "npm:^5.0.0" raw-body: "npm:^3.0.0" - zod: "npm:^3.23.8" - zod-to-json-schema: "npm:^3.24.1" - checksum: 10c0/5e195f207fbf6bc5765df2a2a3b20711ab9dac4ccddb5dbe7e0d6e98bcd9f5b32fa441589e41da78373d3713ada213442dc1983df2dc5946a1ebc91eaf9533f7 + zod: "npm:^3.25 || ^4.0" + zod-to-json-schema: "npm:^3.25.0" + peerDependencies: + "@cfworker/json-schema": ^4.1.1 + zod: ^3.25 || ^4.0 + peerDependenciesMeta: + "@cfworker/json-schema": + optional: true + zod: + optional: false + checksum: 10c0/c9a3e555a15282260d847f5959c47fbfa45fba5094775727bb9cd6cee43c834c36c0be7405ca6a105275048786ed9a35df729a33866ae87c5923642fb61184f2 languageName: node linkType: hard @@ -3080,7 +3090,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^6.12.4, ajv@npm:^6.12.6": +"ajv@npm:^6.12.4": version: 6.12.6 resolution: "ajv@npm:6.12.6" dependencies: @@ -6387,6 +6397,13 @@ __metadata: languageName: node linkType: hard +"jose@npm:^6.1.1": + version: 6.1.3 + resolution: "jose@npm:6.1.3" + checksum: 10c0/b9577b4a7a5e84131011c23823db9f5951eae3ba796771a6a2401ae5dd50daf71104febc8ded9c38146aa5ebe94a92ac09c725e699e613ef26949b9f5a8bc30f + languageName: node + linkType: hard + "js-base64@npm:^3.7.7": version: 3.7.7 resolution: "js-base64@npm:3.7.7" @@ -10974,12 +10991,12 @@ __metadata: languageName: node linkType: hard -"zod-to-json-schema@npm:^3.24.1": - version: 3.24.6 - resolution: "zod-to-json-schema@npm:3.24.6" +"zod-to-json-schema@npm:^3.25.0": + version: 3.25.0 + resolution: "zod-to-json-schema@npm:3.25.0" peerDependencies: - zod: ^3.24.1 - checksum: 10c0/b907ab6d057100bd25a37e5545bf5f0efa5902cd84d3c3ec05c2e51541431a47bd9bf1e5e151a244273409b45f5986d55b26e5d207f98abc5200702f733eb368 + zod: ^3.25 || ^4 + checksum: 10c0/2d2cf6ca49752bf3dc5fb37bc8f275eddbbc4020e7958d9c198ea88cd197a5f527459118188a0081b889da6a6474d64c4134cd60951fa70178c125138761c680 languageName: node linkType: hard @@ -11000,9 +11017,16 @@ __metadata: languageName: node linkType: hard -"zod@npm:^3.19.1, zod@npm:^3.23.8, zod@npm:^3.25.76, zod@npm:~3.25.76": +"zod@npm:^3.19.1, zod@npm:^3.25.76, zod@npm:~3.25.76": version: 3.25.76 resolution: "zod@npm:3.25.76" checksum: 10c0/5718ec35e3c40b600316c5b4c5e4976f7fee68151bc8f8d90ec18a469be9571f072e1bbaace10f1e85cf8892ea12d90821b200e980ab46916a6166a4260a983c languageName: node linkType: hard + +"zod@npm:^3.25 || ^4.0": + version: 4.1.13 + resolution: "zod@npm:4.1.13" + checksum: 10c0/d7e74e82dba81a91ffc3239cd85bc034abe193a28f7087a94ab258a3e48e9a7ca4141920cac979a0d781495b48fc547777394149f26be04c3dc642f58bbc3941 + languageName: node + linkType: hard From 294d122fefe99aef83a856df400af8a92390221d Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Dec 2025 15:17:42 -0500 Subject: [PATCH 2/2] fix: resolve TypeScript type inference error with MCP SDK 1.24.0 (#549) * Initial plan * fix: resolve TypeScript type inference error with MCP SDK 1.24.0 Co-authored-by: JamieSinn <1538232+JamieSinn@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JamieSinn <1538232+JamieSinn@users.noreply.github.com> --- oclif.manifest.json | 2 +- src/mcp/server.ts | 42 +++++++++++++++++++++++------------------- 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/oclif.manifest.json b/oclif.manifest.json index 76933d3a..d608ad77 100644 --- a/oclif.manifest.json +++ b/oclif.manifest.json @@ -1,5 +1,5 @@ { - "version": "6.1.3", + "version": "6.1.4", "commands": { "authCommand": { "id": "authCommand", diff --git a/src/mcp/server.ts b/src/mcp/server.ts index f180c827..d7490efd 100644 --- a/src/mcp/server.ts +++ b/src/mcp/server.ts @@ -93,33 +93,37 @@ export class DevCycleMCPServer { toolConfig.outputSchema = config.outputSchema } - this.server.registerTool(name, toolConfig, async (args: unknown) => { - try { - const result = await handler(args) + this.server.registerTool( + name, + toolConfig as any, + async (args: unknown) => { + try { + const result = await handler(args) + + // If the handler returned a plain string, send it as-is + if (typeof result === 'string') { + return { + content: [ + { + type: 'text' as const, + text: result, + }, + ], + } + } - // If the handler returned a plain string, send it as-is - if (typeof result === 'string') { return { content: [ { type: 'text' as const, - text: result, + text: JSON.stringify(result, null, 2), }, ], } + } catch (error) { + return handleToolError(error, name) } - - return { - content: [ - { - type: 'text' as const, - text: JSON.stringify(result, null, 2), - }, - ], - } - } catch (error) { - return handleToolError(error, name) - } - }) + }, + ) } }