@agiflowai/one-mcp 0.2.7 → 0.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/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-DSkkpGJU.mjs";
1
+ import { i as createServer, n as SseTransportHandler, r as StdioTransportHandler, t as HttpTransportHandler } from "./http-xi_ha63Y.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.7",
4
+ "version": "0.3.1",
5
5
  "license": "AGPL-3.0",
6
6
  "keywords": [
7
7
  "mcp",