Edge Case Museum

v0.2.1
io.github.pipeworx-io/edge-case-museum Checked 1 day ago Published 1 month ago

Edge Case Museum MCP — 'Your code works.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

edge_cases_find

Edge Case Museum: describe what you are implementing in plain words ("username uniqueness", "parse a CSV upload", "store and add up money amounts", "schedule a reminder in the user's timezone", "sort customer names") and get the surprising inputs that break that kind of code. Each exhibit gives the assumption it breaks, the exact input with escapes, what goes wrong, the fix, and a repro in your language whose expected_output was captured by actually running it (Python 3 or Node.js). Returns a short form plus refine_tags; use edge_case_get for the full exhibit or edge_cases_test_file for a runn…

ParameterTypeDescription
context *stringWhat you are implementing, in plain words, e.g. "username uniqueness" or "parse a CSV upload".
languagestringLanguage of the repro to include with each exhibit. "javascript" means Node.js. Omit for the first available repro.
limitnumberMaximum exhibits to return (default 8, max 25).

edge_case_get

Edge Case Museum: one exhibit in full by id (from edge_cases_find or edge_cases_browse): the assumption it breaks, the exact input, what goes wrong and why, every repro (executed Python/Node.js repros with their captured output and runtime version; other stacks labelled documented with a source), the fix, related exhibits, cited sources and test inputs.

ParameterTypeDescription
id *stringExhibit id, e.g. "nfc-nfd-same-name-two-accounts".

edge_cases_browse

Edge Case Museum: browse the collection. With no arguments, lists the categories (unicode, datetime, float-money, sorting, filenames, parsing, integers, names-addresses) with counts and their most common tags. With category or tag, lists the exhibits in it: id, title, the assumption each breaks, tags and which languages have executed repros.

ParameterTypeDescription
categorystringCategory to list.
tagstringTag to list, e.g. "username", "csv", "timezone", "money".

edge_cases_test_file

Edge Case Museum: one runnable test file (pytest for python, node:test for javascript) bundling the inputs from the exhibits relevant to what you are implementing, as parametrized cases you point at your own function. The file runs as generated against a stub, with TODO marks where your function goes; each case names its exhibit id so edge_case_get can explain a failure.

ParameterTypeDescription
context *stringWhat you are implementing, e.g. "parse a CSV upload".
language *stringpython produces a pytest file; javascript produces a node:test file.