test ai chat mcp

This commit is contained in:
2026-01-20 17:49:16 +09:00
parent 1d3aa51fb6
commit a77dde0366
8 changed files with 582 additions and 54 deletions

View File

@@ -1,6 +1,7 @@
mod commands;
mod lexicons;
mod lms;
mod mcp;
use anyhow::Result;
use clap::{Parser, Subcommand};
@@ -139,6 +140,10 @@ enum Commands {
#[arg(long)]
new: bool,
},
/// Run MCP server (for Claude Code integration)
#[command(name = "mcp-serve")]
McpServe,
}
#[tokio::main]
@@ -182,6 +187,9 @@ async fn main() -> Result<()> {
Commands::Chat { message, new } => {
lms::chat::run(message.as_deref(), new).await?;
}
Commands::McpServe => {
mcp::serve()?;
}
}
Ok(())