Firenook
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools act on the local Firenook emulator suite only: the project of the folder the server runs in, or, with no firebase.json there and no --project, the one running suite. Firestore values use plain JSON with {"$timestamp"}, {"$ref"}, {"$geo"} and {"$bytes"} sentinels. Each tool declares MCP annotations: destructiveHint marks the ones that replace or delete emulator data or run the app's functions. Nothing is sent to any cloud service.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| firenook_statusA | Show the running Firenook suite: how the project was found, hub locator, hub status, the emulators listing (host and port per service), the console address and the CLI version; with no project, the suites whose locators answer. Use it when another tool cannot reach the suite, or to find a service's port. |
| emulators_exportA | Export the running Firestore, Auth and Storage data to a dedicated directory (not the project or current directory, nor an ancestor of either), as firenook emulators:export does, for a later --import. It replaces an earlier export there and refuses any other non-empty directory unless force is true; the running data is untouched (emulators_clear wipes it). |
| firestore_getA | Read one Firestore document by path (collection/document[/subcollection/document]); returns its fields as plain JSON or exists:false. |
| firestore_queryA | Run a structured query over one collection, or with collectionGroup over every collection with that id (Firestore runQuery): optional where filters, ordering and limit; returns matching documents as plain JSON. |
| firestore_countB | Count the documents of a collection, or with collectionGroup of every collection with that id, that match optional where filters (a COUNT aggregation; no documents are read back). |
| firestore_setA | Write a Firestore document from plain JSON: replaces it, or with merge:true updates only the given top-level fields. |
| firestore_deleteA | Delete a document (recursive:true also its subcollections) or a collection (its documents; recursive:true everything beneath) through the emulator delete route. |
| firestore_list_collectionsA | List collection ids at the database root or under a document (listCollectionIds). |
| firestore_missing_indexesA | List the indexes production would refuse the app's queries for, from the queries run so far: each with the entry to add to its database's index file (firestore.indexes.json, under indexes or fieldOverrides), the first query that needed it (fields and operators, no values), how many did and when. database narrows it to one database and includeDeclared adds the entries the file already declares; saving the file puts an entry in force at once. |
| auth_list_usersA | List Auth emulator accounts (accounts:batchGet) with uid, email, phone, display name, claims and provider data. |
| auth_get_userA | Look up one Auth emulator account by uid, email or phone number (accounts:lookup; the first of the three given is used) and return its record with claims, providers and MFA, or found:false. To page through every account, use auth_list_users. |
| auth_create_userA | Create an Auth emulator account with a synthetic email/password, phone number or display name (never real credentials). |
| auth_delete_userA | Delete one Auth emulator account by uid, permanently (accounts:delete); an unknown uid is an error (USER_NOT_FOUND). To block its sign-ins but keep the account, use auth_disable_user; to end its sessions only, auth_revoke_tokens. |
| auth_oob_codesA | The pending out-of-band codes (email verification, password reset, sign-in links) the Auth emulator holds instead of sending email. Phone sign-in codes are in auth_verification_codes. |
| auth_verification_codesA | List the pending phone verification codes the Auth emulator holds instead of sending SMS, to finish a phone sign-in in a test. Email verification, password reset and sign-in link codes are in auth_oob_codes. |
| auth_mint_tokenA | Mint a Firebase ID token (valid one hour) and refresh token for an existing Auth emulator user, so an agent can call a function or the REST API as that user; claims replace the custom claims for this token only. |
| auth_set_claimsA | Set an Auth emulator user's custom claims: replace them (as the Admin SDK's setCustomUserClaims does) or with mode merge change only the given keys (a null value removes that key). |
| auth_remove_claimsA | Remove the named custom claim keys from an Auth emulator user, keeping its other claims. |
| auth_disable_userA | Disable an Auth emulator account: its sign-ins and token refreshes fail until it is enabled again. |
| auth_enable_userA | Enable a disabled Auth emulator account again, so it can sign in and refresh tokens: the reverse of auth_disable_user. An account that is already enabled is reported as unchanged. |
| auth_revoke_tokensA | Revoke an Auth emulator user's refresh tokens (validSince moves to now), so its existing sessions must sign in again. |
| auth_list_tenantsA | List the Auth emulator's tenants (multi-tenancy) with their user counts and sign-in settings, optionally matching an id or display name. Pass a tenant id from here as tenant to auth_mint_token and the claims, disable, enable and revoke tools. |
| storage_listA | List Storage objects and folder prefixes under a prefix (one level, like listAll). |
| storage_get_metadataA | The metadata of one Storage object (content type, size, timestamps, custom metadata, download tokens) or exists:false. |
| storage_readA | Read a Storage object's content: text inline (text, JSON, XML, SVG...), anything else as base64; at most maxBytes are returned and truncated says whether there is more. |
| storage_uploadA | Upload (create or replace) a Storage object from text or base64 bytes with a content type and custom metadata, as the Admin SDK would (rules skipped; finalize triggers run). |
| storage_deleteA | DESTRUCTIVE: delete one Storage object, or with a path ending in / every object under that folder. |
| storage_copyA | Copy a Storage object (or a folder, a path ending in /) to a new path, in the same or another bucket; refuses to overwrite unless overwrite is true. |
| storage_moveA | Move (rename) a Storage object or a folder (a path ending in /), in the same or another bucket; refuses to overwrite unless overwrite is true. |
| functions_listA | The functions loaded by the running suite: name, region, generation, trigger kind, event type or schedule, and the HTTPS URL of request/callable functions. |
| functions_invokeA | Invoke a loaded function: an HTTPS/callable request with data, or with eventData a background event (Firestore before/after, Storage object, Pub/Sub message, Auth user, schedule, Eventarc custom event, task queue payload) shaped as the official functions shell sends it. The function's own code runs, side effects included; to repeat a recorded call exactly, use functions_replay_call. |
| functions_list_callsA | List recent function calls, newest first: trigger kind and cause, outcome (succeeded, failed, timedOut, crashed...), HTTP status, duration and the first line of the error. Use it to find a failing call, then read that call whole with functions_get_call; to search every function's console output, use logs_search. |
| functions_get_callA | Read one function call in full by its id from functions_list_calls: cause, request (method, path, headers, body; sensitive headers hidden), response (status, body), event payload, the error with its stack trace, the call's console output and timings. To run it again after a fix, use functions_replay_call. |
| functions_replay_callA | Run a recorded function call again with the same request or event (after a fix, say) and report the new call: outcome, status, response body and its id for functions_get_call. The function's code runs again, side effects included. |
| logs_searchA | Search the suite's log (every emulator and every function's console output) by service, level, function, call, text and time; returns the newest matching lines, oldest first. |
| logs_facetsA | Count the log lines matching a filter by level, service, function, codebase, extension instance and kind, to see where errors and warnings come from before reading them. |
| rules_getA | Read the Security Rules in force: the Firestore rules of a database and the Storage rules of a bucket (source, whether they are enforced, the file and its problems). To test whether a request would be allowed, use rules_evaluate; for requests already denied, rules_list_denials. |
| rules_evaluateA | Ask the rules in force (or a draft) whether a request would be allowed: get, list, create, update or delete on a Firestore path or Storage object as a given user or unauthenticated; returns the verdict, the rule line that decided it and each evaluated expression's value. Nothing is written. |
| rules_list_denialsA | Recent requests the Security Rules denied (app clients only; admin and owner requests skip the rules), newest last; with explain, the rule lines that denied each one. |
| pubsub_publishA | Publish one message to a Pub/Sub emulator topic: string data as given, other JSON as its text (base64-encoded on the wire), plus attributes; the functions subscribed to it run. To read a subscription's backlog without consuming it, use pubsub_peek; to run a scheduled function, schedules_run. |
| pubsub_list_topicsA | List the Pub/Sub emulator's topics with their published counts, subscriptions and the functions they trigger (schedule topics included). Use it to find a topic for pubsub_publish; each subscription's backlog and filter are in pubsub_list_subscriptions. |
| pubsub_list_subscriptionsA | Every Pub/Sub subscription (of every topic, and detached ones) with its delivery type, filter, dead-letter topic and backlog. |
| pubsub_peekA | Peek at a subscription's backlog in delivery order without pulling, leasing or acking anything: each message's state, attempts, attributes and data. |
| tasks_statsA | Report each Cloud Tasks queue's statistics as the official emulator's queueStats does: numberOfTasks, tasksAdded and failedTasks (five-minute counts divided by five), completedLastMin, runningTasks (the dispatch slots, not tasks running), maxRate and maxConcurrent. For the waiting tasks themselves, use tasks_list. |
| tasks_listA | The Cloud Tasks queues (with their pending and running counts) and the tasks waiting in them; with queue, only that queue's tasks, optionally in one state. |
| tasks_runA | Dispatch one waiting Cloud Tasks task now instead of at its schedule time (it is sent on the next tick), so its function runs; tasks_list gives the queue and task ids. |
| schedules_listA | List the scheduled functions (onSchedule, pubsub.schedule): expression, time zone, next runs, paused state and the latest runs with their delivery. To run one now instead of waiting, use schedules_run. |
| schedules_runA | Run a scheduled function now: publish one tick to its schedule topic, as Cloud Scheduler would, and report the run; the function's code runs, side effects included. schedules_list shows the scheduled functions and their latest runs. |
| eventarc_publishA | Publish a custom CloudEvent to an Eventarc channel (default the project's Firebase channel), as getEventarc().channel().publish() does; every matching function runs, and the report says which received it and how each call ended (after waiting about 3 s at most). To deliver a received event again, use eventarc_replay_event. |
| eventarc_list_eventsA | The Eventarc events the suite received, newest first (custom events, replays and the Firebase services' own), with how many functions matched, received or failed each. |
| eventarc_get_eventA | One Eventarc event with its attributes, data and every function delivery (outcome, duration, invocation id for functions_get_call). |
| eventarc_replay_eventA | Deliver a received Eventarc event again to the functions it matches (a new event, origin replay), so their code runs again, and report the new deliveries. |
| extensions_listA | List the Firebase Extensions instances the suite runs: reference and version, state (running, loading, failed) with the load error, and their function count. Use it to see why an extension is not working; after editing an instance's .env or source, apply it with extensions_reload. |
| extensions_reloadA | Reload one Extensions instance (re-read its .env parameters and source, restart its functions) and report its state and functions afterwards. |
| emulators_clearA | DESTRUCTIVE: delete all data of the chosen services (every Firestore document, every Auth user and tenant, every Storage object, every Pub/Sub topic, subscription, schema and message, every Cloud Tasks task and its history). Clearing more than one service needs confirmProject set to the project id. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 55 tools
Tools are strongly namespaced by service (firestore_, auth_, storage_, functions_, logs_, rules_, pubsub_, tasks_, schedules_, eventarc_, extensions_, emulators_), and most actions are clearly distinct. A few near-neighbors need the descriptions to separate them confidently, such as functions_list_calls vs. logs_search, functions_invoke vs. functions_replay_call, and schedules_run vs. pubsub_publish, but the descriptions consistently cross-reference the right alternative.
All 55 names use a consistent snake_case service-prefix plus action pattern (firestore_get, auth_disable_user, storage_upload, functions_replay_call, eventarc_list_events). Even noun-oriented tools like tasks_stats, logs_facets, and auth_oob_codes fit the same predictable scheme.
The server covers a genuinely broad Firebase emulator suite, so many tools are justified individually, but 55 tools is a very large surface for an agent to select from reliably. The count goes well beyond the 15-25 range the rubric treats as already heavy, and several subdomains (Auth especially) could likely be consolidated.
Coverage is unusually thorough across Firestore, Auth, Storage, Functions, Rules, Pub/Sub, Tasks, Schedules, Eventarc, Extensions, and emulator lifecycle operations. Minor gaps remain, such as creating/deleting Pub/Sub topics and subscriptions or managing task queues themselves, but core lifecycle and debugging workflows are covered.