Local runtime-evidence MCP server and CLI for investigating performance, memory, concurrency, and reliability.
claude mcp add flameox -- npx -y flameox{
"mcpServers": {
"flameox": {
"command": "npx",
"args": ["-y", "flameox"]
}
}
}MCP Servers overview
<h1 align="center">flameox</h1>
<p align="center"><strong>Runtime evidence for coding agents</strong></p>
<p align="center">
<img
src="docs/assets/flameox-mascot-flamegraph.png"
width="420"
alt="flameox mascot: a friendly ox with a flame graph between its horns"
>
</p>
<p align="center">
Let an agent query, compare, and audit profiler traces, benchmarks, memory captures,
and execution evidence without uploading your code or data.
</p>
<p align="center">
<img src="https://img.shields.io/badge/Python-3.12%2B-3776AB?style=flat&logo=python&logoColor=white" alt="Python 3.12 or newer">
<img src="https://img.shields.io/badge/Data-Stays_Local-F97316?style=flat" alt="Data stays local">
<img src="https://img.shields.io/badge/Interfaces-CLI_%2B_MCP-7C3AED?style=flat" alt="CLI and MCP interfaces">
</p>
<p align="center">
<a href="#quick-start">Quick start</a> ·
<a href="#what-flameox-investigates">What flameox investigates</a> ·
<a href="#how-it-works">How it works</a> ·
<a href="#cli-and-mcp">CLI and MCP</a> ·
<a href="#documentation">Documentation</a>
</p>
<p align="center"><strong>Connect your agent:</strong> <code>npx flameox@latest setup</code></p>
<!-- mcp-name: io.github.morluto/flameox -->
---
flameox helps coding agents investigate performance, memory, execution,
concurrency, and reliability with evidence you can inspect and reproduce. It
connects agents to maintained tools such as Python import-time tracing, pytest,
xdist, pyperf, py-spy, Perfetto Trace Processor, coverage.py, Memray, and
torch.profiler, then keeps each original artifact alongside a record of how it
was produced.
flameox is not a profiler or an automatic bug finder. It coordinates existing
tools, compares runs collected under compatible conditions, and ties findings
back to the measurements that support them.
## Quick start
### Connect an agent
Run the guided setup:
```console
npx flameox@latest setup
```
The wizard detects Claude Code, Cursor, OpenCode, Codex, Gemini CLI, and
Antigravity. It preselects detected clients for connection and previews every
configuration file it will change; you can adjust the selection before applying
it. After you approve the plan, it installs and verifies a versioned local
runtime and activates the clients you chose.
Restart the configured client, open a project, and ask:
> Initialize flameox in this project and show me which profiling capabilities are
> available.
Client setup and project initialization are separate steps. Setup registers the
MCP server, while the initialization request creates `.diagnostics/` in the
checkout after you confirm that the client opened the intended project. The
server does not initialize arbitrary launch directories automatically.
flameox can initialize its `.diagnostics/` workspace through MCP. An agent can
create or update a validated named workload in `flameox.toml` through MCP, then
plan and run it immediately. See
[Named workloads and capture](#named-workloads-and-capture) for an example.
### Use the CLI from source
Python 3.12 or newer and `uv` are required:
```console
uv sync --extra dev --extra python --extra execution --extra memory --extra trace --extra cpu --extra torch
uv run flameox init .
uv run flameox status
```
## What flameox investigates
| Question | Evidence |
| --- | --- |
| **Where does this workload spend CPU time?** | Sampled stacks, frames, callers, callees, and trace windows |
| **Does runtime grow with input size?** | Repeated measurements, scaling fits, uncertainty, and correlated hotspots |
| **Why does memory grow?** | Allocation records, retained memory, phases, threads, and processes |
| **Which execution paths changed?** | Coverage contexts, files, functions, branches, and two-run differences |
| **What does PyTorch spend time on?** | Operators, shapes when captured, CPU or accelerator time, and memory |
| **Are failures clustered rather than isolated?** | Failed attempts grouped by environment, source, workload, and error |
Profiles show where to investigate; they do not prove why behavior changed or
whether the program remains correct. To confirm a result, use a representative
workload and declared metric, compare the same source and environment, retain the
samples, and validate the program's output for both the baseline and candidate.
## How it works
1. **Declare.** An agent creates or updates a validated named workload and
Flameox binds its current definition to every plan and run.
2. **Capture.** A maintained profiler or benchmark tool runs while flameox records
the tool, command, environment, source revision, limits, and outcome.
3. **Preserve.** flameox keeps the original artifact and publishes queryable
evidence to the project workspace.
4. **Analyze.** The CLI and MCP server provide focused queries for
hotspots, scaling, memory, execution, failures, and comparisons.
5. **Record.** Findings remain tied to the runs, measurements, validation, and
analysis that support them. Failed attempts remain visible.
## Safety boundaries
flameox runs on your machine and does not upload code or captures. It does not
monitor production, provide accounts or synchronization, modify source code,
install system tools, or delete artifacts automatically.
Agents can run named workloads declared through the structured workload
configuration path. MCP does not provide arbitrary shell or SQL access, delete
evidence, return raw artifact bytes, or launch native viewers. The default agent
capture runs directly as trusted local execution and reports `uncontained`
containment; a project can explicitly require managed containment.
## Setup and installation details
Run setup again to connect or disconnect clients, verify that connected clients
launch the active runtime, update to the npm package's matching version, or roll
back to a previously installed version. Always use `npx flameox@latest` for
setup and upgrades: an unqualified `npx flameox` invocation can reuse an older
cached bootstrap. Automation can select clients and inspect the plan explicitly:
```console
npx flameox@latest setup --codex --claude --yes
npx flameox@latest setup --all --dry-run --json
npx flameox@latest setup --verify --yes --json
npx flameox@latest upgrade
```
The npm package installs the matching `flameox` Python release. MCP clients then
launch that installed runtime directly; they do not call `npx`, `uvx`, or a
network-dependent installer at startup. Setup does not initialize a project or
create `.diagnostics/`.
Optional Python extras are independent:
- `python`: pyperf capture and import
- `cpu`: py-spy capture
- `trace`: Perfetto Python API; MCP can stage the pinned user-space Trace
Processor when it is missing
- `execution`: coverage.py
- `test`: pytest and pytest-xdist evidence capture
- `memory`: Memray
- `torch`: PyTorch capture
- `all`: all runtime integrations
When FlameOx is connected to an agent, the agent does not need to guess package
names. `list_capabilities` reports the exact managed providers that are missing;
the agent calls `start_capability_setup` with an idempotency key, then polls
`get_capability_setup` (or calls `cancel_capability_setup` when needed).
`prepare_capabilities` remains as a compatibility wrapper. These actions verify
their result and never run a workload. `prepare_workload_dependencies` installs
only Python distributions declared by a named workload. Non-privileged
user-space tools such as Trace Processor are staged automatically; host
executables, permissions, and privileged collectors remain explicit limitations.
## Local data model
Initialize a project-local workspace:
```console
uv run flameox init .
uv run flameox status
```
`.diagnostics/` stores original artifacts, run and investigation records, Parquet
evidence, and a rebuildable DuckDB catalog. Parquet files and generation
manifests are the source of truth; if you delete `catalog.duckdb`,
`flameox catalog rebuild` reconstructs it.
Identical artifacts are stored once, but flameox retains the source, environment,
workload, and measurement details for every run. Hypotheses, trials, comparisons,
and findings remain separate so observations do not blur into conclusions.
## Named workloads and capture
Repeatable commands live in `flameox.toml`. Templates accept declared scalar
parameters only—there is no shell expansion:
```toml
schema_version = 1
[workloads.scan]
argv = ["python", "bench.py", "--implementation", "{implementation}"]
cwd = "."
timeout_seconds = 60
[workloads.scan.parameters]
implementation = ["baseline", "candidate"]
[workloads.scan.oracle]
strength = "cross_treatment_equivalence"
argv = ["python", "validate.py", "--implementation", "{implementation}"]
[experiments.scan_comparison]
workload = "scan"
variants = ["baseline", "candidate"]
design = "randomized_complete_blocks"
blocks = 10
primary_metric = "pyperf.workload"
polarity = "lower_is_better"
estimand = "median_paired_log_ratio"
practical_threshold = 0.05
confidence_level = 0.95
random_seed = 1984
```
An agent can create this declaration directly through MCP with
`configure_workload`. That operation validates the complete project, preserves
unrelated workloads and experiments, and makes the workload immediately
available; it never runs the command. The agent then follows
`list_declared_workflows` (no arguments lists workloads) →
`get_declared_workflow → list_capabilities → plan_capture → execute_capture_plan`.
Pass `kind="experiment"` when discovering experiments. A valid manually authored
workload is also immediately active. There is no separate workload approval or
human-check step: the canonical definition in `flameox.toml` is the execution
binding.
The equivalent CLI capture commands are:
```console
uv run flameox workload show scan --json
uv run flameox capture plan pyperf --workload scan \
--parameters '{"implementation":"baseline"}' --json
uv run flaWhat people ask about flameox
What is morluto/flameox?
+
morluto/flameox is mcp servers for the Claude AI ecosystem. Local runtime-evidence MCP server and CLI for investigating performance, memory, concurrency, and reliability. It has 1 GitHub stars and was last updated today.
How do I install flameox?
+
You can install flameox by cloning the repository (https://github.com/morluto/flameox) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is morluto/flameox safe to use?
+
morluto/flameox has not been audited yet by our security agent. Review the original repository on GitHub before using it in production.
Who maintains morluto/flameox?
+
morluto/flameox is maintained by morluto. The last recorded GitHub activity is from today, with 9 open issues.
Are there alternatives to flameox?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy flameox to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/morluto-flameox)<a href="https://claudewave.com/repo/morluto-flameox"><img src="https://claudewave.com/api/badge/morluto-flameox" alt="Featured on ClaudeWave: morluto/flameox" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!