feat(fxt): wire MCP server to real gRPC calls
All 32 MCP tool handlers now make real gRPC calls to the API Gateway instead of returning stub responses. Covers: service monitoring, training management, trading operations, ML inference, risk metrics, broker status, data acquisition, cluster resources, agent control, config management, and hyperopt tuning. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
use anyhow::Result;
|
||||
use clap::Parser;
|
||||
|
||||
use crate::grpc::FoxhuntClient;
|
||||
use crate::mcp::server::McpServer;
|
||||
|
||||
/// Start MCP server (JSON-RPC 2.0 on stdin/stdout)
|
||||
@@ -24,7 +25,8 @@ impl McpCommand {
|
||||
/// Start the MCP server that exposes Foxhunt operations as tools
|
||||
/// for LLM agents (e.g. Claude, Cursor).
|
||||
pub async fn execute(&self) -> Result<()> {
|
||||
let server = McpServer::new(self.api_url.clone());
|
||||
let client = FoxhuntClient::connect(&self.api_url).await?;
|
||||
let server = McpServer::new(self.api_url.clone(), client);
|
||||
server.run().await
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user