Exception: Woods::MCP::MissingArtifact

Inherits:
BootstrapError show all
Defined in:
lib/woods/mcp/errors.rb

Overview

Raised when woods.json is absent from output_dir and the operator has opted into strict mode with WOODS_REQUIRE_INDEX=1. By default an absent artifact is not an error — the server boots in pattern/structural-only mode (see ConfigResolver.resolve_without_artifact). Strict mode exists for deployments that want to fail closed when an index is missing.

Examples:

raise Woods::MCP::MissingArtifact.new(
  "No woods.json found in /app/tmp/woods. Run `rake woods:embed` first.",
  details: { output_dir: "/app/tmp/woods" }
)

Instance Attribute Summary

Attributes inherited from BootstrapError

#details

Method Summary

Methods inherited from BootstrapError

#initialize

Constructor Details

This class inherits a constructor from Woods::MCP::BootstrapError