Defensive MCP server for Radar Meseriași, built on top of the OpenClaw runtime.
radar-claw-defender is a Radar-first defensive review server. It accepts supplied artifacts and returns structured findings for the product risks that matter most to Radar Meseriași:
- auth bypass
- authorization / IDOR
- RLS gaps
- admin escalation
- OTP abuse
- webhook verification mistakes
- XSS / unsafe rendering
- sensitive data exposure
- rate limiting gaps
- input validation issues
The primary integration boundary is MCP, not a generic REST API.
This fork should stay sustainable as OpenClaw evolves upstream.
Branch model:
main: keep as close as possible toupstream/mainradar/main: long-lived Radar integration branchfeature/*: short-lived implementation branches created fromradar/main
Recommended flow:
- sync
upstream/mainintomain - merge
mainintoradar/main - branch feature work from
radar/main
See docs/evergreen-fork-strategy.md for the full workflow and scripts/git/sync-radar-main.sh for the helper script.
This fork is not an offensive toolkit and must not be used for:
- unauthorized targeting
- exploit execution
- credential theft
- phishing or impersonation
- malware, persistence, or stealth
- browser automation against third-party targets
- shell-driven attack workflows
The local server exposes a small set of defensive tools:
analyze_code_snippetanalyze_routeanalyze_sql_policythreat_model_flowsummarize_findingreview_auth_boundaryreview_rls_assumptions
Each tool:
- accepts caller-supplied artifacts only
- returns structured JSON-safe output
- avoids filesystem crawling, URL fetching, and user-code execution
The first version runs over stdio MCP only. Remote MCP is a later step.
Radar Meseriași is a marketplace for homeowners and craftsmen built on:
- Next.js App Router
- React
- Tailwind
- Supabase Auth
- PostgreSQL + RLS
- Twilio OTP
- Vercel
- planned or partial Stripe flows
This fork is opinionated around reviewing the security boundaries of that stack rather than acting as a generic AI utility platform.
To keep that maintainable, new Radar-specific customization should stay as isolated as possible inside:
src/radar/*src/mcp/*config/radar/*docs/radar/*
Avoid broad invasive edits to upstream core paths unless the change is intentionally upstreamable.
This repo also contains a defensive skill security pipeline for:
- deterministic packaging
- SHA-256 hashing
- scanner abstraction
- verdict-based policy gating
- scan metadata and audit history
That pipeline stays separate from the MCP tool surface in v1.
docs/mcp-server-architecture.mddocs/mcp-tools.mddocs/mcp-transport-notes.mddocs/chatgpt-mcp-integration-plan.mdconfig/system-role.mdconfig/radar-context.mdconfig/security-guardrails.mdconfig/review-checklist.mdconfig/output-format.md
Install dependencies:
pnpm install --frozen-lockfileStart the stdio MCP server:
pnpm mcp:defenderUse a custom config:
pnpm mcp:defender --config ./config/radar-defender.example.json- MCP-first
- defensive only
- deterministic outputs
- Radar-specific relevance
- no cyber theater
- no feature bloat
Future work should improve:
- rule precision
- MCP test coverage
- Radar-specific review heuristics
- remote MCP deployment readiness without widening the tool surface