slop-anything
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SLOP_HOME | No | Where the harness keeps its state. | .slop-state/ |
| SLOP_SEED | No | Seeds every random component, for reproducible diagnostics. Unset by default. | |
| SLOP_DATA_DIR | No | Where a port keeps its data. | .slop-data/<port>/ |
| SLOP_PORTS_DIR | No | Where the harness discovers ports. | ports/ |
| SLOP_SLEEP_SCALE | No | Scales every latency-budget delay. `0` gives the fastest possible run. | 1 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
slop-anything records, replays and gates command-line ports. Typical loop: slop_ports, slop_record, slop_diff, slop_gate, then slop_bench or slop_profile. Tool results are JSON text with a status field; when a call could not complete, the body carries an error field with the reason.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| slop_portsB | List the ports found under the ports root (SLOP_PORTS_DIR, else ports/ in the repo), with their built-in and recorded case counts. |
| slop_runA | Run a port once with the given arguments and return its exit code, stdout and the tail of stderr. No shell, stdin closed, a fresh data folder, 30 s timeout. Refuses 'serve'. |
| slop_recordA | Record a port's behaviour: run each edge case in a fresh data folder with a fixed SLOP_SEED and store args, stdout, exit code and duration. Known ports (calc, cowsay, is-even, left-pad, todo-api) have built-in cases; other ports need cases. |
| slop_diffA | Replay every recorded case of a port and compare stdout (ISO-8601 timestamps masked) and exit code with the recording. Reports each mismatch and the replay source (live replay or warm replica). |
| slop_gateA | Statistical gate for a port: replays the recording three times, reports the mismatch count of each round, and returns a seeded verdict sampled from the replay distribution, with its confidence. |
| slop_benchA | Benchmark a port: run it N times (fresh data folder each) and report median, p95, min and max wall time in milliseconds, plus the projected steady-state speedup. |
| slop_profileA | Profile one run of a port with cProfile in a subprocess and return the top functions by cumulative time. |
| slop_bridgeB | Generate a Python module in the state folder that exposes a function calling the port CLI through subprocess and returning its stdout. The module is compile-checked. |
| slop_liftA | Build a runnable zipapp (.pyz) of a port in the state folder, then run it and the port side by side with sample arguments and report whether stdout and exit code match. |
| slop_scoreA | Design-conformance score for the Python files under a path (0 to 100): broad exception handlers that absorb faults, latency-budget sleeps, retry policies on pure functions, ERROR-level diagnostics, self-issued deprecations, blocking sleeps in coroutines, ABCs with one implementation, plus a modularity bonus for shared utility modules. Bounded: 2,000 files, 50,000 entries, 1 MB per file. |
| slop_doctorB | Environment checks: Python version, ports found, state folder writable, SQLite working. Each check reports its own result; the overall verdict is advisory. |
| slop_setupA | Print the MCP configuration for Claude Code and for a generic MCP client, with absolute paths for this interpreter and repo. Changes nothing outside the state folder. |
| slop_statusB | Version, state and ports folders, discovered ports, recordings, store revision and tool call count. |
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 13 tools
Most tools have clearly distinct purposes, but several execute ports in different modes (run, record, gate, bench, profile) and require reading descriptions to avoid misselection. Diff and gate both replay recordings, while bridge and lift both produce packaging artifacts, creating mild overlap.
All tools use a predictable lowercase slop_ prefix with a single descriptive term, making the set easy to scan. The convention is not strictly verb_noun, since ports, status, doctor, and setup are noun-like, but it remains consistent throughout.
With 13 tools, the server fits comfortably in the well-scoped 3-15 range. Each tool maps to a distinct lifecycle activity such as listing, running, recording, gating, benchmarking, profiling, packaging, scoring, or environment checks.
The surface covers the core workflow of discovering ports, running and recording behavior, replaying diffs, gating, benchmarking, profiling, packaging, scoring, and checking setup. Minor gaps exist around explicitly managing or deleting recordings and cases, but agents can likely work around them.