Skip to content

Commit b24a679

Browse files
authored
chore(deps): Update ACP SDK to 0.22.1 (#151)
1 parent 48412ff commit b24a679

5 files changed

Lines changed: 17 additions & 11 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"vitest": "^4.0.10"
6262
},
6363
"dependencies": {
64-
"@agentclientprotocol/sdk": "^0.21.0",
64+
"@agentclientprotocol/sdk": "^0.22.1",
6565
"@openai/codex": "^0.128.0",
6666
"diff": "^8.0.3",
6767
"open": "^11.0.0",

src/CodexAcpClient.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,16 @@ export class CodexAcpClient {
332332
*/
333333
private createMcpSeverConfig(mcpServer: McpServer): JsonObject {
334334
if ("type" in mcpServer) {
335-
if (mcpServer.type == "sse") {
336-
throw RequestError.invalidRequest("Codex doesn't support MCP SSE transport protocol")
337-
}
338-
return {
339-
"url": mcpServer.url,
340-
"http_headers": Object.fromEntries(mcpServer.headers.map(h => [h.name, h.value])),
335+
switch (mcpServer.type) {
336+
case "acp":
337+
throw RequestError.invalidRequest("Codex doesn't support MCP ACP transport protocol")
338+
case "sse":
339+
throw RequestError.invalidRequest("Codex doesn't support MCP SSE transport protocol")
340+
case "http":
341+
return {
342+
"url": mcpServer.url,
343+
"http_headers": Object.fromEntries(mcpServer.headers.map(h => [h.name, h.value])),
344+
}
341345
}
342346
}
343347
return {

src/CodexAcpServer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export class CodexAcpServer implements acp.Agent {
119119
list: { }
120120
},
121121
mcpCapabilities: {
122+
acp: false,
122123
http: true,
123124
sse: false
124125
}

src/__tests__/CodexACPAgent/initialize.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ describe('CodexACPAgent - initialize', () => {
5050
list: {},
5151
},
5252
mcpCapabilities: {
53+
acp: false,
5354
http: true,
5455
sse: false,
5556
},

0 commit comments

Comments
 (0)