@agiflowai/one-mcp 0.2.5 → 0.2.7

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.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_http = require('./http-Q8LPwwwP.cjs');
1
+ const require_http = require('./http-B4NAfsQl.cjs');
2
2
 
3
3
  exports.HttpTransportHandler = require_http.HttpTransportHandler;
4
4
  exports.SseTransportHandler = require_http.SseTransportHandler;
package/dist/index.d.cts CHANGED
@@ -130,6 +130,7 @@ type McpServerTransportConfig = McpStdioConfig | McpHttpConfig | McpSseConfig;
130
130
  * @property instruction - Optional instruction text describing the server's purpose
131
131
  * @property toolBlacklist - Optional list of tool names to exclude from this server
132
132
  * @property omitToolDescription - Whether to omit tool descriptions in listings
133
+ * @property prompts - Optional prompts configuration for skill conversion
133
134
  * @property transport - The transport type (stdio, http, or sse)
134
135
  * @property config - Transport-specific configuration options
135
136
  */
@@ -138,6 +139,7 @@ interface McpServerConfig {
138
139
  instruction?: string;
139
140
  toolBlacklist?: string[];
140
141
  omitToolDescription?: boolean;
142
+ prompts?: Record<string, PromptConfig>;
141
143
  transport: McpServerTransportType;
142
144
  config: McpServerTransportConfig;
143
145
  }
@@ -148,6 +150,24 @@ interface McpServerConfig {
148
150
  interface SkillsConfig {
149
151
  paths: string[];
150
152
  }
153
+ /**
154
+ * Prompt skill configuration for converting prompts to executable skills
155
+ * @property name - Skill name identifier
156
+ * @property description - Skill description shown in describe_tools
157
+ * @property folder - Optional folder path for skill resources
158
+ */
159
+ interface PromptSkillConfig {
160
+ name: string;
161
+ description: string;
162
+ folder?: string;
163
+ }
164
+ /**
165
+ * Prompt configuration that can be converted to a skill
166
+ * @property skill - Optional skill conversion configuration
167
+ */
168
+ interface PromptConfig {
169
+ skill?: PromptSkillConfig;
170
+ }
151
171
  /**
152
172
  * Remote configuration response containing MCP server definitions
153
173
  * @property mcpServers - Map of server names to their configurations
@@ -202,6 +222,7 @@ interface McpPromptInfo {
202
222
  * @property serverInstruction - Optional instruction text for the server
203
223
  * @property toolBlacklist - Optional list of tool names to exclude
204
224
  * @property omitToolDescription - Whether to omit tool descriptions
225
+ * @property prompts - Optional prompts configuration for skill conversion
205
226
  * @property transport - The transport type used for this connection
206
227
  */
207
228
  interface McpClientConnection {
@@ -209,6 +230,7 @@ interface McpClientConnection {
209
230
  serverInstruction?: string;
210
231
  toolBlacklist?: string[];
211
232
  omitToolDescription?: boolean;
233
+ prompts?: Record<string, PromptConfig>;
212
234
  transport: McpServerTransportType;
213
235
  /** List available tools from the server */
214
236
  listTools(): Promise<McpToolInfo[]>;
@@ -311,4 +333,4 @@ declare class HttpTransportHandler implements HttpTransportHandler$1 {
311
333
  getHost(): string;
312
334
  }
313
335
  //#endregion
314
- export { HttpTransportHandler, McpClientConnection, McpHttpConfig, McpPromptInfo, McpResourceInfo, McpServerConfig, McpServerTransportConfig, McpServerTransportType, McpSseConfig, McpStdioConfig, McpToolInfo, RemoteMcpConfiguration, type ServerOptions, Skill, SkillMetadata, SkillsConfig, SseTransportHandler, StdioTransportHandler, TRANSPORT_MODE, Tool, ToolDefinition, TransportConfig, TransportHandler, TransportMode, createServer };
336
+ export { HttpTransportHandler, McpClientConnection, McpHttpConfig, McpPromptInfo, McpResourceInfo, McpServerConfig, McpServerTransportConfig, McpServerTransportType, McpSseConfig, McpStdioConfig, McpToolInfo, PromptConfig, PromptSkillConfig, RemoteMcpConfiguration, type ServerOptions, Skill, SkillMetadata, SkillsConfig, SseTransportHandler, StdioTransportHandler, TRANSPORT_MODE, Tool, ToolDefinition, TransportConfig, TransportHandler, TransportMode, createServer };
package/dist/index.d.mts CHANGED
@@ -130,6 +130,7 @@ type McpServerTransportConfig = McpStdioConfig | McpHttpConfig | McpSseConfig;
130
130
  * @property instruction - Optional instruction text describing the server's purpose
131
131
  * @property toolBlacklist - Optional list of tool names to exclude from this server
132
132
  * @property omitToolDescription - Whether to omit tool descriptions in listings
133
+ * @property prompts - Optional prompts configuration for skill conversion
133
134
  * @property transport - The transport type (stdio, http, or sse)
134
135
  * @property config - Transport-specific configuration options
135
136
  */
@@ -138,6 +139,7 @@ interface McpServerConfig {
138
139
  instruction?: string;
139
140
  toolBlacklist?: string[];
140
141
  omitToolDescription?: boolean;
142
+ prompts?: Record<string, PromptConfig>;
141
143
  transport: McpServerTransportType;
142
144
  config: McpServerTransportConfig;
143
145
  }
@@ -148,6 +150,24 @@ interface McpServerConfig {
148
150
  interface SkillsConfig {
149
151
  paths: string[];
150
152
  }
153
+ /**
154
+ * Prompt skill configuration for converting prompts to executable skills
155
+ * @property name - Skill name identifier
156
+ * @property description - Skill description shown in describe_tools
157
+ * @property folder - Optional folder path for skill resources
158
+ */
159
+ interface PromptSkillConfig {
160
+ name: string;
161
+ description: string;
162
+ folder?: string;
163
+ }
164
+ /**
165
+ * Prompt configuration that can be converted to a skill
166
+ * @property skill - Optional skill conversion configuration
167
+ */
168
+ interface PromptConfig {
169
+ skill?: PromptSkillConfig;
170
+ }
151
171
  /**
152
172
  * Remote configuration response containing MCP server definitions
153
173
  * @property mcpServers - Map of server names to their configurations
@@ -202,6 +222,7 @@ interface McpPromptInfo {
202
222
  * @property serverInstruction - Optional instruction text for the server
203
223
  * @property toolBlacklist - Optional list of tool names to exclude
204
224
  * @property omitToolDescription - Whether to omit tool descriptions
225
+ * @property prompts - Optional prompts configuration for skill conversion
205
226
  * @property transport - The transport type used for this connection
206
227
  */
207
228
  interface McpClientConnection {
@@ -209,6 +230,7 @@ interface McpClientConnection {
209
230
  serverInstruction?: string;
210
231
  toolBlacklist?: string[];
211
232
  omitToolDescription?: boolean;
233
+ prompts?: Record<string, PromptConfig>;
212
234
  transport: McpServerTransportType;
213
235
  /** List available tools from the server */
214
236
  listTools(): Promise<McpToolInfo[]>;
@@ -311,4 +333,4 @@ declare class HttpTransportHandler implements HttpTransportHandler$1 {
311
333
  getHost(): string;
312
334
  }
313
335
  //#endregion
314
- export { HttpTransportHandler, McpClientConnection, McpHttpConfig, McpPromptInfo, McpResourceInfo, McpServerConfig, McpServerTransportConfig, McpServerTransportType, McpSseConfig, McpStdioConfig, McpToolInfo, RemoteMcpConfiguration, type ServerOptions, Skill, SkillMetadata, SkillsConfig, SseTransportHandler, StdioTransportHandler, TRANSPORT_MODE, Tool, ToolDefinition, TransportConfig, TransportHandler, TransportMode, createServer };
336
+ export { HttpTransportHandler, McpClientConnection, McpHttpConfig, McpPromptInfo, McpResourceInfo, McpServerConfig, McpServerTransportConfig, McpServerTransportType, McpSseConfig, McpStdioConfig, McpToolInfo, PromptConfig, PromptSkillConfig, RemoteMcpConfiguration, type ServerOptions, Skill, SkillMetadata, SkillsConfig, SseTransportHandler, StdioTransportHandler, TRANSPORT_MODE, Tool, ToolDefinition, TransportConfig, TransportHandler, TransportMode, createServer };
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-BKDyW8YB.mjs";
1
+ import { i as createServer, n as SseTransportHandler, r as StdioTransportHandler, t as HttpTransportHandler } from "./http-DSkkpGJU.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.5",
4
+ "version": "0.2.7",
5
5
  "license": "AGPL-3.0",
6
6
  "keywords": [
7
7
  "mcp",
@@ -19,7 +19,7 @@
19
19
  "README.md"
20
20
  ],
21
21
  "dependencies": {
22
- "@modelcontextprotocol/sdk": "1.19.1",
22
+ "@modelcontextprotocol/sdk": "1.24.0",
23
23
  "chalk": "5.6.2",
24
24
  "commander": "14.0.1",
25
25
  "express": "^4.21.2",
@@ -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.8"
30
+ "@agiflowai/aicode-utils": "1.0.9"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/express": "^5.0.0",
@@ -36,7 +36,7 @@
36
36
  "tsdown": "^0.16.4",
37
37
  "typescript": "5.9.3",
38
38
  "unplugin-raw": "^0.6.3",
39
- "vitest": "^2.1.8"
39
+ "vitest": "4.0.15"
40
40
  },
41
41
  "type": "module",
42
42
  "exports": {