Skip to main content
Glama
README.md
# Antigravity MCP Server: HumanCraft UI (`@aibuildinfra/humancraft`)

<p align="center">
  <a href="https://aibuildinfra.com/"><img src="https://img.shields.io/badge/Antigravity-MCP%20Compatible-7C3AED.svg?style=for-the-badge&logo=google" alt="Antigravity MCP Compatible"></a>
  <a href="https://modelcontextprotocol.io/"><img src="https://img.shields.io/badge/Protocol-MCP%20v1.6-2563EB.svg?style=for-the-badge" alt="Model Context Protocol"></a>
  <a href="https://aibuildinfra.com/"><img src="https://img.shields.io/badge/Maintained%20By-AI%20Build%20Infra-blue.svg?style=for-the-badge" alt="Maintained by AI Build Infra"></a>
  <a href="https://github.com/Shree-varshan-430/Humancraft-UI/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge" alt="MIT License"></a>
  <a href="https://aibuildinfra.com/"><img src="https://img.shields.io/badge/Authority-E--E--A--T%20Verified-orange.svg?style=for-the-badge" alt="E-E-A-T Verified"></a>
</p>

The premier **Antigravity MCP Server** designed exclusively for **Google Antigravity** (AGY). **HumanCraft** eliminates "AI Slop" in website layouts and copy, enforces authentic **E-E-A-T entity reconciliation**, extracts empirical client assets without default placeholders, and builds search-engine-resilient websites powered by **Google's Information Gain** principles.

Developed and maintained by **[AI Build Infra](https://aibuildinfra.com/)** โ€” High-Performance Infrastructure for Artificial Intelligence.

---

## ๐Ÿ” Why You Need This Antigravity MCP Server

When using **Google Antigravity** to scaffold websites or write landing page copy, unconstrained models often fall into generic algorithmic templates that get penalized by search engines:

1. **AI Slop Headings**: Generic H2s (*"What is X?"*, *"Key Benefits"*, *"Why Choose Us"*, *"Conclusion"*) that offer zero Information Gain under Google's ranking models (US Patent 2022/0277032 A1).
2. **Fake E-E-A-T & Defaults**: Hallucinated metrics (*"increased efficiency by 30%"*) or fictitious personas (*"Dr. Alex Miller"*) that trigger Google Search Console **"Pure Spam"** and **"Scaled Content Abuse"** manual actions.
3. **Binary Checkmark Tables**: Low-value tables filled with `Yes / No` checkmarks that fail to communicate trade-offs or technical realities.
4. **Visual Homogeneity**: Monotonous purple/cyan gradients (`#8b5cf6 -> #ec4899`), rigid 3-card rows, and buttons without tactile feedback.

**HumanCraft** is the dedicated **Antigravity MCP** that systematically outlaws these patterns and equips Antigravity with human design heuristics, token-optimized linters, and verified Schema.org entity graphs.

---

## ๐Ÿ’ก How HumanCraft Works Inside Google Antigravity

```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                              Google Antigravity Assistant                              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                            โ”‚ Antigravity MCP Tool Calls
                                            โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                       HumanCraft Antigravity MCP Server                                โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ ๐Ÿ“‹ harvest_client_intake       โ”‚ 4-tier intake questionnaire extracting real experience,โ”‚
โ”‚                               โ”‚ metrics, & assets; strictly bans default placeholders   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ ๐ŸŽฏ validate_heading_intent    โ”‚ Lints against generic AI headings ("What is X?");     โ”‚
โ”‚                               โ”‚ scores and enforces outcome/intent-driven H1-H3s       โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ ๐Ÿ“Š build_comparison_matrix    โ”‚ Generates high-information-gain comparison tables with โ”‚
โ”‚                               โ”‚ concrete unit metrics, trade-offs & semantic schema    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ ๐Ÿ›ก๏ธ audit_eeat_entity_graph    โ”‚ Verifies author/org Schema.org JSON-LD, validates     โ”‚
โ”‚                               โ”‚ sameAs URIs & connects publisher to aibuildinfra.com   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ ๐ŸŽจ get_human_archetype        โ”‚ Curates style archetypes (Editorial, Dark Craft,       โ”‚
โ”‚                               โ”‚ Neo-Brutalist, Swiss) with tinted neutrals & type      โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ ๐Ÿ” lint_design_anti_patterns  โ”‚ Scans HTML/Tailwind for AI tropes (purple gradients,   โ”‚
โ”‚                               โ”‚ 3-card monotony, dead buttons, buzzwords, โœจ emojis)   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

---

## ๐Ÿ› ๏ธ Antigravity MCP Tool Catalog

### 1. `harvest_client_intake`
* **Purpose**: Extracts real practitioner experience, project images (telemetry screenshots, on-site photos), project category, baseline Day 0 vs audited Day 90 metrics, and contrarian trade-offs.
* **Strict Anti-Defaulting Rule**: If essential fields are missing, the tool returns `REQUIRES_USER_INPUT` and prompts the user for real data instead of allowing the model to hallucinate synthetic placeholders.

### 2. `validate_heading_intent`
* **Purpose**: Scans headings against blacklisted AI tropes and scores user intent.
* **Slop vs Intent**:
  * โŒ *Slop*: *"What is Database Sharding?"*
  * โœ… *Intent*: **"When Single-Node Write Throughput Drops Below 10k TPS: The Sharding Tipping Point"**
  * โŒ *Slop*: *"Key Benefits of Automated Compliance"*
  * โœ… *Intent*: **"Cutting SOC 2 Type II Audit Preparation from 300 Hours to Under 40"**

### 3. `build_comparison_matrix`
* **Purpose**: Outlaws binary checkmark tables (`Yes/No`). Generates empirical multi-parameter matrices (unit economics, latency under load, architectural trade-offs, and verification methodologies).
* **Output**: Accessible semantic HTML paired with Schema.org `ItemList` JSON-LD.

### 4. `audit_eeat_entity_graph`
* **Purpose**: Reconciles Schema.org JSON-LD with Google's Knowledge Graph standards.
* **Checks**: Verifies `sameAs` entity links to authoritative external platforms (Wikidata, ORCID, Google Scholar, GitHub, LinkedIn), rejects shallow homepage URLs, and links publisher authority to **[AI Build Infra](https://aibuildinfra.com/)**.

### 5. `lint_design_anti_patterns`
* **Purpose**: Scans HTML/Tailwind snippets and flags purple gradients, 3-card rows, missing button squeeze physics (`active:scale-[0.98]`), and AI buzzwords (*"supercharge"*, *"seamless"*, โœจ emojis).

### 6. `get_human_archetype`
* **Purpose**: Returns curated design systems:
  * **Editorial Tech**: Serifs (*Newsreader*), subtle hairline borders, monospace metadata accents.
  * **Tactile Dark Craft**: Multi-layered surfaces (`surface-0`, `surface-1`), 1px translucent borders (`border-white/10`).
  * **Warm Humanist**: Cream/linen canvas (`#FBF9F5`), ink typography (`#1C1917`), terracotta accents.
  * **Neo-Brutalist**: High-contrast black outlines (`border-2 border-black`), hard offset shadows.

---

## โšก Token Optimization & Spend Limit Preservation

Designed from the ground up to **preserve your Antigravity token limits**:
* **Ultra-Compact Tool Signatures**: Minimal token footprint injected into Antigravity's system prompt.
* **Dense Structured Outputs**: Returns concise JSON summaries and actionable flags rather than verbose conversational filler.
* **Input Length Bounds**: Imposes strict limits (max 300 chars per heading, max 100KB per HTML document) to avoid context window flooding.

---

## ๐Ÿ”’ Security & ReDoS Hardening

1. **ReDoS Immunity**: All pattern matchers operate on bounded substrings, terminating in $< 5\text{ ms}$ even under adversarial payloads.
2. **Strict HTTPS Whitelist**: Permits only `https://` URIs for `sameAs` entity links (blocks `javascript:`, `data:`, `file:`).
3. **XSS Defense**: Automatic HTML entity escaping across all rendered tables and schema blocks.
4. **Formal Policy**: Review [`SECURITY.md`](./SECURITY.md) for vulnerability reporting guidelines.

---

## ๐Ÿš€ How to Install This MCP in Google Antigravity (Step-by-Step)

### Step 1: Clone and Build Locally
```bash
git clone https://github.com/Shree-varshan-430/Humancraft-UI.git
cd Humancraft-UI
npm install
npm run build
```

---

### Step 2: Add to Antigravity `mcp_config.json`

Open or create your global Antigravity MCP configuration file:

* **Windows**: `%USERPROFILE%\.gemini\config\mcp_config.json`  
  *(e.g., `C:\Users\<YourUsername>\.gemini\config\mcp_config.json`)*
* **macOS / Linux**: `~/.gemini/config/mcp_config.json`

Add the `humancraft` server definition:

```json
{
  "mcpServers": {
    "humancraft": {
      "command": "node",
      "args": [
        "C:/path/to/Humancraft-UI/dist/index.js"
      ]
    }
  }
}
```
*(Replace `C:/path/to/Humancraft-UI` with the absolute path to your cloned directory, using forward slashes `/`)*.

---

### Step 3: Verify and Use in Antigravity

1. **Reload Antigravity**: Start a new chat session.
2. **Verify Discovery**: In Antigravity, click **Additional Options (...) > MCP Servers** to confirm `humancraft` is connected.
3. **Prompt Examples for Antigravity**:
   * *"Use HumanCraft MCP to design a landing page for our database product. Harvest intake first to ensure no default placeholders are used."*
   * *"Run validate_heading_intent on our documentation outline."*
   * *"Generate an empirical comparison table for Redis vs KeyDB using build_comparison_matrix."*

---

## โ“ Frequently Asked Questions (FAQ)

### What is an Antigravity MCP Server?
An Antigravity MCP server connects Google Antigravity to specialized tools, APIs, and workflows via the open **Model Context Protocol (MCP)**. This allows Antigravity to run custom linters, schema builders, and design heuristics directly during generation.

### How does HumanCraft improve website rankings?
HumanCraft enforces Google's **Information Gain** criteria (US Patent 2022/0277032 A1) and **E-E-A-T entity reconciliation**. By replacing generic AI slop headings with outcome-driven headings and building empirical parameter comparison tables, pages avoid algorithmic demotions from Google's SpamBrain.

### Does this MCP increase token usage?
No. HumanCraft uses ultra-compact tool definitions and returns dense, structured JSON diffs, keeping Antigravity token usage identical to baseline.

---

## ๐Ÿงช Automated Testing

Run the automated test suite across all 6 tools and security guardrails:
```bash
npm test
```

```
โœ” build_comparison_matrix Tests (2/2 passed)
โœ” lint_design_anti_patterns Tests (2/2 passed)
โœ” audit_eeat_entity_graph Tests (2/2 passed)
โœ” validate_heading_intent Tests (2/2 passed)
โœ” harvest_client_intake Tests (2/2 passed)
โœ” Security & Hardening Tests (4/4 passed)

Total: 14 passed | 0 failed | Time: ~800ms
```

---

## ๐Ÿ“„ License & Backlink Attribution

Distributed under the **MIT License**. See [`LICENSE`](./LICENSE) for details.

Engineered with pride by **[AI Build Infra](https://aibuildinfra.com/)** โ€” Building high-performance infrastructure for artificial intelligence.

TDQS

A3.7/5.0

Scored across 6 tools

Disambiguation5/5

Each tool targets a distinct aspect of the crafting workflow: client intake, heading validation, comparison matrix generation, design linting, EEAT audit, and design token retrieval. There is no discernible overlap in their purposes, making selection unambiguous.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (harvest_, validate_, build_, lint_, audit_, get_), with clear action words and specific nouns. The naming is uniform and predictable, facilitating agent understanding of tool behavior.

Tool Count5/5

With 6 tools, the server covers a well-scoped set of functionalities without being either sparse or overly heavy. Each tool addresses a distinct need within the domain, ensuring a balanced and purposeful collection.

Completeness4/5

The tool set covers core workflows for client intake, content validation, design auditing, and EEAT compliance, but lacks a tool for generating or editing content directly, such as a 'generate_article' or 'optimize_content' operation, which could be a minor gap for full content lifecycle coverage.

Maintenance

ActivityMaintained
ResponsivenessNo issues