lazy-mcp 2.2.7 ā 2.3.1
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 +252 -1
- package/dist/cli.js +274 -35
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +117 -0
- package/dist/config.js.map +1 -1
- package/dist/http-server.d.ts +20 -0
- package/dist/http-server.d.ts.map +1 -0
- package/dist/http-server.js +578 -0
- package/dist/http-server.js.map +1 -0
- package/dist/logger.d.ts +40 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +238 -0
- package/dist/logger.js.map +1 -0
- package/dist/server-manager.d.ts +4 -1
- package/dist/server-manager.d.ts.map +1 -1
- package/dist/server-manager.js +279 -135
- package/dist/server-manager.js.map +1 -1
- package/dist/server.d.ts +11 -5
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +276 -188
- package/dist/server.js.map +1 -1
- package/dist/types.d.ts +52 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -1,223 +1,311 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LazyMCPServer = void 0;
|
|
4
|
+
exports.createMCPServer = createMCPServer;
|
|
4
5
|
const index_js_1 = require("@modelcontextprotocol/sdk/server/index.js");
|
|
5
6
|
const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
6
7
|
const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
|
|
7
8
|
const multi_proxy_1 = require("./multi-proxy");
|
|
8
9
|
const types_1 = require("./types");
|
|
9
10
|
const version_1 = require("./version");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
});
|
|
28
|
-
this.server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
|
|
29
|
-
const { name, arguments: args } = request.params;
|
|
30
|
-
// Signal user activity so the health monitor stays awake.
|
|
31
|
-
this.serverManager.touchActivity();
|
|
32
|
-
try {
|
|
33
|
-
return await this.handleMultiServerTool(name, args);
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
if (error instanceof types_1.MCPException) {
|
|
37
|
-
// AUTH_REQUIRED: surface the authorization URL prominently so the
|
|
38
|
-
// agent can relay it directly to the user without treating it as a
|
|
39
|
-
// generic error. The diagnostic field holds the full instruction.
|
|
40
|
-
if (error.code === types_1.MCPErrorCode.AUTH_REQUIRED) {
|
|
41
|
-
return {
|
|
42
|
-
content: [{ type: 'text', text: error.diagnostic ?? error.message }],
|
|
43
|
-
isError: true,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
let errorText = `Error: ${error.message}`;
|
|
47
|
-
if (error.details) {
|
|
48
|
-
errorText += `\n\nDetails: ${error.details}`;
|
|
49
|
-
}
|
|
50
|
-
if (error.diagnostic) {
|
|
51
|
-
errorText += `\n\nš” Suggestion: ${error.diagnostic}`;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
content: [{ type: 'text', text: errorText }],
|
|
55
|
-
isError: true,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
59
|
-
return {
|
|
60
|
-
content: [
|
|
61
|
-
{
|
|
62
|
-
type: 'text',
|
|
63
|
-
text: `Error: ${errorMessage}`,
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
isError: true,
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
getMultiServerTools() {
|
|
72
|
-
return {
|
|
73
|
-
tools: [
|
|
74
|
-
{
|
|
75
|
-
name: 'list_servers',
|
|
76
|
-
description: 'List all available MCP servers with their capabilities, usage examples, and tags. Use the filter parameter to search by name, description, or tag. Includes health status for each server. IMPORTANT: if a server has auth_required set, you MUST show that URL to the user immediately and ask them to open it in a browser ā do not attempt to call the server directly.',
|
|
77
|
-
inputSchema: {
|
|
78
|
-
type: 'object',
|
|
79
|
-
properties: {
|
|
80
|
-
filter: {
|
|
81
|
-
type: 'string',
|
|
82
|
-
description: 'Optional: filter servers by name, description, or tag keyword',
|
|
83
|
-
},
|
|
11
|
+
const http_server_1 = require("./http-server");
|
|
12
|
+
const logger_1 = require("./logger");
|
|
13
|
+
/**
|
|
14
|
+
* Meta-tool definitions exposed by lazy-mcp. Shared between stdio and HTTP transports.
|
|
15
|
+
*/
|
|
16
|
+
function getMultiServerTools() {
|
|
17
|
+
return {
|
|
18
|
+
tools: [
|
|
19
|
+
{
|
|
20
|
+
name: 'list_servers',
|
|
21
|
+
description: 'List all available MCP servers with their capabilities, usage examples, and tags. Use the filter parameter to search by name, description, or tag. Includes health status for each server. IMPORTANT: if a server has auth_required set, you MUST show that URL to the user immediately and ask them to open it in a browser ā do not attempt to call the server directly.',
|
|
22
|
+
inputSchema: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
properties: {
|
|
25
|
+
filter: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
description: 'Optional: filter servers by name, description, or tag keyword',
|
|
84
28
|
},
|
|
85
29
|
},
|
|
86
30
|
},
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
server: {
|
|
99
|
-
type: 'string',
|
|
100
|
-
description: 'Single server name (use this for one server, or use "servers" array for multiple)',
|
|
101
|
-
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'list_commands',
|
|
34
|
+
description: 'List commands from specific server(s). Triggers discovery if not yet loaded. For multiple servers, use the "servers" array parameter for efficient batch discovery in a single call.',
|
|
35
|
+
inputSchema: {
|
|
36
|
+
type: 'object',
|
|
37
|
+
properties: {
|
|
38
|
+
servers: {
|
|
39
|
+
type: 'array',
|
|
40
|
+
items: { type: 'string' },
|
|
41
|
+
description: 'Array of server names to discover in one batch call (more efficient than multiple single calls)',
|
|
102
42
|
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
name: 'describe_commands',
|
|
107
|
-
description: 'Get detailed schemas for specific commands from a server',
|
|
108
|
-
inputSchema: {
|
|
109
|
-
type: 'object',
|
|
110
|
-
properties: {
|
|
111
|
-
server: {
|
|
112
|
-
type: 'string',
|
|
113
|
-
description: 'Server name',
|
|
114
|
-
},
|
|
115
|
-
command_names: {
|
|
116
|
-
type: 'array',
|
|
117
|
-
items: { type: 'string' },
|
|
118
|
-
description: 'Array of command names to describe',
|
|
119
|
-
},
|
|
43
|
+
server: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: 'Single server name (use this for one server, or use "servers" array for multiple)',
|
|
120
46
|
},
|
|
121
|
-
required: ['server', 'command_names'],
|
|
122
47
|
},
|
|
123
48
|
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
type: 'object',
|
|
140
|
-
description: 'Parameters to pass to the command',
|
|
141
|
-
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'describe_commands',
|
|
52
|
+
description: 'Get detailed schemas for specific commands from a server',
|
|
53
|
+
inputSchema: {
|
|
54
|
+
type: 'object',
|
|
55
|
+
properties: {
|
|
56
|
+
server: {
|
|
57
|
+
type: 'string',
|
|
58
|
+
description: 'Server name',
|
|
59
|
+
},
|
|
60
|
+
command_names: {
|
|
61
|
+
type: 'array',
|
|
62
|
+
items: { type: 'string' },
|
|
63
|
+
description: 'Array of command names to describe',
|
|
142
64
|
},
|
|
143
|
-
required: ['server', 'command_name', 'parameters'],
|
|
144
65
|
},
|
|
66
|
+
required: ['server', 'command_names'],
|
|
145
67
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
{
|
|
157
|
-
type: 'text',
|
|
158
|
-
text: JSON.stringify(servers, null, 2),
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'invoke_command',
|
|
71
|
+
description: 'Execute a command from a specific server (auto-discovers if needed)',
|
|
72
|
+
inputSchema: {
|
|
73
|
+
type: 'object',
|
|
74
|
+
properties: {
|
|
75
|
+
server: {
|
|
76
|
+
type: 'string',
|
|
77
|
+
description: 'Server name',
|
|
159
78
|
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
case 'list_commands': {
|
|
164
|
-
const { server, servers } = args;
|
|
165
|
-
const commands = await this.multiProxy.listCommands(server, servers);
|
|
166
|
-
return {
|
|
167
|
-
content: [
|
|
168
|
-
{
|
|
169
|
-
type: 'text',
|
|
170
|
-
text: JSON.stringify(commands, null, 2),
|
|
79
|
+
command_name: {
|
|
80
|
+
type: 'string',
|
|
81
|
+
description: 'Command name to execute',
|
|
171
82
|
},
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
case 'describe_commands': {
|
|
176
|
-
const { server, command_names } = args;
|
|
177
|
-
if (typeof server !== 'string') {
|
|
178
|
-
throw new Error('server must be a string');
|
|
179
|
-
}
|
|
180
|
-
if (!Array.isArray(command_names)) {
|
|
181
|
-
throw new Error('command_names must be an array');
|
|
182
|
-
}
|
|
183
|
-
const schemas = await this.multiProxy.describeCommands(server, command_names);
|
|
184
|
-
return {
|
|
185
|
-
content: [
|
|
186
|
-
{
|
|
187
|
-
type: 'text',
|
|
188
|
-
text: JSON.stringify(schemas, null, 2),
|
|
83
|
+
parameters: {
|
|
84
|
+
type: 'object',
|
|
85
|
+
description: 'Parameters to pass to the command',
|
|
189
86
|
},
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
87
|
+
},
|
|
88
|
+
required: ['server', 'command_name', 'parameters'],
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Create a configured MCP Server instance with all meta-tool handlers registered.
|
|
96
|
+
* Used by both stdio and HTTP transports. Each HTTP request gets its own Server
|
|
97
|
+
* instance that shares the same ServerManager/MultiServerProxyImpl.
|
|
98
|
+
*/
|
|
99
|
+
function createMCPServer(serverManager) {
|
|
100
|
+
const multiProxy = new multi_proxy_1.MultiServerProxyImpl(serverManager);
|
|
101
|
+
const logger = (0, logger_1.getLogger)();
|
|
102
|
+
const server = new index_js_1.Server({
|
|
103
|
+
name: 'lazy-mcp-proxy',
|
|
104
|
+
version: version_1.LAZY_MCP_VERSION,
|
|
105
|
+
}, {
|
|
106
|
+
capabilities: {
|
|
107
|
+
tools: {},
|
|
108
|
+
},
|
|
109
|
+
});
|
|
110
|
+
server.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => {
|
|
111
|
+
const startedAt = Date.now();
|
|
112
|
+
serverManager.touchActivity();
|
|
113
|
+
const tools = getMultiServerTools();
|
|
114
|
+
logger.info('MCP tools/list handled', {
|
|
115
|
+
event: 'mcp_request',
|
|
116
|
+
mcpMethod: 'tools/list',
|
|
117
|
+
status: 'ok',
|
|
118
|
+
durationMs: Date.now() - startedAt,
|
|
119
|
+
toolsCount: tools.tools.length,
|
|
120
|
+
});
|
|
121
|
+
return tools;
|
|
122
|
+
});
|
|
123
|
+
server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
|
|
124
|
+
const { name, arguments: args } = request.params;
|
|
125
|
+
const startedAt = Date.now();
|
|
126
|
+
const executionFields = extractToolExecutionFields(name, args);
|
|
127
|
+
// Signal user activity so the health monitor stays awake.
|
|
128
|
+
serverManager.touchActivity();
|
|
129
|
+
logger.info('lazy-mcp tool execution started', {
|
|
130
|
+
event: 'lazy_tool_execution',
|
|
131
|
+
phase: 'start',
|
|
132
|
+
mcpMethod: 'tools/call',
|
|
133
|
+
lazyTool: name,
|
|
134
|
+
...executionFields,
|
|
135
|
+
});
|
|
136
|
+
try {
|
|
137
|
+
const result = await handleMultiServerTool(multiProxy, name, args);
|
|
138
|
+
logger.info('lazy-mcp tool execution completed', {
|
|
139
|
+
event: 'lazy_tool_execution',
|
|
140
|
+
phase: 'finish',
|
|
141
|
+
status: 'ok',
|
|
142
|
+
mcpMethod: 'tools/call',
|
|
143
|
+
lazyTool: name,
|
|
144
|
+
...executionFields,
|
|
145
|
+
durationMs: Date.now() - startedAt,
|
|
146
|
+
});
|
|
147
|
+
return result;
|
|
148
|
+
}
|
|
149
|
+
catch (error) {
|
|
150
|
+
logger.error('lazy-mcp tool execution failed', {
|
|
151
|
+
event: 'lazy_tool_execution',
|
|
152
|
+
phase: 'finish',
|
|
153
|
+
status: 'error',
|
|
154
|
+
mcpMethod: 'tools/call',
|
|
155
|
+
lazyTool: name,
|
|
156
|
+
...executionFields,
|
|
157
|
+
durationMs: Date.now() - startedAt,
|
|
158
|
+
error,
|
|
159
|
+
});
|
|
160
|
+
if (error instanceof types_1.MCPException) {
|
|
161
|
+
// AUTH_REQUIRED: surface the authorization URL prominently so the
|
|
162
|
+
// agent can relay it directly to the user without treating it as a
|
|
163
|
+
// generic error. The diagnostic field holds the full instruction.
|
|
164
|
+
if (error.code === types_1.MCPErrorCode.AUTH_REQUIRED) {
|
|
165
|
+
return {
|
|
166
|
+
content: [{ type: 'text', text: error.diagnostic ?? error.message }],
|
|
167
|
+
isError: true,
|
|
168
|
+
};
|
|
197
169
|
}
|
|
198
|
-
|
|
199
|
-
|
|
170
|
+
let errorText = `Error: ${error.message}`;
|
|
171
|
+
if (error.details) {
|
|
172
|
+
errorText += `\n\nDetails: ${error.details}`;
|
|
200
173
|
}
|
|
201
|
-
if (
|
|
202
|
-
|
|
174
|
+
if (error.diagnostic) {
|
|
175
|
+
errorText += `\n\nš” Suggestion: ${error.diagnostic}`;
|
|
203
176
|
}
|
|
204
|
-
const result = await this.multiProxy.invokeCommand(server, command_name, parameters);
|
|
205
177
|
return {
|
|
206
|
-
content: [
|
|
207
|
-
|
|
208
|
-
type: 'text',
|
|
209
|
-
text: JSON.stringify(result, null, 2),
|
|
210
|
-
},
|
|
211
|
-
],
|
|
178
|
+
content: [{ type: 'text', text: errorText }],
|
|
179
|
+
isError: true,
|
|
212
180
|
};
|
|
213
181
|
}
|
|
214
|
-
|
|
215
|
-
|
|
182
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
183
|
+
return {
|
|
184
|
+
content: [
|
|
185
|
+
{
|
|
186
|
+
type: 'text',
|
|
187
|
+
text: `Error: ${errorMessage}`,
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
isError: true,
|
|
191
|
+
};
|
|
216
192
|
}
|
|
193
|
+
});
|
|
194
|
+
return server;
|
|
195
|
+
}
|
|
196
|
+
function extractToolExecutionFields(name, args) {
|
|
197
|
+
if (!args || typeof args !== 'object') {
|
|
198
|
+
return {};
|
|
199
|
+
}
|
|
200
|
+
if (name === 'invoke_command') {
|
|
201
|
+
const invokeArgs = args;
|
|
202
|
+
return {
|
|
203
|
+
downstreamServer: invokeArgs.server,
|
|
204
|
+
downstreamCommand: invokeArgs.command_name,
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
if (name === 'list_commands') {
|
|
208
|
+
const listArgs = args;
|
|
209
|
+
return {
|
|
210
|
+
targetServer: listArgs.server,
|
|
211
|
+
targetServers: listArgs.servers,
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
if (name === 'describe_commands') {
|
|
215
|
+
const describeArgs = args;
|
|
216
|
+
return {
|
|
217
|
+
targetServer: describeArgs.server,
|
|
218
|
+
commandCount: Array.isArray(describeArgs.command_names) ? describeArgs.command_names.length : undefined,
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
if (name === 'list_servers') {
|
|
222
|
+
const listServersArgs = args;
|
|
223
|
+
return {
|
|
224
|
+
filter: listServersArgs.filter,
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
return {};
|
|
228
|
+
}
|
|
229
|
+
async function handleMultiServerTool(multiProxy, name, args) {
|
|
230
|
+
switch (name) {
|
|
231
|
+
case 'list_servers': {
|
|
232
|
+
const { filter } = args;
|
|
233
|
+
const servers = await multiProxy.listServers(filter);
|
|
234
|
+
return {
|
|
235
|
+
content: [
|
|
236
|
+
{
|
|
237
|
+
type: 'text',
|
|
238
|
+
text: JSON.stringify(servers, null, 2),
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
case 'list_commands': {
|
|
244
|
+
const { server, servers } = args;
|
|
245
|
+
const commands = await multiProxy.listCommands(server, servers);
|
|
246
|
+
return {
|
|
247
|
+
content: [
|
|
248
|
+
{
|
|
249
|
+
type: 'text',
|
|
250
|
+
text: JSON.stringify(commands, null, 2),
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
case 'describe_commands': {
|
|
256
|
+
const { server, command_names } = args;
|
|
257
|
+
if (typeof server !== 'string') {
|
|
258
|
+
throw new Error('server must be a string');
|
|
259
|
+
}
|
|
260
|
+
if (!Array.isArray(command_names)) {
|
|
261
|
+
throw new Error('command_names must be an array');
|
|
262
|
+
}
|
|
263
|
+
const schemas = await multiProxy.describeCommands(server, command_names);
|
|
264
|
+
return {
|
|
265
|
+
content: [
|
|
266
|
+
{
|
|
267
|
+
type: 'text',
|
|
268
|
+
text: JSON.stringify(schemas, null, 2),
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
case 'invoke_command': {
|
|
274
|
+
const { server, command_name, parameters } = args;
|
|
275
|
+
if (typeof server !== 'string') {
|
|
276
|
+
throw new Error('server must be a string');
|
|
277
|
+
}
|
|
278
|
+
if (typeof command_name !== 'string') {
|
|
279
|
+
throw new Error('command_name must be a string');
|
|
280
|
+
}
|
|
281
|
+
if (typeof parameters !== 'object' || parameters === null) {
|
|
282
|
+
throw new Error('parameters must be an object');
|
|
283
|
+
}
|
|
284
|
+
const result = await multiProxy.invokeCommand(server, command_name, parameters);
|
|
285
|
+
return {
|
|
286
|
+
content: [
|
|
287
|
+
{
|
|
288
|
+
type: 'text',
|
|
289
|
+
text: JSON.stringify(result, null, 2),
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
default:
|
|
295
|
+
throw new Error(`Unknown tool: ${name}`);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
class LazyMCPServer {
|
|
299
|
+
constructor(serverManager) {
|
|
300
|
+
this.serverManager = serverManager;
|
|
217
301
|
}
|
|
218
302
|
async run() {
|
|
303
|
+
const server = createMCPServer(this.serverManager);
|
|
219
304
|
const transport = new stdio_js_1.StdioServerTransport();
|
|
220
|
-
await
|
|
305
|
+
await server.connect(transport);
|
|
306
|
+
}
|
|
307
|
+
async runHttp(config) {
|
|
308
|
+
return (0, http_server_1.startHttpServer)(this.serverManager, config);
|
|
221
309
|
}
|
|
222
310
|
}
|
|
223
311
|
exports.LazyMCPServer = LazyMCPServer;
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;AAiGA,0CA4GC;AA7MD,wEAAmE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AO,YAAY,KAAK,QAAQ,EAAE,CAAC;gBACrC,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;YACnD,CAAC;YACD,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;gBAC1D,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;YAClD,CAAC;YACD,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,aAAa,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;YAChF,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;qBACtC;iBACF;aACF,CAAC;QACJ,CAAC;QAED;YACE,MAAM,IAAI,KAAK,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC;AAED,MAAa,aAAa;IAGxB,YAAY,aAA4B;QACtC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,GAAG;QACP,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACnD,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;QAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAAuB;QACnC,OAAO,IAAA,6BAAe,EAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;CACF;AAhBD,sCAgBC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -148,6 +148,46 @@ export interface ServerExample {
|
|
|
148
148
|
commands: string[];
|
|
149
149
|
description?: string;
|
|
150
150
|
}
|
|
151
|
+
export interface TransportConfig {
|
|
152
|
+
/** Transport type. Default: 'stdio'. */
|
|
153
|
+
type: 'stdio' | 'http';
|
|
154
|
+
/** Port for the HTTP server. Default: 8080. */
|
|
155
|
+
port?: number;
|
|
156
|
+
/** Host/address to bind to. Default: '127.0.0.1'. */
|
|
157
|
+
host?: string;
|
|
158
|
+
/** URL path for the MCP endpoint. Default: '/mcp'. */
|
|
159
|
+
path?: string;
|
|
160
|
+
/** Optional Bearer token for HTTP authentication. Supports ${VAR} expansion. */
|
|
161
|
+
authToken?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Allowed Origin header values for CSRF / DNS-rebinding protection.
|
|
164
|
+
* Does not send CORS response headers.
|
|
165
|
+
*/
|
|
166
|
+
allowedOrigins?: string[];
|
|
167
|
+
/** Expected Host names for DNS rebinding protection (e.g. your public domain). Local IPs/localhost are allowed by default. */
|
|
168
|
+
allowedHosts?: string[];
|
|
169
|
+
/**
|
|
170
|
+
* Maximum allowed request body size in bytes.
|
|
171
|
+
* Requests exceeding this limit are rejected with HTTP 413.
|
|
172
|
+
* Default: 4194304 (4 MB). Override via CLI flag `--max-payload-size` or
|
|
173
|
+
* env var `LAZY_MCP_MAX_PAYLOAD_SIZE`.
|
|
174
|
+
*/
|
|
175
|
+
maxPayloadSize?: number;
|
|
176
|
+
}
|
|
177
|
+
export type LogLevel = 'error' | 'info' | 'debug';
|
|
178
|
+
export type LogFormat = 'plain' | 'json';
|
|
179
|
+
export interface LoggingConfig {
|
|
180
|
+
/** Minimum log level to emit. Default: 'info'. */
|
|
181
|
+
level?: LogLevel;
|
|
182
|
+
/** Log output format. Default: 'json'. */
|
|
183
|
+
format?: LogFormat;
|
|
184
|
+
/** Dump request/response bodies in debug logs. Default: false. */
|
|
185
|
+
dumpBodies?: boolean;
|
|
186
|
+
/** Maximum body dump size in bytes before truncation. Default: 8192. */
|
|
187
|
+
maxBodyLogBytes?: number;
|
|
188
|
+
/** Additional case-insensitive keys to redact from body dumps. */
|
|
189
|
+
redactKeys?: string[];
|
|
190
|
+
}
|
|
151
191
|
export interface ServerConfig {
|
|
152
192
|
name: string;
|
|
153
193
|
description: string;
|
|
@@ -177,6 +217,18 @@ export interface MultiServerConfig {
|
|
|
177
217
|
cache?: CacheConfig;
|
|
178
218
|
/** Background health monitor configuration. Enabled by default. */
|
|
179
219
|
healthMonitor?: HealthMonitorConfig;
|
|
220
|
+
/** Transport configuration. Defaults to stdio when omitted. */
|
|
221
|
+
transport?: TransportConfig;
|
|
222
|
+
/** Service logging configuration. */
|
|
223
|
+
logging?: LoggingConfig;
|
|
224
|
+
/**
|
|
225
|
+
* Timeout for individual server requests in milliseconds, including MCP
|
|
226
|
+
* handshake requests (initialize, notifications/initialized) and remote
|
|
227
|
+
* response parsing (JSON body read, SSE stream read). Applies to both
|
|
228
|
+
* local (stdio) and remote (HTTP) servers. Default: 10000 (10 s).
|
|
229
|
+
* Override via CLI flag `--request-timeout` or env var `LAZY_MCP_REQUEST_TIMEOUT`.
|
|
230
|
+
*/
|
|
231
|
+
requestTimeout?: number;
|
|
180
232
|
}
|
|
181
233
|
export interface ServerInfo {
|
|
182
234
|
name: string;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAChC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;CACH;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,UAAU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