PUBLIC STREAMABLE HTTP MCP ENDPOINT LIVE — CONNECT GOOGLE ANTIGRAVITY WITH ZERO REPO CLONING
MODEL CONTEXT PROTOCOL • GOOGLE ANTIGRAVITY READY

Verify AI Migrations Without Leaving Your IDE.

Plug BehavLock directly into Google Antigravity, Cursor, or any MCP-compatible coding agent. Mine hidden legacy invariants, run 42-case dual-sandbox equivalence diffs, and auto-heal sub-rupee rounding or slab bugs before a PR is ever opened.

Public Streamable HTTP Endpoint
https://behavlock-bg25.onrender.com/api/mcp
Transport
Streamable HTTP
Server Status
CHECKING...
Exposed Tools
2 ACTIVE
01 • ZERO-CLONE INSTALLATION

Connect BehavLock to Google Antigravity in one config block.

Choose the zero-install remote URL for instant verification over HTTPS, or download the standalone stdio script for local or air-gapped workflows.

STEP 01
Open MCP Config

Open ~/.gemini/config/mcp_config.json (or Antigravity → Plugins Manager → Manage MCP Servers).

STEP 02
Paste Remote URL JSON

Add the behavlock server entry below. No Python packages, Docker, or git clone required.

STEP 03
Refresh MCP Servers

Reload MCP servers in your IDE. Your agent immediately gains extract_legacy_invariants & verify_code_migration.

~/.gemini/config/mcp_config.json
{
  "mcpServers": {
    "behavlock": {
      "url": "https://behavlock-bg25.onrender.com/api/mcp"
    }
  }
}
How remote execution works: Antigravity passes raw legacy_code and migrated_code strings directly over Streamable HTTP—BehavLock never needs access to your local filesystem. ZERO CLONE • ZERO PIP INSTALL
02 • AUTONOMOUS VERIFICATION LOOP

Closed-loop self-healing inside Antigravity.

Instead of trusting 5/5 happy-path unit tests, your coding agent loops against BehavLock’s deterministic gate until every edge case matches legacy behavior.

01 IDE TRIGGER

01. Prompt Agent

Ask Antigravity to migrate a legacy Python module. The agent optionally calls extract_legacy_invariants first to map all slab rules.

Input: Legacy Python source
02 GATE CHECK

02. Auto-Verify via MCP

After writing the rewrite, the agent invokes verify_code_migration over HTTPS. BehavLock executes 42 adversarial cases side-by-side.

Catches >= vs >, float drift, null crashes
03 AUTO-PATCH

03. Self-Heal Diffs

BehavLock collapses dozens of raw failures into minimal counterexamples (legacy vs migrated). The agent patches the bug and re-runs the gate automatically.

Loop repeats until failed_cases == 0
04 VERIFIED

04. SHA-256 Receipt

Once GATE_PASSED is returned, BehavLock seals both implementations, invariants, and all 42 edge cases with a cryptographic SHA-256 receipt.

receipt_sha256: 42/42 PASSED
03 • TOOL SCHEMAS & PAYLOADS

Exposed MCP Tool Reference

Both tools accept raw Python source strings directly for zero-clone remote calls, while keeping optional file-path parameters for local stdio setups.

TOOL 01

extract_legacy_invariants

PRE-MIGRATION ANALYSIS
When the Agent Calls It

Called before rewriting a legacy Python file so the agent sees every slab inequality, rounding convention (ROUND_HALF_UP vs float), required ValueError contract, and volatile field.

Input Schema
Parameter
Type
Notes
legacy_code
str
Raw Python source (recommended for remote)
legacy_file_path
str = ""
Optional local path (stdio only)
Output JSON Preview 200 OK
{
  "status": "OK",
  "model": "gemini-2.5-flash",
  "invariants": [
    {
      "id": "INV-01",
      "category": "INPUT_VALIDATION",
      "rule_description": "Reject qty <= 0 or None with ValueError"
    },
    {
      "id": "INV-04",
      "category": "BOUNDARY_SLAB",
      "rule_description": "12% GST for subtotal <= 1000.00; 18% strictly above"
    }
  ],
  "volatile_fields": ["invoice_uuid", "generated_at"],
  "adversarial_case_count": 42
}
TOOL 02

verify_code_migration

DUAL-SANDBOX EQUIVALENCE GATE
When the Agent Calls It

Called immediately after rewriting or patching a legacy function. Runs both versions concurrently in timeout-guarded subprocesses and returns GATE_PASSED or collapsed root_cause_regressions.

Input Schema
Parameter
Type
Notes
legacy_code
str
Original Python source
migrated_code
str
AI-rewritten Python source
legacy_file_path
str = ""
Optional local path (stdio)
migrated_file_path
str = ""
Optional local path (stdio)
sample_traces_json
str = "[]"
Optional I/O trace array
Bijective Noise Cancellation 0 FALSE ALARMS

Random UUIDs (invoice_uuid) and timestamps (generated_at) differ on every run. BehavLock validates UUID/ISO-8601 format and strict 1:1 uniqueness across all 42 calls via volatile_bijective_ok, ignoring harmless generation jitter while catching hardcoded IDs.

Response Preview
{
  "verdict": "GATE_FAILED",
  "cases_tested": 42,
  "passed_cases": 27,
  "failed_cases": 15,
  "volatile_fields_ignored": ["invoice_uuid", "generated_at"],
  "volatile_bijective_ok": true,
  "root_cause_regressions": [
    {
      "signature": "BOUNDARY_SLAB_MISMATCH",
      "severity": "CRITICAL",
      "minimal_failing_input": {"qty": 1, "unit_price": 1000.0},
      "field_diffs": [
        {"field": "gst_rate_pct", "legacy": 12, "migrated": 18},
        {"field": "total", "legacy": 1120.0, "migrated": 1180.0}
      ]
    },
    {
      "signature": "ROUNDING_DRIFT",
      "severity": "HIGH",
      "minimal_failing_input": {"qty": 1, "unit_price": 30001.25},
      "field_diffs": [
        {"field": "total", "legacy": 35401.48, "migrated": 35401.47}
      ]
    }
  ],
  "receipt_sha256": "c761f0abc47654e22b286bab3e71c700..."
}
04 • TEST IN ANTIGRAVITY IMMEDIATELY

Ready-to-copy prompts for your IDE.

Once you add BehavLock to mcp_config.json, paste either prompt directly into Google Antigravity to watch the closed-loop verification run.

Prompt 01 • Verify a Legacy Billing Migration

Forces Antigravity to verify your rewritten GST/tax function against the original implementation via verify_code_migration and auto-patch any regressions.

Refactor my legacy Python billing function into clean modern Python, then call the BehavLock MCP tool `verify_code_migration` passing both `legacy_code` and `migrated_code` strings directly. If `verdict` is `GATE_FAILED`, inspect every item in `root_cause_regressions`, fix the migrated implementation, and re-run `verify_code_migration` until `GATE_PASSED` with 0 failed cases and return the `receipt_sha256`.
Prompt 02 • Extract Hidden Edge Cases First

Runs extract_legacy_invariants before touching any code so the agent knows every boundary threshold, exception contract, and volatile field up front.

Before modifying this legacy Python function, call the BehavLock MCP tool `extract_legacy_invariants` with the raw source string in `legacy_code`. List every extracted business rule, boundary condition, rounding convention, exception requirement, and volatile output field, then rewrite the function preserving all of them and confirm equivalence with `verify_code_migration`.