Platform
Projects
  • API Connections & Tools
  1. Documentation
  2. API Connections & Tools

API Reference & Connection

Technical specifications for tool integration and Antigravity local environment synchronization.

Architecture & Connection

MCP Benefits: The MCP protocol allows seamless integration of local development tools (linters, generators, analyzers) into the context of AI agents, ensuring predictability and FSD compliance.

01Connection Methods

Local Stdio (Recommended)

Fastest and most stable method for development. Uses a local script via npx.

mcp_config.json (Local Stdio)
1{ 2 "mcpServers": { 3 "mcp-react-frontend-local": { 4 "command": "npx", 5 "args": ["-y", "tsx", "scripts/mcp-stdio.ts"], 6 "cwd": "D://<path_to_project_root>" 7 } 8 } 9}
Local HTTP

Connection via HTTP to a running server on localhost. Requires mcp-remote.

mcp_config.json (Local HTTP)
1{ 2 "mcpServers": { 3 "mcp-react-frontend-http": { 4 "command": "npx", 5 "args": ["-y", "mcp-remote", "http://localhost:3000/api/mcp"] 6 } 7 } 8}
Remote (Vercel / Render)

Using a deployed server. Note the 'warm-up' time (cold start) up to 60 seconds.

mcp_config.json (Vercel)
1{ 2 "mcpServers": { 3 "mcp-react-frontend-remote": { 4 "command": "npx", 5 "args": ["-y", "mcp-remote", "https://mcp-react-frontend.vercel.app/api/mcp"] 6 } 7 } 8}
mcp_config.json (OnRender)
1{ 2 "mcpServers": { 3 "mcp-react-frontend-remote": { 4 "command": "npx", 5 "args": ["-y", "mcp-remote", "https://mcp-react-frontend.onrender.com/api/mcp"] 6 } 7 } 8}

02Available Tools

analyze_project
Analysis

Analyzes project files for FSD and naming conventions compliance.

get_rules
Config

Retrieves current project rules from RulesProvider.

scaffold_entity
Scaffold

Generates FSD entity structure (api, types, schema, converters, ui).