MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / run

Method run

src/mcp/server.rs:1639–1642  ·  view source on GitHub ↗

Runs the server, reading JSON-RPC requests from stdin and writing responses to stdout. Runs until stdin is closed or a shutdown signal (SIGINT/SIGTERM) is received, then performs graceful cleanup.

(&self, transport: &mut impl super::transport::McpTransport)

Source from the content-addressed store, hash-verified

1637 /// responses to stdout. Runs until stdin is closed or a shutdown signal
1638 /// (SIGINT/SIGTERM) is received, then performs graceful cleanup.
1639 pub async fn run(&self, transport: &mut impl super::transport::McpTransport) -> Result<()> {
1640 self.run_with_shutdown_policy(transport, true, true, None)
1641 .await
1642 }
1643
1644 /// Runs one client connection without shutting down the server when that
1645 /// connection closes. Daemon-owned servers use this so the engine remains

Callers 9

runFunction · 0.45
run_serveFunction · 0.45
serve_resolved_projectFunction · 0.45
_runFunction · 0.45
generate_pluginFunction · 0.45
run_server_with_messagesFunction · 0.45
clone_repoFunction · 0.45
run_timedFunction · 0.45

Calls 1

Tested by 2

run_server_with_messagesFunction · 0.36