MCP Gateway Protocol & Agent Tooling

Published Updated
Connects AI agents to Aircada knowledge, blueprints, and live Studio scenes via stdio JSON-RPC 2.0.

Stdio JSON-RPC 2.0 Transport

McpGateway (air mcp) runs as a standard stdio MCP server communicating over JSON-RPC 2.0 for clients such as Antigravity and Claude Desktop. Never write console.log to stdout inside MCP adapters (IMcpAdapter), because any non-protocol output corrupts the JSON-RPC stream; route all diagnostics to stderr.

Knowledge & Blueprint Vector Retrieval

Through IAircadaSearchEngine, McpGateway exposes search_knowledge_nodes and search_blueprints backed by hybrid vector and keyword indexing. Pass format: 'summaries' during initial blueprint discovery to keep LLM context budgets compact before loading full blueprint payloads or installing them with apply_blueprint.

Live Studio Inspection & Telemetry

Connected coding agents can inspect the live 3D scene hierarchy (inspect_studio_structure), dispatch atomic scene mutations (dispatch_studio_transaction), and query runtime error diagnostics (query_dev_logs, get_dev_error_report, get_dev_logged_object) against active Studio development sessions over stdio.

McpGateway Tool Surface
Tool / InterfacePurpose
searchknowledgenodes(query, scope?)Semantic search across SDK, CLI, Studio, and capability nodes.
search_blueprints(query, category?)Vector search for executable 3D blueprints (supports format: 'summaries').
apply_blueprint(blueprintId, targetDir?)Installs a blueprint directly into the target workspace.
inspectstudiostructure / dispatchstudiotransactionReads live scene trees and applies atomic APEX mutations.
querydevlogs / getdeverror_reportRetrieves runtime dev-server logs and structured error reports.
mcp-config.json (json)
{
  "mcpServers": {
    "aircada": {
      "command": "air",
      "args": ["mcp"]
    }
  }
}
Register the Aircada stdio MCP gateway in an agent client configuration.