# Sentinel Fleet MCP Wrapper (`sentinelfleet/sentinel-fleet-mcp-wrapper`) Actor

Universal MCP wrapper for Sentinel Fleet Technologies: deterministic DeFi invariant scanning, oracle divergence circuit breaker, forensic risk scoring, and DEX burst volume detection.

- **URL**: https://apify.com/sentinelfleet/sentinel-fleet-mcp-wrapper.md
- **Developed by:** [Luis Aguilar](https://apify.com/sentinelfleet) (community)
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Sentinel Fleet — MCP Wrapper (MIT)

[![mcptry](https://mcptry.com/badge/io.github.lamaaguilar9-web/sentinel-mcp-wrapper)](https://mcptry.com/servers/io.github.lamaaguilar9-web/sentinel-mcp-wrapper)

Lightweight public Model Context Protocol (MCP) wrapper for [Sentinel Fleet Technologies](https://sentinelfleet.tech) DeFi security tools on Base Mainnet, ready for **Apify**, **MCPize**, and direct MCP clients.

- **Remote MCP Endpoint:** `https://api.sentinelfleet.tech/mcp`
- **Machine-Readable Docs:** `https://api.sentinelfleet.tech/llms.txt`
- **Version:** `2.2.1`

### Tools Exposed (All Read-Only)

All 4 tools are read-only (`readOnlyHint=true`) and backed by deterministic `Decimal(78)` math on the Sentinel Fleet Gateway:

1. **`invariant_shield_scan`** — Checks AMM liquidity pools (`pool_address`, `reserve_x`, `reserve_y`, `k_last`) on Base Mainnet for Constant Product `x * y = k` invariant drift or reserve manipulation.
2. **`oracle_divergence_circuit_breaker`** — Compares on-chain DEX `spot_price` against `reference_price` for a `pair_symbol` within `tolerance_bps` (default `1500` bps) and signals whether to trip a circuit breaker.
3. **`forensic_risk_scoring`** — Audits ERC-4626 / DeFi vault solvency (`vault_address`, `total_assets`, `total_shares`) for share-inflation attacks and reserve deficits.
4. **`dex_burst_volume_detector`** — Evaluates flash-loan borrow bursts (`tx_hash`, `borrow_amount_usd`, `reentrancy_depth`) for abnormal execution telemetry.

### How to Pay via x402 (Direct Gateway)

When calling `https://api.sentinelfleet.tech/mcp` or `/api/v1/tools/*` directly without a platform API key:

1. Send a request — unauthenticated calls return **HTTP `402 Payment Required`** with a Base64-encoded **`PAYMENT-REQUIRED`** header (Base Mainnet `eip155:8453`, USDC, settled via PayAI facilitator `https://facilitator.payai.network`).
2. Sign the x402 authorization and retry with:
   - **`PAYMENT-SIGNATURE`** (x402 v2), or
   - **`X-PAYMENT`** (x402 v1), or
   - **`X-Payment-Receipt`** (on-chain receipt).
3. On success, the gateway returns **HTTP `200 OK`** with `PAYMENT-RESPONSE` / `X-PAYMENT-RESPONSE`.

See `https://api.sentinelfleet.tech/llms.txt` for ready-to-run `curl` and JSON examples.

### Environment Variables (Apify / MCPize)

- `SENTINEL_GATEWAY_URL` (default: `https://api.sentinelfleet.tech`)
- `SENTINEL_API_KEY` (required secret in Apify / MCPize when platform handles billing, sent as `Authorization: Bearer <key>`)

# Actor input Schema

## `gatewayUrl` (type: `string`):

Base URL of the Sentinel Fleet Universal Gateway.

## `poolAddress` (type: `string`):

Optional Base Mainnet EVM contract address (0x...) to inspect when invoking tools.

## Actor input object example

```json
{
  "gatewayUrl": "https://api.sentinelfleet.tech"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("sentinelfleet/sentinel-fleet-mcp-wrapper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("sentinelfleet/sentinel-fleet-mcp-wrapper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call sentinelfleet/sentinel-fleet-mcp-wrapper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sentinelfleet/sentinel-fleet-mcp-wrapper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/p0YA84ZbCPgOUMwnn/builds/rimTqZGdWapjVHqnI/openapi.json
