diff --git a/src/bin/promptx.js b/src/bin/promptx.js index 755627a..c9b3143 100755 --- a/src/bin/promptx.js +++ b/src/bin/promptx.js @@ -8,8 +8,8 @@ const logger = require('../lib/utils/logger') // 导入锦囊框架 const { cli } = require('../lib/core/pouch') // 导入MCP Server命令 -const { MCPServerCommand } = require('../lib/commands/MCPServerCommand') -const { MCPStreamableHttpCommand } = require('../lib/commands/MCPStreamableHttpCommand') +const { MCPServerCommand } = require('../lib/mcp/MCPServerCommand') +const { MCPStreamableHttpCommand } = require('../lib/mcp/MCPStreamableHttpCommand') // 创建主程序 const program = new Command() diff --git a/src/lib/commands/index.js b/src/lib/commands/index.js deleted file mode 100644 index c526822..0000000 --- a/src/lib/commands/index.js +++ /dev/null @@ -1,7 +0,0 @@ -const { MCPServerCommand } = require('./MCPServerCommand'); -const { MCPStreamableHttpCommand } = require('./MCPStreamableHttpCommand'); - -module.exports = { - MCPServerCommand, - MCPStreamableHttpCommand -}; \ No newline at end of file diff --git a/src/lib/commands/MCPServerCommand.js b/src/lib/mcp/MCPServerCommand.js similarity index 100% rename from src/lib/commands/MCPServerCommand.js rename to src/lib/mcp/MCPServerCommand.js diff --git a/src/lib/commands/MCPStreamableHttpCommand.js b/src/lib/mcp/MCPStreamableHttpCommand.js similarity index 100% rename from src/lib/commands/MCPStreamableHttpCommand.js rename to src/lib/mcp/MCPStreamableHttpCommand.js