Event Store Explorer

The Event Store Explorer is the operator-facing window into a monitored service's event store — its domain streams, the events inside them, its projections, and its event-store configuration. It reaches into the monitored service over Wolverine.CritterWatch's EnableEventStoreExplorer round-trips.
Route: /explorer (the retired standalone /events page redirects here).
Three similarly-named surfaces — don't conflate them
- Event Store Explorer (
/explorer) — a monitored service's event store (domain streams, events, projections, config). You are here. - Store Inspector (
/raw) — the console's own frontend state (Pinia stores + the live SignalR message log). A debugging surface. - Timeline / Audit Log — CritterWatch's own system events and operator actions.
Opt-in
The explorer is gated by CritterWatchOptions.EnableEventStoreExplorer on the monitored service — not on the console. The default is true in Development and false everywhere else. When disabled, the page renders an "Event Store Explorer is disabled on this service" banner — flip the option to opt in:
builder.Host.UseWolverine(opts =>
{
opts.ServiceName = "my-service";
var critterWatch = opts.AddCritterWatchMonitoring(
critterWatchUri: new Uri("rabbitmq://queue/critterwatch"),
systemControlUri: new Uri("rabbitmq://queue/my-service-control"));
// On by default in Development, OFF everywhere else. Event payloads are business data:
// turning this on lets anyone with console access (and MCP callers holding
// mcp.events.query) read this service's events.
critterWatch.EnableEventStoreExplorer = true;
});Since 1.1 the opt-in covers every read of event data — stream history, tag and filter queries, the stream fetch, and the query_events MCP tool. Before 1.1 the by-metadata query, which returns full event bodies, ignored it; see the upgrade note. Event payloads are business data: opting a service in exposes them to anyone with console access, and to MCP callers holding mcp.events.query.
A service that has refused keeps the banner, and its Streams tab and the By Stream and By Filters or Tags views show the refusal in place of their content: no grid, no count, no Compact Stream. Operations and Configuration come from the service's telemetry, so they stay. The SQL view stays too, because EnableSqlQuery is its own switch and it reports its own refusal. Check again asks the service after the option has been turned on.
Tabs
Pick a service (and, on a multi-store service, a store) from the selectors at the top; a tenant picker appears for tenant-partitioned stores. The page is organised into four tabs.
On a store with conjoined tenancy, All tenants means every tenant:
- The Streams tab lists across tenants, and each row names its tenant. View events and Compact on a row act in that row's tenant.
- By Filters or Tags reads every tenant, one after another, so a page runs tenant by tenant rather than in one sequence. A store with more than 100 tenants asks for a tenant instead. A service on a
Wolverine.CritterWatchclient older than 1.2 cannot read across tenants, so the page asks for a tenant rather than report 0 from the default tenant. - By Stream needs a tenant for a stream id you type, and so does Compact Stream: a stream id is only unique within a tenant, and with none the read or the compaction would land in the default tenant.
A store that cannot list its tenants offers the ones the Streams tab has seen, and you can type one.
| Tab | What it shows |
|---|---|
| Overview | With more than one event store in the fleet: every service and store, before anyone picks one. See below. |
| Operations | The projection-operations dashboard for the selected service — a metrics header, then a Shards / Projections toggle. It opens on Shards: one row per (projection, database, tenant), worst first. Projections is the inventory grid with the Pause / Restart / Rebuild / Rewind actions. This is where the former standalone Projections page folded in; see Projections. |
| Streams | A WHERE / ORDER BY over the streams' state (below), then a faceted view of what loaded — filter by stream type, tenant, stream-id substring, and a stream-version range, and sort by recently-updated (the default), recently-created, or highest version. Each row carries contextual verbs, including Step through projection and Rehydrate, which open the Step Through tab. On a store with more than one database (database-per-tenant, sharded) the listing is answered once per database and a Database column says which one each row came from; opening a row reads its stream from that database, because a stream id is unique within a database and not across them. |
| Event Explorer | Read the events themselves — browse a stream's ordered event history, run tag/DCB queries, and follow "used-by" links from an event type to its consumers. |
| Step Through | Step a projection through events one at a time, or rehydrate an aggregate. Always shown. See below. |
| Configuration | The selected store's event-store configuration: database cardinality/engine/schema, queryable metadata, its event types, and its subscriptions and projections. The How do these fit into the system? → link (and each event type's CLR-type link) opens the Event Model screen on this service — the swim-lane that used to render inline here was retired. |
The Overview tab
Open /explorer on a fleet with more than one event store and nothing chosen, and this is where you land. A single service with two stores gets it too, because there is a choice to make. With one event store in the fleet there is no tab, and the page opens on that store. A link that names a service goes straight there.
It is a table with one row per event store:
| Column | What it says |
|---|---|
| Service | The service, behind the icon of its engine (Marten, Polecat or Fisher). Pills behind the name say what needs attention: active alerts, with the worst severity; alerts on the service, which belong to no one of its stores; Service down, when the service has no live node, so no alerts there is not good news; and Explorer not enabled, once the service has refused a read. A second line counts the projections, subscriptions and event types the store declares. When the fleet has only one service, this column is the store. |
| Store | The store's name, as its code spells it (ITelehealthStore). |
| Tenancy | Single, Conjoined, or Database per tenant with the count. |
An alert names a service, not a store, so on a multi-store service it counts on a store only when its subject is a projection exactly one store declares. The service does not announce EnableEventStoreExplorer, so nothing says the explorer is off until a read has been refused.
All of it comes from what services already report, so opening the tab asks no service anything.
Selecting a store scopes the console's header to that service and opens the store's Operations tab. Back returns to the Overview.
The Operations tab
On a service with more than one event store, the store picker scopes the whole tab: the tiles, the Shards and Projections grids and the rollout panel all read the selected store, and the default entry means the service's default store. This tab also offers All stores, which shows every store with a Store column saying which one each row came from. The other tabs read one store, so they go back to the store that was picked.
The tab opens on the Shards grain, the exceptions-first view: one row per (projection, database, tenant), ranked worst first, paged and filtered on the server. Health chips above the grid (Conflicted, Failing, Stalled, Unassigned, Paused, Stopped, Unmeasurable, Catching-up, Idle, Healthy) are filters as well as counts; the grid filters by projection, tenant, database and a Behind at least threshold, and sorts by projection, tenant, how far behind and when it last advanced. A summary line names the worst lag and the shard it is on, with Show it. The Projections grain is the per-projection inventory with the operator actions; both are described on Projections. The choice rides the URL as ?grain=projections.
Everything on the tab is computed from the service's last-applied telemetry. When none has landed for five minutes, a warning banner above the header says how old it is — Snapshot 37 days old — everything on this screen is that old — and that operator commands may target agents that no longer exist; check the console's ingest health. Before the console has received its first snapshot, the tab reads Waiting for the first snapshot from CritterWatch… instead of an empty grid.
Composite projections. On the Shards grain each member of a composite is its own row, with its own sequence and lag, and counts toward Max Lag. A member has no agent of its own, so it takes the composite's agent verdict (Paused, Stopped, Failing, Conflicted, Unassigned, Stalled), with the reason prefixed Composite <name>:; it is never reported as an orphan and raises no alerts of its own. On the Projections grain the members fold under the composite's row; expand it for the Member shards tray, grouped by Stage N when the service reports stages.
The Projections grain is computed on the server. Each row's verdict, worst gap and the tenant or database it is on, databases behind, dead letters, node and mode come from one request, so the grid answers at once however many shards the service has. Under the gap, a projection that is behind shows how fast it is catching up and an estimate of when it will be level (720/s · ETA ~53s), or not moving; within each health level the largest gap sorts first. Expanding a row fetches that projection's own shards for its tray. Group by tenant still loads every shard of the service, because it breaks every projection down by tenant, so it does so only when it is turned on.
Beyond the grids, four things on this tab answer questions the grids themselves cannot.

A rollout panel, when there is a rollout. When more than one version of a projection is live at once, a panel appears just below the Projections / Shards grain toggle, above the grid, showing old version vs new, shards remaining, the rate events are being consumed at, an ETA, and the verdict an operator is actually waiting for — is the new version level across the fleet?
It renders nothing the rest of the time, by design
Almost every service runs one version of each projection forever. A panel that read "Level" on every service every day would be ignored by the time it mattered, so it appears only when a rollout is in flight — and is then the first thing above the grid. Its absence means "one version live", not "not measured".
It renders the same on either grain because "is the new version level?" is a question about the service, not about whichever grain happens to be selected.
A composite rolls out as one block. Its members run under their own names, but the panel shows the composite once, with its own versions, and puts the members behind Show N members. When a member's readiness differs from the composite's on a version both run, the block says N members differ. While a rollout is in flight, the composite's row on the Projections grain describes only the version the service registers, which is also where its name links, and says so beside the name (V41 · also V43); the other version's progress is in the rollout panel.
Where a shard's gap was measured from. A shard's gap cell names the high-water mark it was measured against — "Measured against the mark for tenant acme in db-3", "…for database db-3", "…the store-wide mark" — and how many other rows on the page share that same denominator. On a fleet where 272 behind shards were only 79 distinct (database, tenant) pairs, an operator paging worst-first was reading the same fact over and over; the shared-mark count says so outright.
A row's scope may legitimately differ from its own tenant
Under conjoined tenancy a per-tenant row inherits its database's mark, so a row whose tenant is acme can correctly read "the mark for database db-x". That mismatch is the diagnostic — it is not a bug to be fixed. The service-wide fallback deliberately names no scope at all: its key is whichever mark carried the largest sequence, so the shard was never measured against a member of the scope that key names, and printing one would be a precise-looking attribution that is fabricated.
Retired versions, and ejecting them. When every shard of a retired projection version has been orphaned for 24 hours, the console collapses that version into one record and lists it in a Retired versions panel below the grid. The panel opens as one line, such as 39 collapsed versions · 58,848 progression rows, and Review lists them; they are housekeeping, not health, so they never push the grid off the first screen. Eject deletes every progression row of that version, on every database and tenant, in the monitored service's own store, after a confirmation naming the row count. Select several and Eject selected to clear them behind one confirmation: the versions are ejected one at a time, each checked again by the console and the service, and one summary reports what was deleted and anything refused. The service refuses a version it still runs on progression rows, and the outcome names the rows and databases it touched. It needs the 1.1 Wolverine.CritterWatch client on the service; an older one never answers, after a minute the panel says so, and a bulk eject stops there. Agents use eject_retired_projection_version, which asks for confirmation before it runs.
A projection that moved from Async to Inline (or Live) keeps its name and version, so the async daemon's old rows stay in the store and nothing advances them again. From 1.2.2 those rows read as retired instead of Stopped or Catching-up, never feed Max Lag or the lag verdict, and collapse and eject like any other retired version. Reporting them as orphans needs the 1.2.2 Wolverine.CritterWatch client; with an older client the console still keeps them out of the health readings, but cannot collapse or eject them.
Unassigned is its own verdict. A shard that has never started on a database reads Unassigned rather than being reported as stopped or silently folded into a healthy count — a never-started shard and a deliberately stopped one are different operational facts.
Event Explorer: WHERE / ORDER BY over event bodies
The Event Explorer's By Filters or Tags view has a Where (event body) and an Order by (event body) box, in the same C# grammar as the Streams tab and the Document Explorer, run in the store's own database on Marten, Polecat and Fisher:
Event Type order_placed
WHERE Total > 1000
ORDER BY Total descThe members are the event type's public properties. Results are paged (50 a page, at most 200) and carry a total count, scoped to the selected tenant. The MCP query_events tool takes the same where and orderBy.
It reads the body only, so it has limits that the page states:
- One event type at a time. The Event Type is required.
- No envelope beside it. The stream, time window, sequence window, tags and correlation filters cannot be combined with a body predicate; the query is refused, naming them, rather than answered with them dropped. Result rows carry the event body and no sequence, stream or timestamp, so the page shows them as a body grid: the event type and the body's own fields as columns (the first eight; the expanded row holds the whole body), and no Sequence, Version, Timestamp or Tenant column, because those were never read. The answer is marked as bodies on the wire (
rowsAreBodies), and the page does not guess it from a zero. The MCPquery_eventstool saysrowsAre: "bodies"and leaves those members out of each event. "Step through with projection" is not offered for body rows. - No field projection and no aggregation.
GROUP BYand counts per value stay in the SQL view. - A refused predicate points at the column where parsing stopped. A service whose
Wolverine.CritterWatchclient predates this ignores the boxes; the console says the criteria were not applied and shows no rows as an answer. - A store built against a JasperFx older than 2.94 has no body query and reports that as a refusal.
Event bodies are application data, and this is no more than the Event Explorer already returns: it needs the same opt-in (EnableEventStoreExplorer) and, over MCP, mcp.events.query. The raw SQL view keeps its own sql.query gate.
Without an event type: WHERE / ORDER BY over event metadata
Leave the Event Type empty and the same two boxes, in the same grammar, filter the event envelope across every event type, through the store-agnostic QueryRawEvents:
Event Type (none)
WHERE Sequence > 5000 && CorrelationId == "7d1c"
ORDER BY Sequence descThe members are Sequence, StreamId / StreamKey, Version, Timestamp, EventTypeName, CorrelationId, CausationId and TenantId. With no ordering, rows come back in Sequence order so paging is stable. Paging, the total count and tenant scoping are as for the body query, and query_events takes the same where / orderBy with no eventTypeName.
- Metadata or body, not both. With an Event Type chosen the boxes read that type's body (above); with none they read the envelope. "
OrderPlacedwithTotal > 1000last Tuesday" is not possible yet, becauseQueryEventData<T>yields the body with no envelope andQueryRawEventsyields the envelope with the body asobject. It would take a store-agnostic query over a typed envelope (IEvent<T>, whoseDatais the body) that every provider can translate. - Nothing beside it except the tenant: the other filters are refused, naming them. Put them in the WHERE instead.
- Only string and collection methods may be called (
StartsWith,Contains,Any, …), soDateTimeOffset.Parseis refused. A quoted date compared with a date member is read as that date in UTC (Timestamp > "2026-10-27"), so one bound on the timestamp can go in the WHERE; the Time Range filter is still how the page sets a window. The WHERE can also compare timestamps to each other andORDER BY Timestamp. CorrelationId,CausationIdandUserNameexist only on a store configured to capture them (MartenEvents.MetadataConfig.CorrelationIdEnabled, Polecat and FisherEvents.EnableCorrelationId, and so on). A WHERE or ORDER BY that names one the store does not capture is refused at that member, with "This store does not capture CorrelationId", on all three stores and forquery_eventstoo. It is never "no events match": no event could ever satisfy it. The box's example and the member list above are built from what the selected store captures. A store that does not describe its metadata is not refused up front and answers for itself. With several stores, one that does not capture the member is listed in the store errors while the others answer.- A member the store cannot translate comes back as that store's message, never an empty page. A store built against a JasperFx older than 2.97 has no
QueryRawEventsand says so.
The Streams tab: WHERE / ORDER BY
The Streams tab reads nothing until you ask. Opening it, or changing the service, store or tenant, sends no query: the tab says "Not asked yet" and offers Apply (an empty WHERE lists the most recently updated streams) and Refresh. A link that carries ?where= or ?orderBy= is a request and runs on arrival.
The facets narrow the streams that have already loaded — the most recent fifty — with one exception, below. To choose which streams load, type a predicate over the stream's state in the box above them, and optionally an ordering:
WHERE Version > 100 and not IsArchived
ORDER BY Version descThe members are Key, Id, StreamType, Version, Created, LastTimestamp, IsArchived and CompactedVersion, case-insensitively. It is the same grammar as the Document Store Explorer's WHERE box, and the monitored service's store applies it in its own database, so a predicate reaches every stream, not just the ones on screen. Without an ORDER BY the most recently updated streams come first; with one, the grid keeps the service's order (the Sort facet switches to As queried). On a service with several stores, each store's rows are ordered within that store.
StreamTypeis the type name the grid shows, compared with==or!=(StreamType == "Trip", whatever the case). The state's ownAggregateTypeis a .NETType, which no text can be compared with, soAggregateType == "trip"is refused and the refusal says to useStreamType. The name is turned back intoAggregateType == typeof(Trip), which all three stores translate, so it is applied in the database like the rest of the predicate. The types it can name are the aggregates the store declares (every projection or snapshot it registers, and its global aggregates), the same set the store can turn a stored type back into a type for. A name outside it is refused with the names that are known, never answered as an empty page; a stream started for an aggregate nothing projects is therefore not reachable by type.StreamTypecan be compared, not ordered or searched (StartsWith).- The Stream type facet is that clause. Its options are the types the store declares plus those of the rows loaded, so they no longer depend on which fifty streams happened to be recent. Choosing one narrows the loaded rows at once and reads nothing; Refresh or Apply then asks the service for the streams of that type, as
StreamType == "..."ANDed with what you typed (your text is parenthesised). It is a clause in the text rather than a new request field so that a service whose client predates it refuses it by name, instead of ignoring it and answering with every stream as though the type had been applied. - The line says what the rows are. "Showing 50 of 50 loaded streams" is followed by "the 50 most recently updated" (or "the first 50 in the order asked", "that match" when there is a WHERE). The store can hold far more. Count all reads the whole streams table with the same predicate and says "of 24,031". It is a button because a count is a full read, and it re-reads the list with the count. A store with a database per tenant is counted only once a tenant is picked, and a store that cannot be counted is named; a partial sum is never shown as a total. A service whose
Wolverine.CritterWatchclient predates counting answers the list alone, and the line says so. - A refused predicate points at the column where parsing stopped, in the text you sent.
- A store with a database per tenant refuses a store-wide predicate and asks for a tenant, rather than answering from one database as though it were the store.
- A service whose
Wolverine.CritterWatchclient predates stream predicates ignores them. The console says so and shows no rows, rather than presenting the plain recent listing as a filtered answer. - Event bodies are not searched here; use Where / Order by on the Event Explorer's By Filters or Tags view (below).
Each stream row carries four verbs: View events (opens it in the Event Explorer, reading from the row's database), Rehydrate and Step through projection (both open Step Through), and Compact. Compact folds the stream's events into a single snapshot event and deletes the rest. It is irreversible and invisible from the read side: the stream still aggregates to the same state and keeps its version. The confirmation names the tenant it will act in (or says no tenant is selected), and the compaction runs in that tenant. The Event Explorer's By Stream view has the same action as Compact Stream. It is license-gated and, with permissions wired, needs event-store.compact. To compact streams on a schedule rather than one at a time, declare a compaction policy; policies appear on the Schedule Explorer.
Event Explorer: three views

| View | Answers |
|---|---|
| By Stream | One stream's ordered history, with its stream state and metadata. |
| By Filters or Tags | A cross-stream query combining any of the filters below — DCB tags included. All of them AND together, and the result carries a total count of the combined match. |
| SQL | The question the filters cannot express — a join to a projection table, a GROUP BY over a payload field, a count per stream — as one read-only SELECT in the store's own dialect, run on the monitored service. See the SQL view below. |
Until 1.1, tags were a separate By Tag mode that could not be combined with anything else — and did not work at all against a Fisher (SQLite) store or a store-global Polecat (SQL Server) one, because it used a tag query those stores do not implement. Tags are now one facet of the single query, which all three stores honour. A tag-only query is still a valid step source for the Projection Stepper; tags combined with any other filter are not, because the stepper has no metadata run mode.
The DCB Tags facet takes one or more name/value pairs, and every one must match. Names are the tag types the selected store reports as registered; an unregistered name is refused by the store with a message listing the ones that are, never answered with an empty page.
The other filters are event type (single) and Also Event Types (several — an event matches if its type is any of them), stream id, a time window, a sequence range, and whichever of correlation id / causation id / user name the selected store advertises as queryable. Both windows are inclusive at both ends and may be half-open — supply one bound and leave the other empty. An inverted window (a floor above its ceiling) is well-formed and simply matches nothing; it is never an error.
A link can ask too: ?eventType=, ?causationId= and ?correlationId= open By Filters or Tags on that value and run it once, which is how a message or a conversation reaches its events. Such a link reads the tenant it names, and otherwise every tenant, whatever tenant was chosen here last. On a store with a database per tenant and no tenant named, it keeps its filter and asks for a tenant. A link naming a column the store does not capture runs nothing and says what to turn on. When a read across tenants or stores comes back with some of them missing, a warning above the results lists what did not answer.
The event type filters take the store's alias, spelled as the store spells it. A generic event is Compacted<Trip> on Marten and compacted`1 on Polecat and Fisher. The Event Type column leads with the CLR type where the store describes it, and shows the alias beneath it whenever the two differ; that second line is what to type here.
Because the result carries a total count, a time window turns the panel into a counting tool: "how many of this event type happened between Tuesday and Thursday" is one query, not a page-through.
WARNING
If a monitored service did not apply a filter you asked for, the page says so and does not show the rows. A service running an older Wolverine.CritterWatch has no member to deserialize the newer filters into and drops them silently, which would otherwise return a full unfiltered page that is indistinguishable from a correctly filtered one. Every response echoes the filters the service actually applied, and a shortfall — or no echo at all — is reported as an error rather than rendered as results. Upgrade the service's Wolverine.CritterWatch package to clear it.
An empty result says which kind of empty it is. "Not asked yet" is the prompt before the first query, and nothing else. A query that was answered and matched nothing says "No events match these filters" and names the service, store and tenant it searched; By Stream does the same for a stream with no events. A refusal, an error or a stopped wait shows its own notice and neither of those, and a query in flight shows only the busy bar.
The same filters and the same guard are available to agents through the query_events MCP tool, and on the command line through JasperFx.Events' event-query command.
The SQL view
Since 1.1 the Event Explorer has a third view: type one SELECT, press Run (or Ctrl/⌘-Enter), and the statement runs on the monitored service, on its own connection, against the selected store's database. The console never holds database credentials; the rows come back over the same channel every other explorer read uses. The view names the engine you are writing for — PostgreSQL for Marten, T-SQL for Polecat, SQLite for Fisher — and lists the tables you may reference, because that list is what the store itself declares.
The same view is the SQL tab of the Document Store Explorer, run against a document store — which is how a service with no event store reaches it. For such a service this page shows a one-line empty state with a link there.

It is the escape hatch beside By Filters or Tags, not a replacement for it. Everything the filters can express is better asked there: the same query works on all three stores with no dialect, and the answer carries a total count. SQL is for the rest — a join from events to a projection document table, a GROUP BY over a payload field (data->>'customerId' on Marten, JSON_VALUE(data, '$.customerId') on Polecat, json_extract(data, '$.customerId') on Fisher), a per-stream count, a look at a tag table.
What the monitored service enforces, in this order:
One
SELECT(orWITH … SELECT). A second statement after a semicolon, andINTO, are refused before anything is opened.Table references are allow-listed to the objects the store declares: its event, stream, tag and progression tables and its projection document tables. A reference outside them — another schema, a system catalog, a typo — is refused with the allowed names listed, never answered with an engine error. The list is what the store has declared so far; a brand-new store with no event types registered yet declares no event table. Every table in a
FROMlist is checked, including each comma-separated item and the items after a join or a derived table; functions, derived tables andLATERALitems are allowed.A read-only transaction that is always rolled back. PostgreSQL runs
SET TRANSACTION READ ONLY, SQLitePRAGMA query_only; SQL Server has no read-only transaction, so there the rollback is the guarantee. The allow-list states intent; the rollback is what makes a write impossible.A statement timeout (30 s by default, 120 s at most) and a row cap (100 by default, 1,000 at most). A statement that produces more rows than the cap comes back marked truncated: the rows shown are the first N in the statement's own order, so put an
ORDER BYand aLIMIT/TOPin the statement rather than relying on the cap. A cell longer than 32,000 characters is cut and counted.The 1,000-row ceiling is the contract, and there is no page control — not in the view, the message or
query_sql. This is deliberate rather than unfinished: it is an operator diagnostic, and a page control over an arbitrarySELECTis wrong in one of two ways. ALIMIT/OFFSETwrapper re-runs the statement per page and, on a statement with noORDER BY, silently overlaps or skips rows; a server-side cursor pins a connection across pages and conflicts with the timeout that bounds the feature. To reach rows beyond the cap, window in the statement itself —ORDER BY … LIMIT n OFFSET mon PostgreSQL and SQLite,ORDER BY … OFFSET m ROWS FETCH NEXT n ROWS ONLYon SQL Server — which is the only paging that is correct for a statement you wrote.
Every cell is shown as text with its column's type; a JSON column (jsonb, nvarchar holding JSON) opens in the JSON viewer. Parameters are @name placeholders in the statement with values typed by inference — an integer, a decimal, a boolean, otherwise text — so where seq_id > @floor works on the strict engines.
Two things about who may do this. The view is license-gated like the other operator surfaces, and on a console with permissions wired it requires the sql.query capability scoped to the store — the one relayed read that carries a capability, because a SELECT * over a projection table reads more than any filter does. And every run is written to the Audit Log with the statement, the store and who ran it, from the console and from the query_sql MCP tool alike.
On a database-per-tenant store, pick the tenant in the scope bar: the statement runs against that tenant's database. On a multi-database store with no tenant chosen the service refuses and lists the databases — it never picks one for you. On a single-database, conjoined-tenancy store the tenant is a column, and scoping it is your WHERE clause.
The same statement, guard and answer are available to agents through the query_sql MCP tool. There is no CLI twin inside the stack for this one: psql, sqlcmd and sqlite3 against your own store are that twin, and always were.
Opting in
SQL follows the explorer opt-in unless told otherwise: with EnableEventStoreExplorer on, SQL is on. CritterWatchOptions.EnableSqlQuery = false keeps the structured views and refuses SQL; true allows SQL on its own. Like the explorer, the default is on in Development and off everywhere else.
Step Through
Step Through is a standing tab, shown whatever is selected, with two modes:
- Projection — the Projection Stepper. Pick a projection and what to feed it (a stream, a range of a stream's versions, or DCB tags), run it, and step through the events one at a time, with the state before and after each and the
ApplyorEvolvethat ran. It honors any registeredSingleStream/MultiStreamprojection regardless of lifecycle. - Aggregate — rehydrate one stream's aggregate, at its latest version or at the version you name, and read its state.
The tab opens with a short guide to both. It asks the service nothing until you run something.
These open it already filled in, and Back returns to where you were:
- a stream's Step through projection and Rehydrate on the Streams tab;
- the Event Explorer's Step through with projection…, after By Stream or a By Filters or Tags query on tags alone;
- Step through on a projection's row in Operations, on its own page, and in its dead letter events;
- the Step through action on a projection's stale and dead-letter alerts;
- Step through on the right click of a projection or read model card on the Event Model.
A link that names a projection without a stream chooses it and waits for you to give it events. Links take the form /explorer?service=…&tab=step&stepProjection=…&stream=…, and &stepMode=aggregate&aggregateType=… for the aggregate. Over MCP, run_projection_stepper and diagnose_projection do the same.
Deep link from a service
The Event store capability card on a service's Overview links straight into this explorer with the service pre-selected, so you can go from "which stores does this service have?" to browsing one of them in a click.
