MCPcopy Create free account
hub / github.com/GCWing/BitFun / config

Method config

src/apps/cli/src/acp_cli.rs:50–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 }
49
50 fn config(self) -> AcpClientConfig {
51 let (command, args) = match self {
52 Self::Opencode => ("opencode", vec!["acp"]),
53 Self::ClaudeCode => (
54 "npx",
55 vec!["--yes", "@zed-industries/claude-code-acp@latest"],
56 ),
57 Self::Codex => ("npx", vec!["--yes", "@zed-industries/codex-acp@latest"]),
58 };
59 AcpClientConfig {
60 name: Some(self.display_name().to_string()),
61 command: command.to_string(),
62 args: args.into_iter().map(ToString::to_string).collect(),
63 env: HashMap::new(),
64 enabled: true,
65 readonly: false,
66 permission_mode: AcpClientPermissionMode::Ask,
67 }
68 }
69}
70
71impl CliAcpPermissionMode {

Callers 3

list_external_clientsFunction · 0.45
enable_external_clientFunction · 0.45
run_external_clientFunction · 0.45

Calls 2

collectMethod · 0.80
display_nameMethod · 0.45

Tested by

no test coverage detected