@defai.digital/ax-cli 3.14.12 → 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 +16 -2
- package/dist/mcp/transports.d.ts +6 -2
- package/dist/mcp/transports.js +56 -106
- 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,21 @@ 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)
|
|
415
|
+
|
|
416
|
+
### Bug Fixes
|
|
417
|
+
|
|
418
|
+
- **Z.AI MCP HTTP Transport Fix**: Fixed HTTP transport to post directly to the endpoint URL instead of appending `/rpc`. This enables Z.AI MCP servers (web-search, web-reader) to connect properly.
|
|
419
|
+
- **MCP Health Check Removed**: Removed unnecessary HTTP health check that was failing for MCP endpoints without `/health` endpoints.
|
|
420
|
+
|
|
421
|
+
## Previous Changes (v3.14.12)
|
|
408
422
|
|
|
409
423
|
### Bug Fixes
|
|
410
424
|
|
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,34 +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
|
-
...this.config.headers
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
// Test connection
|
|
89
|
-
try {
|
|
90
|
-
await this.client.get('/health');
|
|
84
|
+
// Use MCP SDK's StreamableHTTPClientTransport for proper MCP protocol support
|
|
85
|
+
const requestInit = {};
|
|
86
|
+
if (this.headers) {
|
|
87
|
+
requestInit.headers = this.headers;
|
|
91
88
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
return new HttpClientTransport(this.client);
|
|
89
|
+
this.transport = new SDKStreamableHTTPClientTransport(new URL(this.url), { requestInit });
|
|
90
|
+
return this.transport;
|
|
96
91
|
}
|
|
97
92
|
async disconnect() {
|
|
98
|
-
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
|
+
}
|
|
99
102
|
this.removeAllListeners();
|
|
100
103
|
}
|
|
101
104
|
getType() {
|
|
@@ -103,86 +106,44 @@ export class HttpTransport extends EventEmitter {
|
|
|
103
106
|
}
|
|
104
107
|
}
|
|
105
108
|
export class SSETransport extends EventEmitter {
|
|
109
|
+
transport;
|
|
106
110
|
url;
|
|
111
|
+
headers;
|
|
107
112
|
constructor(config) {
|
|
108
113
|
super();
|
|
109
114
|
if (!config.url) {
|
|
110
115
|
throw new Error('URL is required for SSE transport');
|
|
111
116
|
}
|
|
112
117
|
this.url = config.url;
|
|
118
|
+
this.headers = config.headers;
|
|
113
119
|
}
|
|
114
120
|
async connect() {
|
|
115
|
-
|
|
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) {
|
|
116
131
|
try {
|
|
117
|
-
|
|
118
|
-
// In a real implementation, you'd use a proper SSE library like 'eventsource'
|
|
119
|
-
resolve(new SSEClientTransport(this.url));
|
|
132
|
+
await this.transport.close();
|
|
120
133
|
}
|
|
121
|
-
catch
|
|
122
|
-
|
|
134
|
+
catch {
|
|
135
|
+
// Ignore close errors during disconnect
|
|
123
136
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
async disconnect() {
|
|
137
|
+
this.transport = undefined;
|
|
138
|
+
}
|
|
127
139
|
this.removeAllListeners();
|
|
128
140
|
}
|
|
129
141
|
getType() {
|
|
130
142
|
return 'sse';
|
|
131
143
|
}
|
|
132
144
|
}
|
|
133
|
-
// Custom HTTP Transport implementation
|
|
134
|
-
class HttpClientTransport extends EventEmitter {
|
|
135
|
-
client;
|
|
136
|
-
constructor(client) {
|
|
137
|
-
super();
|
|
138
|
-
this.client = client;
|
|
139
|
-
}
|
|
140
|
-
async start() {
|
|
141
|
-
// HTTP transport is connection-less, so we're always "started"
|
|
142
|
-
}
|
|
143
|
-
async close() {
|
|
144
|
-
this.removeAllListeners();
|
|
145
|
-
}
|
|
146
|
-
async send(message) {
|
|
147
|
-
try {
|
|
148
|
-
const response = await this.client.post('/rpc', message);
|
|
149
|
-
return response.data;
|
|
150
|
-
}
|
|
151
|
-
catch (error) {
|
|
152
|
-
const errorMessage = error?.response?.data?.message || error?.message || String(error);
|
|
153
|
-
throw new Error(`HTTP transport error: ${errorMessage}`);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
// Custom SSE Transport implementation
|
|
158
|
-
class SSEClientTransport extends EventEmitter {
|
|
159
|
-
url;
|
|
160
|
-
constructor(url) {
|
|
161
|
-
super();
|
|
162
|
-
this.url = url;
|
|
163
|
-
}
|
|
164
|
-
async start() {
|
|
165
|
-
// SSE transport is event-driven, so we're always "started"
|
|
166
|
-
}
|
|
167
|
-
async close() {
|
|
168
|
-
this.removeAllListeners();
|
|
169
|
-
}
|
|
170
|
-
async send(message) {
|
|
171
|
-
// For bidirectional communication over SSE, we typically use HTTP POST
|
|
172
|
-
// for sending messages and SSE for receiving
|
|
173
|
-
try {
|
|
174
|
-
const response = await axios.post(this.url.replace('/sse', '/rpc'), message, {
|
|
175
|
-
headers: { 'Content-Type': 'application/json' }
|
|
176
|
-
});
|
|
177
|
-
return response.data;
|
|
178
|
-
}
|
|
179
|
-
catch (error) {
|
|
180
|
-
const errorMessage = error?.response?.data?.message || error?.message || String(error);
|
|
181
|
-
throw new Error(`SSE transport error: ${errorMessage}`);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
145
|
export class StreamableHttpTransport extends EventEmitter {
|
|
146
|
+
transport;
|
|
186
147
|
url;
|
|
187
148
|
headers;
|
|
188
149
|
constructor(config) {
|
|
@@ -194,41 +155,30 @@ export class StreamableHttpTransport extends EventEmitter {
|
|
|
194
155
|
this.headers = config.headers;
|
|
195
156
|
}
|
|
196
157
|
async connect() {
|
|
197
|
-
|
|
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) {
|
|
198
168
|
try {
|
|
199
|
-
|
|
169
|
+
await this.transport.close();
|
|
200
170
|
}
|
|
201
|
-
catch
|
|
202
|
-
|
|
171
|
+
catch {
|
|
172
|
+
// Ignore close errors during disconnect
|
|
203
173
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
async disconnect() {
|
|
174
|
+
this.transport = undefined;
|
|
175
|
+
}
|
|
207
176
|
this.removeAllListeners();
|
|
208
177
|
}
|
|
209
178
|
getType() {
|
|
210
179
|
return 'streamable_http';
|
|
211
180
|
}
|
|
212
181
|
}
|
|
213
|
-
// Custom Streamable HTTP Transport implementation for GitHub Copilot MCP
|
|
214
|
-
class StreamableHttpClientTransport extends EventEmitter {
|
|
215
|
-
constructor(_url, _headers) {
|
|
216
|
-
super();
|
|
217
|
-
}
|
|
218
|
-
async start() {
|
|
219
|
-
// Streamable HTTP transport is connection-less, so we're always "started"
|
|
220
|
-
}
|
|
221
|
-
async close() {
|
|
222
|
-
this.removeAllListeners();
|
|
223
|
-
}
|
|
224
|
-
async send(message) {
|
|
225
|
-
console.log('StreamableHttpTransport: SSE endpoints require persistent connections, not suitable for MCP request-response pattern');
|
|
226
|
-
console.log('StreamableHttpTransport: Message that would be sent:', JSON.stringify(message));
|
|
227
|
-
// For now, return a mock response to indicate the transport type is not compatible
|
|
228
|
-
// with the MCP protocol's request-response pattern
|
|
229
|
-
throw new Error('StreamableHttpTransport: SSE endpoints are not compatible with MCP request-response pattern. GitHub Copilot MCP may require a different integration approach.');
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
182
|
export function createTransport(config) {
|
|
233
183
|
switch (config.type) {
|
|
234
184
|
case 'stdio':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transports.js","sourceRoot":"","sources":["../../src/mcp/transports.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C,IAAI,CAAC,GAAG,CAAC,EACjB,EAAE,WAAW,EAAE,CAChB,CAAC;QAEF,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,UAAU;QACd,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACnB,IAAI,CAAC;gBACH,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;YAC/B,CAAC;YAAC,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",
|