MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / enroll_agent

Method enroll_agent

atomic-remote/src/storage.rs:445–450  ·  view source on GitHub ↗

Enroll an agent identity under the authenticated human identity. The caller must be the delegator named in the certificate — the server verifies the proof against the public key it has on record for the caller, so a certificate signed by anyone else is rejected no matter who presents it.

(
        &self,
        req: &EnrollAgentRequest,
    )

Source from the content-addressed store, hash-verified

443 /// caller, so a certificate signed by anyone else is rejected no matter who
444 /// presents it.
445 pub async fn enroll_agent(
446 &self,
447 req: &EnrollAgentRequest,
448 ) -> Result<AgentIdentityInfo, RemoteError> {
449 self.post("/identities/agents", req).await
450 }
451
452 /// List the agents enrolled under the authenticated identity.
453 pub async fn list_agents(&self) -> Result<Vec<AgentIdentityInfo>, RemoteError> {

Callers 1

enrollMethod · 0.80

Calls 1

postMethod · 0.80

Tested by

no test coverage detected