@agiflowai/one-mcp 0.2.7 → 0.2.8
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 +34 -0
- package/dist/cli.cjs +564 -52
- package/dist/cli.mjs +565 -53
- package/dist/{http-B4NAfsQl.cjs → http-BzrxGEr-.cjs} +270 -145
- package/dist/{http-DSkkpGJU.mjs → http-DeUYygKb.mjs} +271 -146
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -8,6 +8,7 @@ import { CallToolResult, GetPromptResult, ReadResourceResult } from "@modelconte
|
|
|
8
8
|
* @property configFilePath - Path to the MCP configuration file
|
|
9
9
|
* @property noCache - Skip cache when fetching remote configuration
|
|
10
10
|
* @property skills - Skills configuration with paths array (optional, skills disabled if not provided)
|
|
11
|
+
* @property serverId - CLI-provided server ID (takes precedence over config file id)
|
|
11
12
|
*/
|
|
12
13
|
interface ServerOptions {
|
|
13
14
|
configFilePath?: string;
|
|
@@ -15,6 +16,7 @@ interface ServerOptions {
|
|
|
15
16
|
skills?: {
|
|
16
17
|
paths: string[];
|
|
17
18
|
};
|
|
19
|
+
serverId?: string;
|
|
18
20
|
}
|
|
19
21
|
declare function createServer(options?: ServerOptions): Promise<Server>;
|
|
20
22
|
//#endregion
|
|
@@ -133,6 +135,8 @@ type McpServerTransportConfig = McpStdioConfig | McpHttpConfig | McpSseConfig;
|
|
|
133
135
|
* @property prompts - Optional prompts configuration for skill conversion
|
|
134
136
|
* @property transport - The transport type (stdio, http, or sse)
|
|
135
137
|
* @property config - Transport-specific configuration options
|
|
138
|
+
* @property timeout - Optional connection timeout in milliseconds (default: 30000)
|
|
139
|
+
* @property disabled - Whether this server is disabled and should not be started
|
|
136
140
|
*/
|
|
137
141
|
interface McpServerConfig {
|
|
138
142
|
name: string;
|
|
@@ -142,6 +146,8 @@ interface McpServerConfig {
|
|
|
142
146
|
prompts?: Record<string, PromptConfig>;
|
|
143
147
|
transport: McpServerTransportType;
|
|
144
148
|
config: McpServerTransportConfig;
|
|
149
|
+
timeout?: number;
|
|
150
|
+
disabled?: boolean;
|
|
145
151
|
}
|
|
146
152
|
/**
|
|
147
153
|
* Skills configuration
|
|
@@ -170,10 +176,12 @@ interface PromptConfig {
|
|
|
170
176
|
}
|
|
171
177
|
/**
|
|
172
178
|
* Remote configuration response containing MCP server definitions
|
|
179
|
+
* @property id - Optional unique server identifier
|
|
173
180
|
* @property mcpServers - Map of server names to their configurations
|
|
174
181
|
* @property skills - Optional skills configuration with paths
|
|
175
182
|
*/
|
|
176
183
|
interface RemoteMcpConfiguration {
|
|
184
|
+
id?: string;
|
|
177
185
|
mcpServers: Record<string, McpServerConfig>;
|
|
178
186
|
skills?: SkillsConfig;
|
|
179
187
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -8,6 +8,7 @@ import { CallToolResult, GetPromptResult, ReadResourceResult } from "@modelconte
|
|
|
8
8
|
* @property configFilePath - Path to the MCP configuration file
|
|
9
9
|
* @property noCache - Skip cache when fetching remote configuration
|
|
10
10
|
* @property skills - Skills configuration with paths array (optional, skills disabled if not provided)
|
|
11
|
+
* @property serverId - CLI-provided server ID (takes precedence over config file id)
|
|
11
12
|
*/
|
|
12
13
|
interface ServerOptions {
|
|
13
14
|
configFilePath?: string;
|
|
@@ -15,6 +16,7 @@ interface ServerOptions {
|
|
|
15
16
|
skills?: {
|
|
16
17
|
paths: string[];
|
|
17
18
|
};
|
|
19
|
+
serverId?: string;
|
|
18
20
|
}
|
|
19
21
|
declare function createServer(options?: ServerOptions): Promise<Server>;
|
|
20
22
|
//#endregion
|
|
@@ -133,6 +135,8 @@ type McpServerTransportConfig = McpStdioConfig | McpHttpConfig | McpSseConfig;
|
|
|
133
135
|
* @property prompts - Optional prompts configuration for skill conversion
|
|
134
136
|
* @property transport - The transport type (stdio, http, or sse)
|
|
135
137
|
* @property config - Transport-specific configuration options
|
|
138
|
+
* @property timeout - Optional connection timeout in milliseconds (default: 30000)
|
|
139
|
+
* @property disabled - Whether this server is disabled and should not be started
|
|
136
140
|
*/
|
|
137
141
|
interface McpServerConfig {
|
|
138
142
|
name: string;
|
|
@@ -142,6 +146,8 @@ interface McpServerConfig {
|
|
|
142
146
|
prompts?: Record<string, PromptConfig>;
|
|
143
147
|
transport: McpServerTransportType;
|
|
144
148
|
config: McpServerTransportConfig;
|
|
149
|
+
timeout?: number;
|
|
150
|
+
disabled?: boolean;
|
|
145
151
|
}
|
|
146
152
|
/**
|
|
147
153
|
* Skills configuration
|
|
@@ -170,10 +176,12 @@ interface PromptConfig {
|
|
|
170
176
|
}
|
|
171
177
|
/**
|
|
172
178
|
* Remote configuration response containing MCP server definitions
|
|
179
|
+
* @property id - Optional unique server identifier
|
|
173
180
|
* @property mcpServers - Map of server names to their configurations
|
|
174
181
|
* @property skills - Optional skills configuration with paths
|
|
175
182
|
*/
|
|
176
183
|
interface RemoteMcpConfiguration {
|
|
184
|
+
id?: string;
|
|
177
185
|
mcpServers: Record<string, McpServerConfig>;
|
|
178
186
|
skills?: SkillsConfig;
|
|
179
187
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as createServer, n as SseTransportHandler, r as StdioTransportHandler, t as HttpTransportHandler } from "./http-
|
|
1
|
+
import { i as createServer, n as SseTransportHandler, r as StdioTransportHandler, t as HttpTransportHandler } from "./http-DeUYygKb.mjs";
|
|
2
2
|
|
|
3
3
|
export { HttpTransportHandler, SseTransportHandler, StdioTransportHandler, createServer };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agiflowai/one-mcp",
|
|
3
3
|
"description": "One MCP server package",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.8",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"mcp",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"js-yaml": "^4.1.0",
|
|
28
28
|
"liquidjs": "^10.21.0",
|
|
29
29
|
"zod": "^3.24.1",
|
|
30
|
-
"@agiflowai/aicode-utils": "1.0.
|
|
30
|
+
"@agiflowai/aicode-utils": "1.0.10"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/express": "^5.0.0",
|