The mental model
Think of Airstore as a translation layer:- Sources (Gmail, GitHub, Drive) become folders you can browse
- Tools (MCP servers) become executables you can run
- Queries become materialized views that sync in the background
Architecture
How reads work
When you read a file:- Your agent (or
cat,ls, etc.) reads from the mounted filesystem - The FUSE layer forwards the request to the Airstore gateway
- Gateway returns cached data from the materialized view
- File contents arrive in milliseconds
How smart folders work
When you create a smart folder:- Airstore sends your query to an LLM
- LLM translates it to the appropriate API query (Gmail search syntax, GitHub filters, etc.)
- Airstore executes the query against the source API
- Results are materialized as files and cached
- Background sync keeps the view fresh
How tools work
Tools are MCP servers exposed as CLI executables:- The executable is a thin wrapper that calls the MCP server
- Arguments are passed through
- Output (usually JSON) is returned to stdout
- You can pipe tools together like Unix commands
Sync and consistency
Materialized views sync in the background:- Sync: Periodic background refresh
- Consistency model: Eventual consistency
- Manual refresh:
airstore sync <path>