Model Context Protocol (MCP) + OpenAPI 3.1 Actions

RookTrack AI Assistant & Agent Connector

Let citizens report found items, search transit & stadium lost-and-found desks, or log live pet sightings directly from Gemini, ChatGPT, and Claude—with built-in Anti-Fraud Blind Redaction so secret ownership markers are never leaked to the LLM.

1. Live AI Assistant Simulator (Gemini, Claude, ChatGPT)

Click any real-world scenario below to fire a live JSON-RPC 2.0 `tools/call` request against `/api/mcp`.

Choose AI Assistant Host
GEMINI Conversation + RookTrack MCP Plugin
User Prompt

I left my Natural Titanium iPhone 15 Pro in a clear MagSafe case on the downtown 4 train near Central Station. Has MTA logged it?

MCP Tool Call: search_lost_and_found
Ready
GEMINI Assistant ResponsePII & Secret Proof Redacted

Click "Run Scenario Live" above to execute this tool call against RookTrack's /api/mcp server and inspect the live response.

JSON-RPC 2.0 Wire Payload (`POST /api/mcp`)protocolVersion: 2024-11-05
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_lost_and_found",
    "arguments": {
      "query": "iPhone 15 Pro Titanium",
      "type": "ITEM",
      "category": "Electronics",
      "venueSlug": "transit-mta",
      "latitude": 40.7525,
      "longitude": -73.977
    }
  }
}

2. Interactive MCP Tool Playground

Test any of RookTrack's 6 MCP tools directly. Items and sightings you create here are immediately added to the live RookTrack store.

Select MCP Tool to Execute
Tool Input Arguments
Entity Type
Try "iPhone 15 Pro", "Golden Retriever", or "Fossil wallet".
e.g., `transit-mta`, `grand-stadium`, or leave blank for all.
Live MCP Tool Outputsearch_lost_and_found
// Submit the form on the left to inspect the live JSON-RPC 2.0 response from /api/mcp
Anti-Fraud & "Prompt-Fishing" Guardrail

When external AI assistants search RookTrack, [`sanitizeItemForAssistant()`](file:///Users/hhamdi/development/RookTrack/src/lib/mcp/tools.ts) strips sensitive ownership markers before the payload leaves the server:

  • Hardware Serials & Lockscreens: Hidden (`serialNumberEncrypted` stripped).
  • 15-Digit Pet Microchips: Masked to last 4 digits (`***-***-5678`).
  • B2B Storage Bin Codes: Internal `BIN-TECH-12` location hidden from public queries.

3. Connect Your AI Assistant in 30 Seconds

Use either the local Stdio MCP server (`mcp/rooktrack-mcp-server.mjs`) or the HTTP JSON-RPC / OpenAPI endpoints.

Claude Desktop / Gemini CLI / Antigravity (`mcpServers`)

Runs `mcp/rooktrack-mcp-server.mjs` over stdio

{
  "mcpServers": {
    "rooktrack": {
      "command": "node",
      "args": ["/Users/hhamdi/development/RookTrack/mcp/rooktrack-mcp-server.mjs"],
      "env": {
        "ROOKTRACK_API_URL": "http://localhost:3000"
      }
    }
  }
}

Streamable HTTP MCP & ChatGPT Actions (`/api/mcp`)

Direct JSON-RPC 2.0 or import `/api/openapi.json`

curl -X POST http://localhost:3000/api/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "search_lost_and_found",
      "arguments": { "query": "iPhone 15 Pro", "venueSlug": "transit-mta" }
    }
  }'