MCPcopy Create free account
hub / github.com/dexwritescode/rust-mcp / new

Method new

src/server/handler.rs:30–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28#[tool_router]
29impl RustMcpServer {
30 pub fn new() -> Self {
31 Self {
32 analyzer: Arc::new(Mutex::new(RustAnalyzerClient::new())),
33 tool_router: Self::tool_router(),
34 }
35 }
36
37 pub async fn start(&mut self) -> Result<()> {
38 let mut analyzer = self.analyzer.lock().await;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected