@defai.digital/ax-cli 3.14.13 → 3.14.14
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/README.md +9 -2
- package/dist/mcp/transports.d.ts +6 -2
- package/dist/mcp/transports.js +57 -103
- package/dist/mcp/transports.js.map +1 -1
- package/dist/schemas/settings-schemas.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ ax-cli
|
|
|
49
49
|
- [Security](#security)
|
|
50
50
|
- [Architecture](#architecture)
|
|
51
51
|
- [Changelog](#changelog)
|
|
52
|
-
- [Recent Changes (v3.14.
|
|
52
|
+
- [Recent Changes (v3.14.14)](#recent-changes-v31414)
|
|
53
53
|
- [Documentation](#documentation)
|
|
54
54
|
|
|
55
55
|
---
|
|
@@ -404,7 +404,14 @@ Email: **security@defai.digital** (private disclosure)
|
|
|
404
404
|
|
|
405
405
|
---
|
|
406
406
|
|
|
407
|
-
## Recent Changes (v3.14.
|
|
407
|
+
## Recent Changes (v3.14.14)
|
|
408
|
+
|
|
409
|
+
### Bug Fixes
|
|
410
|
+
|
|
411
|
+
- **MCP SDK HTTP Transport Integration**: Replaced custom HTTP transport with MCP SDK's official `StreamableHTTPClientTransport` for proper MCP protocol support. This enables Z.AI MCP servers (web-search, web-reader, vision) to connect and work correctly.
|
|
412
|
+
- **MCP SSE Transport Update**: Updated SSE transport to use MCP SDK's official `SSEClientTransport` for better compatibility.
|
|
413
|
+
|
|
414
|
+
## Previous Changes (v3.14.13)
|
|
408
415
|
|
|
409
416
|
### Bug Fixes
|
|
410
417
|
|
package/dist/mcp/transports.d.ts
CHANGED
|
@@ -34,21 +34,25 @@ export declare class StdioTransport implements MCPTransport {
|
|
|
34
34
|
getType(): TransportType;
|
|
35
35
|
}
|
|
36
36
|
export declare class HttpTransport extends EventEmitter implements MCPTransport {
|
|
37
|
-
private
|
|
38
|
-
private
|
|
37
|
+
private transport?;
|
|
38
|
+
private url;
|
|
39
|
+
private headers?;
|
|
39
40
|
constructor(config: TransportConfig);
|
|
40
41
|
connect(): Promise<Transport>;
|
|
41
42
|
disconnect(): Promise<void>;
|
|
42
43
|
getType(): TransportType;
|
|
43
44
|
}
|
|
44
45
|
export declare class SSETransport extends EventEmitter implements MCPTransport {
|
|
46
|
+
private transport?;
|
|
45
47
|
private url;
|
|
48
|
+
private headers?;
|
|
46
49
|
constructor(config: TransportConfig);
|
|
47
50
|
connect(): Promise<Transport>;
|
|
48
51
|
disconnect(): Promise<void>;
|
|
49
52
|
getType(): TransportType;
|
|
50
53
|
}
|
|
51
54
|
export declare class StreamableHttpTransport extends EventEmitter implements MCPTransport {
|
|
55
|
+
private transport?;
|
|
52
56
|
private url;
|
|
53
57
|
private headers?;
|
|
54
58
|
constructor(config: TransportConfig);
|
package/dist/mcp/transports.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
2
|
+
import { StreamableHTTPClientTransport as SDKStreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
3
|
+
import { SSEClientTransport as SDKSSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
|
|
2
4
|
import { EventEmitter } from "events";
|
|
3
|
-
import axios from "axios";
|
|
4
5
|
import { ContentLengthStdioTransport } from "./content-length-transport.js";
|
|
5
6
|
export class StdioTransport {
|
|
6
7
|
transport;
|
|
@@ -68,29 +69,36 @@ export class StdioTransport {
|
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
export class HttpTransport extends EventEmitter {
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
transport;
|
|
73
|
+
url;
|
|
74
|
+
headers;
|
|
73
75
|
constructor(config) {
|
|
74
76
|
super();
|
|
75
|
-
this.config = config;
|
|
76
77
|
if (!config.url) {
|
|
77
78
|
throw new Error('URL is required for HTTP transport');
|
|
78
79
|
}
|
|
80
|
+
this.url = config.url;
|
|
81
|
+
this.headers = config.headers;
|
|
79
82
|
}
|
|
80
83
|
async connect() {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
// Skip health check - MCP endpoints don't have standard health endpoints
|
|
89
|
-
// The actual connection will be verified when listTools() is called
|
|
90
|
-
return new HttpClientTransport(this.client);
|
|
84
|
+
// Use MCP SDK's StreamableHTTPClientTransport for proper MCP protocol support
|
|
85
|
+
const requestInit = {};
|
|
86
|
+
if (this.headers) {
|
|
87
|
+
requestInit.headers = this.headers;
|
|
88
|
+
}
|
|
89
|
+
this.transport = new SDKStreamableHTTPClientTransport(new URL(this.url), { requestInit });
|
|
90
|
+
return this.transport;
|
|
91
91
|
}
|
|
92
92
|
async disconnect() {
|
|
93
|
-
this.
|
|
93
|
+
if (this.transport) {
|
|
94
|
+
try {
|
|
95
|
+
await this.transport.close();
|
|
96
|
+
}
|
|
97
|
+
catch {
|
|
98
|
+
// Ignore close errors during disconnect
|
|
99
|
+
}
|
|
100
|
+
this.transport = undefined;
|
|
101
|
+
}
|
|
94
102
|
this.removeAllListeners();
|
|
95
103
|
}
|
|
96
104
|
getType() {
|
|
@@ -98,87 +106,44 @@ export class HttpTransport extends EventEmitter {
|
|
|
98
106
|
}
|
|
99
107
|
}
|
|
100
108
|
export class SSETransport extends EventEmitter {
|
|
109
|
+
transport;
|
|
101
110
|
url;
|
|
111
|
+
headers;
|
|
102
112
|
constructor(config) {
|
|
103
113
|
super();
|
|
104
114
|
if (!config.url) {
|
|
105
115
|
throw new Error('URL is required for SSE transport');
|
|
106
116
|
}
|
|
107
117
|
this.url = config.url;
|
|
118
|
+
this.headers = config.headers;
|
|
108
119
|
}
|
|
109
120
|
async connect() {
|
|
110
|
-
|
|
121
|
+
// Use MCP SDK's SSEClientTransport
|
|
122
|
+
const requestInit = {};
|
|
123
|
+
if (this.headers) {
|
|
124
|
+
requestInit.headers = this.headers;
|
|
125
|
+
}
|
|
126
|
+
this.transport = new SDKSSEClientTransport(new URL(this.url), { requestInit });
|
|
127
|
+
return this.transport;
|
|
128
|
+
}
|
|
129
|
+
async disconnect() {
|
|
130
|
+
if (this.transport) {
|
|
111
131
|
try {
|
|
112
|
-
|
|
113
|
-
// In a real implementation, you'd use a proper SSE library like 'eventsource'
|
|
114
|
-
resolve(new SSEClientTransport(this.url));
|
|
132
|
+
await this.transport.close();
|
|
115
133
|
}
|
|
116
|
-
catch
|
|
117
|
-
|
|
134
|
+
catch {
|
|
135
|
+
// Ignore close errors during disconnect
|
|
118
136
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
async disconnect() {
|
|
137
|
+
this.transport = undefined;
|
|
138
|
+
}
|
|
122
139
|
this.removeAllListeners();
|
|
123
140
|
}
|
|
124
141
|
getType() {
|
|
125
142
|
return 'sse';
|
|
126
143
|
}
|
|
127
144
|
}
|
|
128
|
-
// Custom HTTP Transport implementation
|
|
129
|
-
class HttpClientTransport extends EventEmitter {
|
|
130
|
-
client;
|
|
131
|
-
constructor(client) {
|
|
132
|
-
super();
|
|
133
|
-
this.client = client;
|
|
134
|
-
}
|
|
135
|
-
async start() {
|
|
136
|
-
// HTTP transport is connection-less, so we're always "started"
|
|
137
|
-
}
|
|
138
|
-
async close() {
|
|
139
|
-
this.removeAllListeners();
|
|
140
|
-
}
|
|
141
|
-
async send(message) {
|
|
142
|
-
try {
|
|
143
|
-
// Post directly to the base URL (MCP HTTP endpoints are the full URL, not /rpc sub-path)
|
|
144
|
-
const response = await this.client.post('', message);
|
|
145
|
-
return response.data;
|
|
146
|
-
}
|
|
147
|
-
catch (error) {
|
|
148
|
-
const errorMessage = error?.response?.data?.message || error?.message || String(error);
|
|
149
|
-
throw new Error(`HTTP transport error: ${errorMessage}`);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
// Custom SSE Transport implementation
|
|
154
|
-
class SSEClientTransport extends EventEmitter {
|
|
155
|
-
url;
|
|
156
|
-
constructor(url) {
|
|
157
|
-
super();
|
|
158
|
-
this.url = url;
|
|
159
|
-
}
|
|
160
|
-
async start() {
|
|
161
|
-
// SSE transport is event-driven, so we're always "started"
|
|
162
|
-
}
|
|
163
|
-
async close() {
|
|
164
|
-
this.removeAllListeners();
|
|
165
|
-
}
|
|
166
|
-
async send(message) {
|
|
167
|
-
// For bidirectional communication over SSE, we typically use HTTP POST
|
|
168
|
-
// for sending messages and SSE for receiving
|
|
169
|
-
try {
|
|
170
|
-
const response = await axios.post(this.url.replace('/sse', '/rpc'), message, {
|
|
171
|
-
headers: { 'Content-Type': 'application/json' }
|
|
172
|
-
});
|
|
173
|
-
return response.data;
|
|
174
|
-
}
|
|
175
|
-
catch (error) {
|
|
176
|
-
const errorMessage = error?.response?.data?.message || error?.message || String(error);
|
|
177
|
-
throw new Error(`SSE transport error: ${errorMessage}`);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
145
|
export class StreamableHttpTransport extends EventEmitter {
|
|
146
|
+
transport;
|
|
182
147
|
url;
|
|
183
148
|
headers;
|
|
184
149
|
constructor(config) {
|
|
@@ -190,41 +155,30 @@ export class StreamableHttpTransport extends EventEmitter {
|
|
|
190
155
|
this.headers = config.headers;
|
|
191
156
|
}
|
|
192
157
|
async connect() {
|
|
193
|
-
|
|
158
|
+
// Use MCP SDK's StreamableHTTPClientTransport
|
|
159
|
+
const requestInit = {};
|
|
160
|
+
if (this.headers) {
|
|
161
|
+
requestInit.headers = this.headers;
|
|
162
|
+
}
|
|
163
|
+
this.transport = new SDKStreamableHTTPClientTransport(new URL(this.url), { requestInit });
|
|
164
|
+
return this.transport;
|
|
165
|
+
}
|
|
166
|
+
async disconnect() {
|
|
167
|
+
if (this.transport) {
|
|
194
168
|
try {
|
|
195
|
-
|
|
169
|
+
await this.transport.close();
|
|
196
170
|
}
|
|
197
|
-
catch
|
|
198
|
-
|
|
171
|
+
catch {
|
|
172
|
+
// Ignore close errors during disconnect
|
|
199
173
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
async disconnect() {
|
|
174
|
+
this.transport = undefined;
|
|
175
|
+
}
|
|
203
176
|
this.removeAllListeners();
|
|
204
177
|
}
|
|
205
178
|
getType() {
|
|
206
179
|
return 'streamable_http';
|
|
207
180
|
}
|
|
208
181
|
}
|
|
209
|
-
// Custom Streamable HTTP Transport implementation for GitHub Copilot MCP
|
|
210
|
-
class StreamableHttpClientTransport extends EventEmitter {
|
|
211
|
-
constructor(_url, _headers) {
|
|
212
|
-
super();
|
|
213
|
-
}
|
|
214
|
-
async start() {
|
|
215
|
-
// Streamable HTTP transport is connection-less, so we're always "started"
|
|
216
|
-
}
|
|
217
|
-
async close() {
|
|
218
|
-
this.removeAllListeners();
|
|
219
|
-
}
|
|
220
|
-
async send(message) {
|
|
221
|
-
console.log('StreamableHttpTransport: SSE endpoints require persistent connections, not suitable for MCP request-response pattern');
|
|
222
|
-
console.log('StreamableHttpTransport: Message that would be sent:', JSON.stringify(message));
|
|
223
|
-
// For now, return a mock response to indicate the transport type is not compatible
|
|
224
|
-
// with the MCP protocol's request-response pattern
|
|
225
|
-
throw new Error('StreamableHttpTransport: SSE endpoints are not compatible with MCP request-response pattern. GitHub Copilot MCP may require a different integration approach.');
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
182
|
export function createTransport(config) {
|
|
229
183
|
switch (config.type) {
|
|
230
184
|
case 'stdio':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transports.js","sourceRoot":"","sources":["../../src/mcp/transports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"transports.js","sourceRoot":"","sources":["../../src/mcp/transports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,6BAA6B,IAAI,gCAAgC,EAA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AC,MAAM,CAAC;gBACP,wCAAwC;YAC1C,CAAC;YACD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC7B,CAAC;QACD,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,OAAO;QACL,OAAO,iBAAiB,CAAC;IAC3B,CAAC;CACF;AAED,MAAM,UAAU,eAAe,CAAC,MAAuB;IACrD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,OAAO;YACV,OAAO,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;QACpC,KAAK,MAAM;YACT,OAAO,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;QACnC,KAAK,KAAK;YACR,OAAO,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC;QAClC,KAAK,iBAAiB;YACpB,OAAO,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAAC;QAC7C;YACE,MAAM,IAAI,KAAK,CAAC,+BAA+B,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;IAClE,CAAC;AACH,CAAC"}
|
|
@@ -309,16 +309,16 @@ export declare const MCPTransportConfigSchema: z.ZodObject<{
|
|
|
309
309
|
type: "stdio" | "http" | "sse" | "streamable_http";
|
|
310
310
|
url?: string | undefined;
|
|
311
311
|
headers?: Record<string, string> | undefined;
|
|
312
|
-
env?: Record<string, string> | undefined;
|
|
313
312
|
command?: string | undefined;
|
|
314
313
|
args?: string[] | undefined;
|
|
314
|
+
env?: Record<string, string> | undefined;
|
|
315
315
|
}, {
|
|
316
316
|
type: "stdio" | "http" | "sse" | "streamable_http";
|
|
317
317
|
url?: string | undefined;
|
|
318
318
|
headers?: Record<string, string> | undefined;
|
|
319
|
-
env?: Record<string, string> | undefined;
|
|
320
319
|
command?: string | undefined;
|
|
321
320
|
args?: string[] | undefined;
|
|
321
|
+
env?: Record<string, string> | undefined;
|
|
322
322
|
}>;
|
|
323
323
|
export declare const MCPServerConfigSchema: z.ZodType<any>;
|
|
324
324
|
export type EncryptedValue = z.infer<typeof EncryptedValueSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defai.digital/ax-cli",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.14",
|
|
4
4
|
"sdkVersion": "1.3.0",
|
|
5
5
|
"description": "Enterprise-Class AI Command Line Interface - Primary support for GLM (General Language Model) with multi-provider AI orchestration powered by AutomatosX.",
|
|
6
6
|
"type": "module",
|