Skip to main content

Crate formanator

Crate formanator 

Source
Expand description

formanator library crate. The CLI binary in src/main.rs wires this together with Clap and the various subcommand handlers in commands.

Modules§

claims
Helpers for parsing claim CSV files and converting user-facing claim data into the CreateClaimOptions expected by the Forma API client.
cli
Clap-based CLI definition. Each subcommand is wired up to a handler in the crate::commands module by [crate::main].
commands
Subcommand handlers. Each module exposes a run(args) function that the [crate::main] dispatcher calls.
config
Persistent configuration stored at ~/.formanator.toml.
forma
HTTP client for the Forma API (https://api.joinforma.com).
keychain
Secure token storage in the system keychain.
llm
LLM-powered inference for claim metadata. Supports both the OpenAI API and the GitHub Models inference endpoint via the async-openai crate, which speaks the OpenAI chat-completions protocol.
mcp
Model Context Protocol (MCP) server, exposing Forma operations as tools to MCP clients such as Claude Desktop or VS Code’s MCP integration. Modelled on the corresponding implementation in [timrogers/litra-rs].
prompt
Small interactive helpers shared by command implementations.
update_check
Daily check for newer releases of formanator on GitHub.
verbose
Process-wide verbose-logging toggle shared by the Forma HTTP client and the LLM client. Both use the same flag because the CLI exposes a single --verbose switch per subcommand.