refactor(core): remove provider module, migrate to LLMProvider, add client mode handling, improve serialization error handling, update workspace edition, and clean up conditionals and imports
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
/// Provides a unified interface for creating MCP clients based on configuration.
|
||||
/// Supports switching between local (in-process) and remote (STDIO) execution modes.
|
||||
use super::client::McpClient;
|
||||
use super::{remote_client::RemoteMcpClient, LocalMcpClient};
|
||||
use super::{LocalMcpClient, remote_client::RemoteMcpClient};
|
||||
use crate::config::{Config, McpMode};
|
||||
use crate::tools::registry::ToolRegistry;
|
||||
use crate::validation::SchemaValidator;
|
||||
@@ -109,8 +109,8 @@ impl McpClientFactory {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::config::McpServerConfig;
|
||||
use crate::Error;
|
||||
use crate::config::McpServerConfig;
|
||||
|
||||
fn build_factory(config: Config) -> McpClientFactory {
|
||||
let ui = Arc::new(crate::ui::NoOpUiController);
|
||||
|
||||
Reference in New Issue
Block a user