MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / ApiCapability

Class ApiCapability

crates/openshell-prover/src/credentials.rs:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84/// Capability registry for an API (e.g., GitHub REST API).
85#[derive(Debug, Clone)]
86pub struct ApiCapability {
87 pub api: String,
88 pub host: String,
89 pub port: u32,
90 pub credential_type: String,
91 pub scope_capabilities: HashMap<String, Vec<ApiAction>>,
92 pub action_risk: HashMap<String, String>,
93}
94
95impl ApiCapability {
96 /// All actions enabled by the given scopes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected