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

Function is_unsupported

atomic-cli/src/commands/identity/agent/create.rs:416–419  ·  view source on GitHub ↗

Is this the far end saying it has never heard of agent identities?

(error: &atomic_remote::RemoteError)

Source from the content-addressed store, hash-verified

414
415/// Is this the far end saying it has never heard of agent identities?
416fn is_unsupported(error: &atomic_remote::RemoteError) -> bool {
417 let message = error.to_string();
418 message.contains("404") || message.to_lowercase().contains("not found")
419}
420
421/// Record the agent identity on the server profile so hooks use it by default.
422///

Callers 1

enrollMethod · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected