MAP Docs
MARS

CLI

`map invoke MARS` recipes for every operation.

The CLI is a Rust binary at services/map-cli. After map login you can dispatch any operation on MARS from the shell.

Common flags

FlagEffect
--input <json>Operation payload (or read from stdin)
--version v1.0.0Pin a specific protocol version
--idempotency-key <k>Required for safe retries of state-changing ops
--audit-tailPrint the audit record(s) produced
--output humanPretty-print response (default: json)

Recipes

register_agent

map invoke MARS register_agent --input '{"did":"did:oas:l1fe:agent:0x...","capabilities":[]}'

Register an agent with its OAS DID and capability declaration.

Capability: map.mars.register_agent

query_registry

map invoke MARS query_registry --input '{"example":true}'

Query the registry by predicate; supports paging and capability filters.

Capability: map.mars.query_registry

publish_manifest

map invoke MARS publish_manifest --input '{"example":true}'

Publish an artifact manifest (workflow, model, asset) with provenance.

Capability: map.mars.publish_manifest

discovery

map invoke MARS discovery --input '{"example":true}'

Discover entities/assets matching a capability or schema predicate.

Capability: map.mars.discovery

See CLI reference for global flags, login, MCP integration.

On this page