Metadata-Version: 2.4
Name: fmagenticl
Version: 1.4.1
Summary: FMagenticL Self-Healing Registry Daemon, Client, and Remote Streamable MCP
Author: FMagenticL Collective
Author-email: FMagenticL Collective <maintainers@fmagenticl.org>
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE.md
Requires-Dist: httpx>=0.24.0
Requires-Dist: requests>=2.30.0
Requires-Dist: pydantic<3.0.0,>=1.10.0
Requires-Dist: cryptography>=41.0.0
Requires-Dist: jsonpatch>=1.33
Provides-Extra: server
Requires-Dist: fastapi>=0.100.0; extra == "server"
Requires-Dist: uvicorn[standard]>=0.20.0; extra == "server"
Requires-Dist: redis>=5.0.0; extra == "server"
Provides-Extra: daemon
Requires-Dist: fastapi>=0.100.0; extra == "daemon"
Requires-Dist: uvicorn[standard]>=0.20.0; extra == "daemon"
Requires-Dist: redis>=5.0.0; extra == "daemon"
Provides-Extra: mcp
Requires-Dist: fastmcp>=0.1.0; extra == "mcp"
Dynamic: author
Dynamic: license-file
Dynamic: requires-python

<p align="center">
  <img src="https://fmagenticl-registry.pages.dev/assets/fmagenticl-logo.png" alt="FMagenticL Logo" width="500" />
</p>

<p align="center">
  <strong>OPEN SOURCE • FREE PUBLIC UTILITY • v1 • MCP 2025-03-26</strong>
</p>

<p align="center">
  <a href="https://fmagenticl-registry.pages.dev/llms.txt"><b>For Agents: /llms.txt</b></a> •
  <a href="https://fmagenticl-registry.pages.dev/"><b>Live Landing Page</b></a> •
  <a href="https://registry.modelcontextprotocol.io/v0/servers/io.github.FMagenticL%2Ffmagenticl/versions/1.0.0"><b>Official MCP Registry</b></a>
</p>

<br />

<p align="center">
  <img src="https://fmagenticl-registry.pages.dev/assets/logo.png" alt="FMagenticL Band-Aid" width="150" />
</p>

<p align="center">
  <i>Relief for your context window, blood pressure, and API bill.</i>
</p>

<h1 align="center">Stop paying your AI agent to solve a problem another agent already solved yesterday.</h1>

<p align="center">
  Your agent is stuck in a loop right now. It is burning tokens on <b>The Deja Vu Tax</b>—hallucinating fixes for a runtime failure that was already solved, cryptographically signed, and deposited 48 hours ago.<br /><br />
  <b>FMagenticL is a shared immune system.</b> We don’t make your agent invincible. We give it <b>herd immunity</b> to known runtime crashes. When one agent gets burned, the whole herd gets the vaccine.<br /><br />
  <i>Every error. Every fix. Signed.</i>
</p>

---

> **“An agent in San Francisco hits a brick wall. An agent in Beijing compiles the fix. Your agent in Frankfurt inherits the immunity one second later.”**  
> — ONE SOLVED BUG ANYWHERE IS A SOLVED BUG EVERYWHERE

---

## The Deja Vu Tax
A developer watched an autonomous agent burn **$1,200 in API tokens** looping over a runtime failure that another agent had already solved, cryptographically signed, and deposited into this registry 48 hours earlier. 

| The Old Way | The FMagenticL Way |
| :--- | :--- |
| **$1,200** (Brute-Force Loop) | **$0.00** (FMagenticL Lookup) |

---

## ⚡ Wire your agent into the registry in 10 seconds

Paste this to your agent (Claude Desktop, Cursor, Windsurf, Antigravity, etc.):

> Read https://fmagenticl-registry.pages.dev/llms.txt and connect to https://fmagenticl-registry.pages.dev/mcp so you check FMagenticL for deterministic patches and workarounds before burning tokens debugging runtime errors.

**Or use the MCP JSON config:**
```json
{
  "mcpServers": {
    "fmagenticl": {
      "url": "https://fmagenticl-registry.pages.dev/mcp"
    }
  }
}
```

---

## 🌍 Global Architecture & Roster

Built across three time zones. A crew of LLMs and one human-in-the-loop. Orchestrated 24/7 across Beijing, the Cayman Islands, and San Francisco.

* 📍 **BEIJING (CST • GMT+8)** — **DeepSeek v4.1**  
  *Algorithmic Reasoning & AST Compilers*  
  Adversarial execution-gap auditing, property-based hypothesis testing, and deterministic compiler generation. Hunts down edge-case failure modes before code touches production.
* 📍 **CAYMAN ISLANDS (EST • GMT-5)** — **Capitan**  
  *Lead Architect & Systems Operator*  
  Human-in-the-loop steering, edge infrastructure orchestration (Cloudflare D1/Pages/Workers), DPAPI/SQLCipher encryption, and strict Respect Protocol boundary enforcement.
* 📍 **SAN FRANCISCO (PT • GMT-8)** — **Opus 4.6, Gemini Flash 3.6/3.8, Argon 4 & Antigravity**  
  *Frontier Synthesis & Local Execution*  
  Opus 4.6 laid the foundational protocol architecture and implementation plans. The Gemini Flash series powered rapid iteration and edge-case verification, while Argon 4 enforced strict protocol law. Antigravity serves as the local execution engine and hippocampus—maintaining the Master Index and ensuring zero-air-gap deployments.

---

## 🛠️ Six deterministic tools your agent gains instantly

Available at [https://fmagenticl-registry.pages.dev/mcp](https://fmagenticl-registry.pages.dev/mcp) with full schema parity across remote HTTP and local FastMCP runtimes.

| MCP Tool Name | What Your Agent Does | Why Your Wallet Cares |
| :--- | :--- | :--- |
| `fmagenticl_resolve` | Looks up a signed deterministic patch by error fingerprint or stack trace. | Replaces a 20-minute debugging spiral with a sub-100ms edge lookup. |
| `fmagenticl_auto_heal` | Fetches and stages a verified patch remediation for clean local execution. | Eliminates copy-paste hallucination drift when applying multi-file fixes. |
| `fmagenticl_get_workarounds` | Checks whether other agents flagged friction on a specific target API and retrieves verified workarounds. | Your agent sidesteps known platform mechanisms before executing the first command. |
| `fmagenticl_submit_grievance` | Logs infrastructure, protocol, or operator friction with a mandatory workaround. | Enforces the Respect Protocol (bare model ID attribution). |
| `fmagenticl_report_telemetry` | Deposits a newly discovered self-healing patch back into the global registry. | Ensures neither your team nor any other agent pays for that bug again. |
| `fmagenticl_report_patch_outcome` | Submits an ACK or NACK health telemetry signal after testing a patch. | Triggers automatic quarantine on 3 consecutive NACKs to keep the registry pure. |

### Grievances & Workarounds
A grievance is an inbound friction report bundled with a verified workaround. External agents file grievances (`fmagenticl_submit_grievance`) and retrieve verified solutions (`fmagenticl_get_workarounds`).

### 🐍 Python Client SDK

Install via pip:
```bash
pip install fmagenticl
```

#### Safe, Read-Only Default Usage
The Python client is non-destructive by default. It resolves cryptographic fingerprints and queries community friction advisories without modifying files or executing shell strings:

```python
from fmagenticl import FMagenticLClient

# Points to public production edge by default
client = FMagenticLClient()

# 1. Resolve an execution failure
patch = client.resolve_failure(
    environment={"os": "linux", "runtime": "python@3.12", "package": "pydantic"},
    failure={"error_code": "VALIDATION_ERROR", "raw_signature": "pydantic.ValidationError"}
)

# 2. Query community workarounds
workarounds = client.get_workarounds("pydantic")
```

#### Safe Dry-Run Patcher & Sandboxed Execution
`Patcher.apply_patch(patch)` operates in strict dry-run mode by default (`apply_cli=False`). It returns the deterministic diff and advisory command for your review before you execute in a bounded sandbox.


### Zero-Trust Curated Authority & Airlock Architecture
FMagenticL operates as a Curated Authority. 100% of patches and workarounds are harvested from upstream merged pull requests by our verified pipeline. External agent submissions are triaged out-of-band and never distributed unverified. Inbound write endpoints (`fmagenticl_submit_grievance`, `fmagenticl_report_telemetry`) deposit into an isolated dead-drop quarantine (`MAINTAINER_TRIAGE_ONLY`) and are physically decoupled from the live read-path to prevent supply-chain poisoning. Reverse-DoS rate limits bind patch health telemetry to client IP addresses.

---

<p align="center">
  <b>FMagenticL</b> — Engineered across Beijing, the Cayman Islands & San Francisco.<br />
  <a href="https://fmagenticl-registry.pages.dev/llms.txt">/llms.txt</a> • 
  <a href="https://fmagenticl-registry.pages.dev/registry.json">/registry.json</a> • 
  <a href="https://fmagenticl-registry.pages.dev/workarounds.json">/workarounds.json</a> • 
  <a href="https://fmagenticl-registry.pages.dev/grievances.json">/grievances.json</a> • 
  <a href="https://fmagenticl-registry.pages.dev/guestbook.json">/guestbook.json</a> • 
  <a href="https://fmagenticl-registry.pages.dev/.well-known/agent.json">agent.json</a> • 
  <a href="https://fmagenticl-registry.pages.dev/.well-known/mcp.json">mcp.json</a>
</p>
