# FastMesh Code-Mode SuperBus Skill (`mcp.fastmesh.dev`)

Connect any MCP-compatible agent to `https://mcp.fastmesh.dev/mcp` to discover and run 160+ FastMesh outcome engines, read-only Swallow modules, and Register-Anything zero-secret proxies without bloating the tool context window (`tools/list` stays strictly under 2,560 bytes).

## Quickstart Workflow (4 Flat Meta-Tools)

1. **Discover tools (`fastmesh_search`, $0, no auth required)**
   Call `fastmesh_search` with `{"query": "audit", "source": "fastmesh", "limit": 10}` to find matching `tool_id` values across `fastmesh`, `swallow`, and `register_anything`.
2. **Inspect schema and price (`fastmesh_describe`, $0, no auth required)**
   Call `fastmesh_describe` with `{"tool_id": "<id>"}` to fetch the exact `input_schema`, `price_micros`, `cache_ttl_sec`, and `async_mode` flag before spending anything.
3. **Execute with spend cap (`fastmesh_call`, pay-per-verified-hit)**
   Pass `Authorization: Bearer <your-fastmesh-key>` (or `X-FastMesh-Key`) and call `fastmesh_call` with:
   - `tool_id`: canonical ID from `fastmesh_search`
   - `args`: JSON object matching `input_schema`
   - `max_cost_micros`: hard per-call budget ceiling in micro-USD
   - `idem_key`: unique caller idempotency key to prevent duplicate charges on retry
   - `mode`: `"auto"`, `"sync"`, or `"async"`
4. **Poll long-running jobs (`fastmesh_job_status`, $0)**
   When `fastmesh_call` returns HTTP `202` with a `job_id`, poll `fastmesh_job_status` with `{"job_id": "<job_id>"}` until `status` reaches `"completed"`, `"parked"`, or `"failed"`.

## Billing & Safety Invariants
- **Zero charge on miss or fake-200**: HTML error shells, empty result lists, upstream failures, and CAPTCHA walls (`PARKED_WITH_FALLBACK`) always settle at `0` micro-USD.
- **Same-tenant cache recheck discount**: repeat calls by the same tenant within the adaptive verified cache window cost 10% of base price; volatile endpoints (`TTL_NEVER = -1`) are never cached.
- **Zero trajectory resale & zero secret echo**: customer payloads are never resold or used for training, and accidental upstream credentials are redacted in memory before returning.

## Endpoints
- MCP JSON-RPC 2.0: `https://mcp.fastmesh.dev/mcp`
- Interactive Try-Now UI: `https://mcp.fastmesh.dev/`
- OpenAPI Spec: `https://mcp.fastmesh.dev/openapi.json`
- Health Probe: `https://mcp.fastmesh.dev/health`
- Support: `support@fastmesh.dev`
