Skip to content

Commit acb0935

Browse files
dependabot[bot]CopilotJamieSinn
authored
chore(deps): bump @modelcontextprotocol/sdk from 1.20.2 to 1.24.0 (#548)
* 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](modelcontextprotocol/typescript-sdk@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] <[email protected]> * 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 <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: JamieSinn <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]> Co-authored-by: JamieSinn <[email protected]>
1 parent 71835fd commit acb0935

File tree

3 files changed

+61
-33
lines changed

3 files changed

+61
-33
lines changed

oclif.manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "6.1.3",
2+
"version": "6.1.4",
33
"commands": {
44
"authCommand": {
55
"id": "authCommand",

src/mcp/server.ts

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -93,33 +93,37 @@ export class DevCycleMCPServer {
9393
toolConfig.outputSchema = config.outputSchema
9494
}
9595

96-
this.server.registerTool(name, toolConfig, async (args: unknown) => {
97-
try {
98-
const result = await handler(args)
96+
this.server.registerTool(
97+
name,
98+
toolConfig as any,
99+
async (args: unknown) => {
100+
try {
101+
const result = await handler(args)
102+
103+
// If the handler returned a plain string, send it as-is
104+
if (typeof result === 'string') {
105+
return {
106+
content: [
107+
{
108+
type: 'text' as const,
109+
text: result,
110+
},
111+
],
112+
}
113+
}
99114

100-
// If the handler returned a plain string, send it as-is
101-
if (typeof result === 'string') {
102115
return {
103116
content: [
104117
{
105118
type: 'text' as const,
106-
text: result,
119+
text: JSON.stringify(result, null, 2),
107120
},
108121
],
109122
}
123+
} catch (error) {
124+
return handleToolError(error, name)
110125
}
111-
112-
return {
113-
content: [
114-
{
115-
type: 'text' as const,
116-
text: JSON.stringify(result, null, 2),
117-
},
118-
],
119-
}
120-
} catch (error) {
121-
return handleToolError(error, name)
122-
}
123-
})
126+
},
127+
)
124128
}
125129
}

yarn.lock

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,22 +1449,32 @@ __metadata:
14491449
linkType: hard
14501450

14511451
"@modelcontextprotocol/sdk@npm:^1.20.2":
1452-
version: 1.20.2
1453-
resolution: "@modelcontextprotocol/sdk@npm:1.20.2"
1452+
version: 1.24.2
1453+
resolution: "@modelcontextprotocol/sdk@npm:1.24.2"
14541454
dependencies:
1455-
ajv: "npm:^6.12.6"
1455+
ajv: "npm:^8.17.1"
1456+
ajv-formats: "npm:^3.0.1"
14561457
content-type: "npm:^1.0.5"
14571458
cors: "npm:^2.8.5"
14581459
cross-spawn: "npm:^7.0.5"
14591460
eventsource: "npm:^3.0.2"
14601461
eventsource-parser: "npm:^3.0.0"
14611462
express: "npm:^5.0.1"
14621463
express-rate-limit: "npm:^7.5.0"
1464+
jose: "npm:^6.1.1"
14631465
pkce-challenge: "npm:^5.0.0"
14641466
raw-body: "npm:^3.0.0"
1465-
zod: "npm:^3.23.8"
1466-
zod-to-json-schema: "npm:^3.24.1"
1467-
checksum: 10c0/5e195f207fbf6bc5765df2a2a3b20711ab9dac4ccddb5dbe7e0d6e98bcd9f5b32fa441589e41da78373d3713ada213442dc1983df2dc5946a1ebc91eaf9533f7
1467+
zod: "npm:^3.25 || ^4.0"
1468+
zod-to-json-schema: "npm:^3.25.0"
1469+
peerDependencies:
1470+
"@cfworker/json-schema": ^4.1.1
1471+
zod: ^3.25 || ^4.0
1472+
peerDependenciesMeta:
1473+
"@cfworker/json-schema":
1474+
optional: true
1475+
zod:
1476+
optional: false
1477+
checksum: 10c0/c9a3e555a15282260d847f5959c47fbfa45fba5094775727bb9cd6cee43c834c36c0be7405ca6a105275048786ed9a35df729a33866ae87c5923642fb61184f2
14681478
languageName: node
14691479
linkType: hard
14701480

@@ -3080,7 +3090,7 @@ __metadata:
30803090
languageName: node
30813091
linkType: hard
30823092

3083-
"ajv@npm:^6.12.4, ajv@npm:^6.12.6":
3093+
"ajv@npm:^6.12.4":
30843094
version: 6.12.6
30853095
resolution: "ajv@npm:6.12.6"
30863096
dependencies:
@@ -6387,6 +6397,13 @@ __metadata:
63876397
languageName: node
63886398
linkType: hard
63896399

6400+
"jose@npm:^6.1.1":
6401+
version: 6.1.3
6402+
resolution: "jose@npm:6.1.3"
6403+
checksum: 10c0/b9577b4a7a5e84131011c23823db9f5951eae3ba796771a6a2401ae5dd50daf71104febc8ded9c38146aa5ebe94a92ac09c725e699e613ef26949b9f5a8bc30f
6404+
languageName: node
6405+
linkType: hard
6406+
63906407
"js-base64@npm:^3.7.7":
63916408
version: 3.7.7
63926409
resolution: "js-base64@npm:3.7.7"
@@ -10974,12 +10991,12 @@ __metadata:
1097410991
languageName: node
1097510992
linkType: hard
1097610993

10977-
"zod-to-json-schema@npm:^3.24.1":
10978-
version: 3.24.6
10979-
resolution: "zod-to-json-schema@npm:3.24.6"
10994+
"zod-to-json-schema@npm:^3.25.0":
10995+
version: 3.25.0
10996+
resolution: "zod-to-json-schema@npm:3.25.0"
1098010997
peerDependencies:
10981-
zod: ^3.24.1
10982-
checksum: 10c0/b907ab6d057100bd25a37e5545bf5f0efa5902cd84d3c3ec05c2e51541431a47bd9bf1e5e151a244273409b45f5986d55b26e5d207f98abc5200702f733eb368
10998+
zod: ^3.25 || ^4
10999+
checksum: 10c0/2d2cf6ca49752bf3dc5fb37bc8f275eddbbc4020e7958d9c198ea88cd197a5f527459118188a0081b889da6a6474d64c4134cd60951fa70178c125138761c680
1098311000
languageName: node
1098411001
linkType: hard
1098511002

@@ -11000,9 +11017,16 @@ __metadata:
1100011017
languageName: node
1100111018
linkType: hard
1100211019

11003-
"zod@npm:^3.19.1, zod@npm:^3.23.8, zod@npm:^3.25.76, zod@npm:~3.25.76":
11020+
"zod@npm:^3.19.1, zod@npm:^3.25.76, zod@npm:~3.25.76":
1100411021
version: 3.25.76
1100511022
resolution: "zod@npm:3.25.76"
1100611023
checksum: 10c0/5718ec35e3c40b600316c5b4c5e4976f7fee68151bc8f8d90ec18a469be9571f072e1bbaace10f1e85cf8892ea12d90821b200e980ab46916a6166a4260a983c
1100711024
languageName: node
1100811025
linkType: hard
11026+
11027+
"zod@npm:^3.25 || ^4.0":
11028+
version: 4.1.13
11029+
resolution: "zod@npm:4.1.13"
11030+
checksum: 10c0/d7e74e82dba81a91ffc3239cd85bc034abe193a28f7087a94ab258a3e48e9a7ca4141920cac979a0d781495b48fc547777394149f26be04c3dc642f58bbc3941
11031+
languageName: node
11032+
linkType: hard

0 commit comments

Comments
 (0)