Backend Unslop
Verified creator: @fikrifirmanf signed in with the GitHub account that owns this repository. It is not a safety check.
Audit API and database code for validation, query, error-handling, and security mistakes.
MCP configuration
Copy into a client that accepts mcpServers JSON. Other clients may use a different configuration format.
{
"mcpServers": {
"backend-unslop": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Use this in your own environment. Copying text here does not run it.
How to use it
- Open the project documentation and choose the instructions for your AI client.
- Copy the configuration and companion skill command if needed.
- Configure the tools in your own environment, then try the example request.
SKILL.md
The instructions your assistant reads, from fikrifirmanf/backend-unslop-mcp/skills/backend-unslop/SKILL.md. Its authors wrote it, so read it before you install.
name: backend-unslop description: Enforces production-grade polyglot backend architecture, API reliability, and SQL/database hygiene (TypeScript/Node, Python, Go, Rust, Java/Kotlin, C#, PHP, Ruby, PostgreSQL, ClickHouse, Redis, async workers). Trigger whenever writing or modifying API routes, database queries, migrations, background jobs, or backend services.
Backend & SQL Anti-Slop Protocol
Never output naive queries, unvalidated handlers, silent error blocks, or blocking I/O slop across any backend language.
1. SQL & database (HARD BANS)
- No
SELECT *: always project explicit columns (PostgreSQL, MySQL, SQLite, and ClickHouse alike). - No string-interpolated or concatenated SQL: never use JS template literals (
${}), Python f-strings/.format()/%, Gofmt.Sprintf, Rustformat!, Ruby#{}or string+concatenation. Always use parameter bindings ($1,?,:name,%(name)s,@p1) or typed query builders/ORMs. - No N+1 in loops: no DB, Redis, or HTTP calls inside loops (
for,for...of,.map(), Pythonfor ... in, Gofor range, Rustfor). Batch withANY($1),IN (...), bulk upserts, orJOIN. - No unbounded reads: every list query has an explicit
LIMITand cursor/offset pagination. - Workload separation: keep OLTP transactions short; no analytics or external HTTP calls inside
BEGIN...COMMIT.
2. API, async & errors (HARD BANS)
- Validate every boundary: handlers, webhooks, queue consumers, and RPC/tool entrypoints must validate input with strict schemas before domain logic:
- TypeScript/JS: Zod, TypeBox, Valibot
- Python: Pydantic, msgspec, Marshmallow
- Go:
go-playground/validatoror explicit struct validation - Rust:
serde+validator/garde - Java/Kotlin/C#/PHP/Ruby: Jakarta Bean Validation (
@Valid), FluentValidation, Symfony/Laravel FormRequest, Dry-Validation
- No type escapes: never use
: any,as any,@ts-ignore,@ts-expect-error, or# type: ignoreto bypass validation. - No blocking long requests: work over ~2s goes to a queue/background worker; stream progress via SSE/WebSocket or pollable job status.
- Idempotency & timeouts: set explicit timeouts/deadlines (
AbortSignal.timeout,context.WithTimeout,httpx.Timeout,tokio::time::timeout) on every network/DB call; retried mutations must be idempotent. - No silent catch or stack leaks: never use empty
catch {},except: pass, emptyif err != nil {}, or barerescue. Never return raw driver errors,err.stack,traceback.format_exc(), orerr.Error()directly to HTTP clients. Return structured error codes and log context server-side. - No unfinished placeholders: never leave
TODO,FIXME,NotImplementedError,todo!(), orunimplemented!()in production handlers.
3. Security defaults (HARD BANS)
- No hardcoded credentials: API keys, passwords, tokens, private keys and connection strings come from the environment or a secret manager. Never paste a real-looking key, even "temporarily".
- No
UPDATE/DELETEwithoutWHERE. - Never disable TLS verification (
rejectUnauthorized: false,verify=False,InsecureSkipVerify: true). Fix the CA bundle. - Passwords: argon2id, scrypt or bcrypt only. Never md5/sha1/sha256.
- Tokens, OTPs, reset codes, salts:
crypto.randomBytes/randomUUID,secrets,crypto/rand. NeverMath.random()orrandom. - No
eval,new Function, or shell strings built from input. Pass argv arrays (execFile,subprocess.run([...]),exec.Command(bin, args...)). - JWTs: verify the signature with an explicit
algorithmsallowlist;jwt.decodealone is not authentication. - CORS: list the allowed origins explicitly; never
*with credentials. - Outbound calls carry timeouts:
fetch(url, { signal: AbortSignal.timeout(ms) }),requests.get(url, timeout=5),&http.Client{Timeout: ...}. - Go: never discard an error with
_. Rust: propagate with?instead of.unwrap()outside tests. Python: no bareexcept:.
4. Mandatory verification loop
Before claiming a backend/database task is complete:
- Call MCP tool
audit_backend_slopwith every modified file or directory (omitfilesto audit the git working-tree changes). - Call
verify_backend_compilewith the same files. It runs TypeScript (tsc --noEmit), Go (go vet), Rust (cargo check), Python (py_compile), PHP (php -l) and Ruby (ruby -c). - On
status: "FAIL", fix every ERROR at its root cause and re-run untilPASS. Review WARN findings. - A finding that is a verified false positive may be suppressed with a comment on or above the line:
// unslop-ignore RULE_ID -- why this is safe. A suppression without a reason is itself an ERROR. Never suppress to get past a real problem. SKIPPEDmeans the toolchain is missing: tell the user verification did not run. Never report it as passing.
Other setup options
Companion skill command
Run on your own machine if you want to install the companion skill.
npx -y [email protected] install-skills
Example request
Review this API with backend-unslop. Trace inputs to database calls, check bound parameters and pagination, and inspect public errors. Separate findings from checks you could not run.
Example results
Illustrative example
Review outline - Validate request filters before database calls. - Bind query values instead of constructing SQL from input. - Bound list queries and outbound requests. - Return safe public errors and retain diagnostic context server-side.
Illustrative response outline, not a recorded run.
Illustrative examples show a possible response format. They are not recorded runs or verified results. Actual responses will vary.
Security checks
Automated checks, last run Nov 30, 2026. They can miss problems and do not guarantee a listing is safe. Read the source and what you are asked to run before you use it.
4 of 4 checks passed
- PassedSetup commands and descriptionLayer 1
The install commands and description match none of the risky patterns we look for.
Source: AIWantsThis screening rules
- PassedInstall scripts and package statusLayer 2
The npm package runs no code at install time and is not deprecated.
Source: npm registry
- PassedKnown vulnerabilities in the packageLayer 2
OSV.dev lists no advisories for this package.
Evidence (1)
- [email protected]
- No advisories listed in OSV.dev.
Source: OSV.dev
- PassedSource repositoryLayer 2
The repository is public, not archived and has recent activity.
Evidence (3)
- Last push
- 2026-10-22
- Archived
- no
- License
- MIT
Source: GitHub