pub struct GlobalArgs {Show 50 fields
pub spec: Option<String>,
pub mcp: Option<String>,
pub mcp_stdio: Option<String>,
pub graphql: Option<String>,
pub auth_header: Vec<String>,
pub base_url: Option<String>,
pub cache_key: Option<String>,
pub cache_ttl: u64,
pub refresh: bool,
pub list_commands: bool,
pub search_pattern: Option<String>,
pub detail: Option<String>,
pub describe: Option<String>,
pub verbose: bool,
pub sort: Option<String>,
pub top: Option<usize>,
pub compact: bool,
pub pretty: bool,
pub raw: bool,
pub json_output: bool,
pub envelope: bool,
pub toon: bool,
pub head: Option<usize>,
pub max_bytes: Option<usize>,
pub inline: bool,
pub agent: bool,
pub spool_clean: bool,
pub fields: Option<String>,
pub transport: String,
pub env: Vec<String>,
pub oauth: bool,
pub oauth_client_id: Option<String>,
pub oauth_client_secret: Option<String>,
pub oauth_client_name: String,
pub oauth_scope: Option<String>,
pub oauth_redirect_uri: Option<String>,
pub oauth_flow: String,
pub oauth_clear: bool,
pub session_start: Option<String>,
pub session: Option<String>,
pub session_stop: Option<String>,
pub session_list: bool,
pub session_idle_secs: Option<u64>,
pub session_clean_env: bool,
pub list_resources: bool,
pub list_resource_templates: bool,
pub read_resource: Option<String>,
pub list_prompts: bool,
pub get_prompt: Option<String>,
pub prompt_arg: Vec<String>,
}Fields§
§spec: Option<String>OpenAPI spec URL or local file
mcp: Option<String>MCP server URL (HTTP streamable / SSE)
mcp_stdio: Option<String>MCP server as a shell command (stdio transport)
graphql: Option<String>GraphQL endpoint URL
auth_header: Vec<String>HTTP header as Name:Value (repeatable; value may use env:/file:)
base_url: Option<String>Override base URL from OpenAPI spec
cache_key: Option<String>Custom cache key
cache_ttl: u64Cache TTL in seconds
refresh: boolForce re-fetch
list_commands: boolList available subcommands
search_pattern: Option<String>Search tools by name or description
detail: Option<String>List / help JSON detail: names|brief|full
describe: Option<String>Emit one tool’s full schema as JSON (progressive describe)
verbose: boolFull tool descriptions in –list
sort: Option<String>Sort –list: usage|recent|alpha|default
top: Option<usize>Show only top N tools
compact: boolSpace-separated tool names only (alias for –detail names)
pretty: boolPretty-print JSON
raw: boolPrint raw response body
json_output: boolForce valid JSON output (content-only for MCP; see –envelope)
envelope: boolReturn full MCP CallToolResult envelope (instead of content-only)
toon: boolTOON encoding (native; falls back to JSON on encode failure)
head: Option<usize>Limit output to first N array records
max_bytes: Option<usize>Spill stdout to spool when rendered size exceeds N bytes (0 = never)
inline: boolNever spill; always print full stdout
agent: boolAgent defaults: JSON, brief discovery, spool oversize (or SKIFF_AGENT=1)
spool_clean: boolDelete expired spool files and exit
fields: Option<String>GraphQL selection set override
transport: StringMCP HTTP transport: auto|sse|streamable
env: Vec<String>Env KEY=VALUE for MCP stdio (repeatable)
oauth: boolEnable OAuth (also implied by –oauth-client-id / –oauth-client-secret)
oauth_client_id: Option<String>OAuth client ID (supports env:/file: secrets)
oauth_client_secret: Option<String>OAuth client secret (supports env:/file: secrets)
oauth_client_name: StringOAuth client name for DCR
oauth_scope: Option<String>OAuth scope string
oauth_redirect_uri: Option<String>Loopback redirect URI (http://127.0.0.1:
oauth_flow: StringOAuth flow: auto|authorization_code|client_credentials
oauth_clear: boolClear cached OAuth credentials for the discovery URL and exit
session_start: Option<String>Start a named MCP session daemon (requires –mcp or –mcp-stdio; Unix)
session: Option<String>Use an existing session daemon instead of a one-shot MCP connect (Unix)
session_stop: Option<String>Stop a named session daemon (SIGTERM, then SIGKILL; Unix)
session_list: boolList session daemons (use –json for machine-readable output)
session_idle_secs: Option<u64>Session idle exit after N seconds of no IPC (default 1800; 0 = never)
session_clean_env: boolFor stdio sessions: child gets only PATH/HOME/LANG/TMP* plus –env
list_resources: boolList MCP resources (via –session today)
list_resource_templates: boolList MCP resource templates
read_resource: Option<String>Read an MCP resource by URI
list_prompts: boolList MCP prompts
get_prompt: Option<String>Get an MCP prompt by name
prompt_arg: Vec<String>Prompt argument as key=value (repeatable, with –get-prompt)
Implementations§
Source§impl GlobalArgs
impl GlobalArgs
Sourcepub fn apply_agent_defaults(&mut self)
pub fn apply_agent_defaults(&mut self)
Apply --agent / SKIFF_AGENT=1 defaults (idempotent).
pub fn list_detail(&self) -> ListDetail
Sourcepub fn quiet_list(&self) -> bool
pub fn quiet_list(&self) -> bool
Suppress human list banners.
pub fn output_options(&self) -> OutputOptions
Sourcepub fn full_envelope(&self) -> bool
pub fn full_envelope(&self) -> bool
MCP call: content-only unless --envelope.
pub fn parse_auth_headers(&self) -> Result<Vec<(String, String)>>
pub fn parse_env_vars(&self) -> Result<BTreeMap<String, String>>
Trait Implementations§
Source§impl Args for GlobalArgs
impl Args for GlobalArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for GlobalArgs
impl Clone for GlobalArgs
Source§fn clone(&self) -> GlobalArgs
fn clone(&self) -> GlobalArgs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for GlobalArgs
impl CommandFactory for GlobalArgs
Source§impl Debug for GlobalArgs
impl Debug for GlobalArgs
Source§impl FromArgMatches for GlobalArgs
impl FromArgMatches for GlobalArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.