Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

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.

Long-running fire commands (dev servers, start/dev/watch, workers, tunnels) go through start_session, never your own shell. Decide in this order: 1) find the command with search_commands, passing your working directory as cwd (an app or service name you don't recognize is probably one), before writing your own; 2) check list_sessions (this project; all: true for every project) and reuse what is already running; 3) long-running (long_running: true, or it doesn't exit on its own): start_session with a short note saying why, then confirm it came up with session_output; finite (build, test, lint, one-off scripts): run_command, with arguments as separate tokens. Sessions are shared with the user and other agents: read output with session_output, type with send_input, signal with signal_session, stop (or stop then start to restart) with stop_session, remove an exited record with forget_session. Never run commands the user marked agents: false, not even through your own shell. To write or edit fire configs, use get_docs. Change global directories (*_global tools) only when the user asks. https://github.com/gbenm/fire

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
add_globalA

Register a directory globally so its commands load from anywhere (same as fire cli global add). Changes the user's global setup: use only when the user asks for it, never on your own initiative.

forget_sessionA

Remove the saved record of an exited, stopped, or lost session.

get_docsA

Read Fire's version-matched embedded documentation. Omit topic to return the full topic index. Available topics:

  • commands-and-args (Writing Commands and Handling Arguments): This guide shows how to author commands, chain hooks, and work with positional arguments and placeholders.

  • comparison (Fire compared to other task runners): Fire overlaps with tools you may already use as a command menu: make, just, Task, mise tasks, and npm run. This page explains what Fire adds, and when another tool is the better fit.

  • completion (Shell Completion): Fire ships rich tab-completion for zsh (with inline descriptions) and a complete -C compatible mode for bash.

  • examples (Progressive Examples): These examples show how to combine Fire features.

  • mcp (MCP server): fire cli mcp starts a Model Context Protocol server over stdio, exposing configured commands, managed long-running sessions, and version-matched Fire documentation to agents.

  • overview (Fire CLI — Overview): Fire is a configuration-driven CLI. Commands, completion, and runtime execution are defined in YAML files you keep alongside your project. This document covers how Fire discovers config, merges scopes, and resolves command paths.

  • runtimes-and-eval (Runtimes, eval, and Dynamic Scripts): Fire can evaluate JavaScript/TypeScript (node or deno) and Python snippets directly from your YAML config. Define runtimes once, then reference them from eval expressions and compute entries.

  • schema (Fire Config): JSON Schema for authoring and validating Fire configuration files.

  • sessions (Sessions): Fire runs commands inside sessions: the program runs on a pseudo-terminal (pty) under a small supervisor, so it behaves exactly as in your terminal (colors, progress bars, prompts, password input, full-screen TUIs), but it doesn't belong to your terminal. You can detach from it, close the terminal, and pick it up again from any other terminal, project or agent.

  • troubleshooting (Troubleshooting): Common issues and quick fixes.

list_globalA

List the directories registered globally (their commands load from anywhere), grouped by namespace, with the absolute paths of the config files that define each namespace (open those to edit a command) and which namespaces are merged. Read-only.

list_sessionsA

List detached fire sessions for the current project by default, including other directories that resolve to it (started with fire --bg or start_session, by any agent or the user): id, command, note (why it was started), cwd, status (running, exited, stopped = stopped on purpose, lost), pid and exit code. Pass cwd to select another project directory, or all: true to list every project (cwd is then ignored). Check this before starting or restarting servers to avoid duplicates. If a previous session for the same command exited, read its session_output first: it usually shows why it failed (e.g. port in use).

merge_globalA

Merge a registered namespace so its commands can be called without the namespace word (same as fire cli global merge); explicit paths of other commands still win. Changes the user's global setup: use only when the user asks for it, never on your own initiative.

prune_globalA

Unregister global directories that no longer exist (same as fire cli global prune). Changes the user's global setup: use only when the user asks for it, never on your own initiative.

remove_globalA

Unregister a global directory by namespace or absolute path (same as fire cli global remove); its files are never touched. Changes the user's global setup: use only when the user asks for it, never on your own initiative.

run_commandA

Run a finite configured command to completion. Pass the exact path from search_commands, the same cwd used for discovery, and optional args as separate unchanged tokens. cwd defaults to the server's directory. Returns its exit code and separate stdout/stderr, capped at 64 KiB each. Commands have a fixed 60-second timeout. Long-running commands are refused with a hint to use start_session; commands marked agents: false are also refused.

search_commandsA

Discover the user's configured fire commands. Pass your working directory as cwd to see that project's local commands; omit it to use the server's directory. path is the exact command to run. Omit query or pass an empty string to list everything; otherwise it is a case-insensitive substring over paths, descriptions, and exec/eval templates. Underlying templates are hidden by default; request include_exec only for context, and never copy or run them directly. Use this first when the user names an app, service or task you don't recognize, and before writing your own build/test/run/deploy commands.

send_inputA

Type into a running session's terminal (it runs on a pty): a line of text followed by Enter, or with raw: true exact keys such as q, \x03 (Ctrl+C) or \e[A (up arrow).

session_outputA

Read the last lines of a session's terminal output (stdout and stderr merged, colors and progress redraws cleaned up), plus its status.

signal_sessionB

Send a specific signal to a running session's process group (e.g. INT, HUP, USR1).

start_sessionA

Start a configured fire command detached, in a managed session. ALWAYS use this for long-running processes (dev servers, watchers, workers, tunnels, log tails) instead of backgrounding them in your own shell: the process survives your shell, and you, other agents and the user can list it, read its output, send input/signals, or stop it. command must be a configured fire command (find it with search_commands). One command in one cwd is one session: if it is already running, this returns its id and replaces its note instead of starting a duplicate; if it ended (crashed or stopped), it starts again under the same id with the new note. So to restart a server, stop it with stop_session and call this again. Returns the session id as session_id; then confirm it came up with session_output. Fails for commands the user reserved for humans (agents: false).

stop_sessionB

Stop a running session gracefully with TERM, then KILL after 5 seconds if needed.

unmerge_globalA

Unmerge a namespace so its commands need the namespace word again (same as fire cli global unmerge). Changes the user's global setup: use only when the user asks for it, never on your own initiative.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 16 tools

Disambiguation5/5

The 16 tools split cleanly into four non-overlapping clusters: session lifecycle (start/stop/list/output/send_input/signal/forget), global registry management (add/remove/list/merge/unmerge/prune), command discovery/execution (search_commands, run_command), and docs (get_docs). Within clusters the pairs are explicitly distinguished in descriptions (e.g. stop_session does TERM-then-KILL while signal_session sends an arbitrary signal; merge_global adds a shortcut alias while add_global registers a directory). An agent can pick the right tool from the name plus the distinguishing sentence.

Naming Consistency4/5

Nearly everything follows a snake_case verb_noun pattern (start_session, stop_session, list_sessions, add_global, remove_global, merge_global, run_command, search_commands). The one outlier is session_output, which is a noun phrase where the sibling pattern would suggest get_session_output or read_session_output. Minor deviation only; the convention is otherwise stable and predictable.

Tool Count4/5

16 tools across three real capability areas (sessions, global config, commands/docs) is reasonable but sits at the upper edge; the six global-registry tools are the bulk. Each maps to a distinct CLI subcommand (fire cli global add/remove/merge/unmerge/prune), so none are filler, but the surface could be tightened if the global tools were less granular.

Completeness5/5

Sessions have a full lifecycle: start, list (with status/exit code), read output, inject input, signal, stop, and forget. Global registry management covers add, remove, list, merge, unmerge, and prune. Command execution and discovery are paired (search_commands -> run_command), and get_docs covers version-matched reference with an index. The only near-gap is restart, which the description explicitly documents as stop_session + start_session, so there is no dead end.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues