Firm 0.5.0
This release adds an MCP server for AI assistant integration, query aggregations for computing summary values, compound query conditions, and several CLI improvements.
MCP server
Firm now includes a local Model Context Protocol server, enabling AI assistants like Claude Desktop to interact with your workspace directly:
firm mcp
The server exposes tools for querying, listing, and getting entities, adding new entities with validation, reading and writing source files with automatic rollback on error, and an in-context DSL reference.
Query aggregations
Queries can now end with an aggregation clause to compute summary values from the result set:
firm query 'from task | where is_completed == false | count'
firm query 'from invoice | where status == "sent" | sum amount'
firm query 'from task | select @id, name, due_date'
Supported aggregations:
select- Extract specific field values from entitiescount- Count entities, optionally filtering by field presencesum- Sum a numeric field (integer, float, or currency)- - Compute the mean of a numeric field