Skip to content

Connect your MCP Gateway

The MCP Gateway is how the crew reads your data. It runs on your infrastructure, next to your REST API, and translates the crew’s requests into calls to your API.

  • UAVCrew never connects to your database. The gateway only calls your public API, with a per-customer token you issue.
  • Every request is signed. Each call from UAVCrew carries a short-lived token (30 minutes) signed with UAVCrew’s private key. The gateway checks it with UAVCrew’s public key, so there is no shared password to leak.
  • Writes need approval. The gateway only carries out a write when the request includes a single-use approval from a person. See Approve what the crew writes.

The gateway’s manifest declares which record types your API provides and where they live. Supported types are company, pilot, crew, aircraft, fleet, parts, mission, flight, maintenance, checklist, record, service and lead. Expose only what you have; agents adapt to what is available.

Open MCP connections → Register, enter a name, the environment (dev, UAT or production) and the gateway’s public URL. Use Test on the connection page to check that UAVCrew can reach it.

Create an organization key with the mcp:register scope, then:

Terminal window
curl -X POST https://api.uavcrew.ai/v1/mcp/register \
-H "Authorization: Bearer $UAV_REGISTER_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Production gateway",
"environment": "prod",
"endpoint_url": "https://mcp.example.com/mcp"
}'

The response has connection_id, a connection_token for the gateway, and status: connected if UAVCrew reached the gateway, pending if not yet. Registering the same environment again updates the existing connection (is_update: true).

Generate a platform key on the connection and create your first tenant.