feat: mcp server?

This commit is contained in:
hyper
2026-03-17 20:01:04 +08:00
parent b099d5695d
commit 834db72ec4
5 changed files with 710 additions and 0 deletions
+4
View File
@@ -2,6 +2,7 @@
import { Command } from 'commander';
import { serveCommand } from './commands/serve.js';
import { compileCommand } from './commands/compile.js';
import { mcpCommand } from './commands/mcp.js';
import type { ServeOptions, CompileOptions } from './types.js';
const program = new Command();
@@ -25,4 +26,7 @@ program
.option('-o, --output <dir>', '输出目录', './dist/output')
.action(compileCommand);
program
.addCommand(mcpCommand);
program.parse();