Skip to main content

Module resources

Module resources 

Source
Expand description

Embedded reference resources shared by the CLI and the MCP server.

Resources are exposed via two surfaces that must stay in lock step:

  • CLI: omni-dev resources show <id> / omni-dev resources list
  • MCP: omni-dev://<id> (e.g. omni-dev://specs/jfm)

Content is embedded into the binary at compile time so installed builds (cargo install omni-dev) serve it without reading from disk.

Structs§

Resource
One entry in the embedded-resource registry.

Constants§

REGISTRY
The complete static registry. Kept lexicographically sorted by id so list output stays deterministic as entries are added.
SPEC_JFM
JFM (JIRA-Flavoured Markdown) specification, embedded from docs/specs/jfm.md.

Functions§

get
Returns the resource with the given canonical id, or None.
ids
All ids in registry order. Used for list output and error messages.
known_ids_csv
Comma-separated list of known ids, for error messages.