Skip to main content
Glama
slop-anything
by takattowo

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SLOP_HOMENoWhere the harness keeps its state..slop-state/
SLOP_SEEDNoSeeds every random component, for reproducible diagnostics. Unset by default.
SLOP_DATA_DIRNoWhere a port keeps its data..slop-data/<port>/
SLOP_PORTS_DIRNoWhere the harness discovers ports.ports/
SLOP_SLEEP_SCALENoScales 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

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 13 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues