MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / sample_bootstrap

Function sample_bootstrap

claw-code/rust/crates/runtime/src/mcp_stdio.rs:1126–1136  ·  view source on GitHub ↗
(script_path: &Path)

Source from the content-addressed store, hash-verified

1124 }
1125
1126 fn sample_bootstrap(script_path: &Path) -> McpClientBootstrap {
1127 let config = ScopedMcpServerConfig {
1128 scope: ConfigSource::Local,
1129 config: McpServerConfig::Stdio(McpStdioServerConfig {
1130 command: "/bin/sh".to_string(),
1131 args: vec![script_path.to_string_lossy().into_owned()],
1132 env: BTreeMap::from([("MCP_TEST_TOKEN".to_string(), "secret-value".to_string())]),
1133 }),
1134 };
1135 McpClientBootstrap::from_scoped_config("stdio server", &config)
1136 }
1137
1138 fn script_transport(script_path: &Path) -> crate::mcp_client::McpStdioTransport {
1139 crate::mcp_client::McpStdioTransport {

Calls

no outgoing calls

Tested by 1