pub enum AgentCommand {
Plan {
tag: Vec<String>,
json: bool,
output: Option<String>,
vault: String,
},
Exec {
only: Vec<String>,
vault: String,
command: Vec<String>,
},
Grant {
name: String,
only: Vec<String>,
ttl: String,
out: Option<String>,
vault: String,
},
Init {
name: String,
only: Vec<String>,
allow_tag: Vec<String>,
ttl: String,
out: Option<String>,
vault: String,
},
Ls {
json: bool,
vault: String,
},
Revoke {
name: String,
rotate: bool,
vault: String,
},
Connect {
client: Option<String>,
only: Vec<String>,
allow_tag: Vec<String>,
allow_exec: bool,
ttl: String,
name: String,
vault: String,
},
Disconnect {
client: Option<String>,
rotate: bool,
name: String,
vault: String,
},
}Variants§
Plan
Emit schema-only context safe to paste into an AI agent prompt
Fields
Exec
Run a command with strict agent-safe defaults (clears the inherited environment, strips MURK_KEY, requires –only)
Fields
Grant
Mint a short-lived ephemeral key that can read only the named secrets
Fields
Init
One-shot onboarding: optionally set the agent allow-list, mint a scoped grant, and print how to run the agent safely
Fields
Ls
List active agent grants and their TTLs
Revoke
Revoke an agent grant and rotate the keys it could read
Fields
Connect
Wire murk mcp into an AI editor’s MCP config, minting a scoped grant.
No CLIENT auto-detects installed editors; give one (claude, cursor,
vscode, zed, gemini, omp, codex) to target it.
Fields
Disconnect
Remove murk’s entry from an AI editor’s MCP config. No CLIENT clears every
configured editor; --rotate also revokes the grant and rotates its keys.
Trait Implementations§
Source§impl FromArgMatches for AgentCommand
impl FromArgMatches for AgentCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for AgentCommand
impl Subcommand for AgentCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand