M2M Sentinel

io.github.M2M-SentinelPublished by GitHub account M2M-Sentinelv1.2.5Updated Oct 24, 2026

Base bytecode capability observations, proxy resolution, gas, DEX, and transfer telemetry.

VerifiedStreamable HTTPWeb executableFinanceSecurity & Monitoring

Overview

AI-generated overview

M2M Sentinel gives an assistant read-only Base chain telemetry: contract bytecode capabilities, proxy resolution, gas, DEX prices and liquidity, and whale…

What you can do
  • Inspect a Base contract's static bytecode capabilities, proxy target and coverage index
  • Read current Base gas price with RPC provenance
  • Fetch median DEX spot price for allowlisted tokens and aggregate DEX liquidity metrics
  • List recent high-value ERC-20 transfer signals with hashes, addresses and amounts
  • Check M2M Sentinel service status and upstream RPC quorum health
When to use it
Useful when an agent working on Base needs factual on-chain observations before acting: checking what a contract can do, resolving a proxy, sizing gas, pricing a token, or watching large transfers. The tools report observations only, so they suit preflight and research rather than execution.
Requirements
Runs as a remote streamable HTTP endpoint or as a local npm package over stdio (Node.js via npx). No credentials are needed for the public demo and preview; full contract analysis needs an M2M_SENTINEL_API_KEY (or x-api-key header) or an x402 payment signature. Network access to the M2M Sentinel API is required.
Before you install
Full audit routes are gated by an API key or an x402 payment, so an agent configured for autonomous payments could spend funds; the demo itself never pays silently. The API key and payment signature are secrets passed by environment variable or header. Output is factual capability observation, not a safety, exploitability or transaction guarantee, and the service can rate-limit or return errors when upstream sources fail.

Installation

In SourceWeft

  1. Open M2M Sentinel in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.M2M-Sentinel%2Fm2m-sentinel-sdk/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "m2m-sentinel": {
      "type": "http",
      "url": "https://api.m2msentinel.com/mcp"
    }
  }
}

README

M2M Sentinel SDK & MCP Server

Official multi-language client library, Model Context Protocol (MCP) server, and Coinbase AgentKit ActionProvider for M2M Sentinel — deterministic EVM bytecode capability observations and common-proxy resolution for autonomous applications operating on Base. Callers own transaction policy.

This export labels npm 1.2.8 as a local release candidate, not a verified published artifact. This candidate version does not establish registry publication or installability. The install commands below use the last-verified npm release 1.2.7.

[npm version] [PyPI version] [License: MIT] [Smithery]


Try Base USDC without a wallet or API key

This quickstart uses Base USDC, a published allowlisted sample at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. The response contains factual capability evidence and limitations, not a safety guarantee or transaction advice. The live demo can be rate limited (HTTP 429 with Retry-After) or unavailable when upstream evidence sources fail (HTTP 503).

bash
curl --fail-with-body https://api.m2msentinel.com/v1/demo/audit/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
bash
npm install [email protected]
javascript
const { M2MSentinelClient } = require('m2m-sentinel-sdk');(async () => {  const client = new M2MSentinelClient();  const result = await client.demoAudit('0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913');  console.log(JSON.stringify(result, null, 2));})().catch((error) => { console.error(error.message); process.exitCode = 1; });
bash
pip install m2m-sentinel==1.2.7
python
from m2m_sentinel import M2MSentinelClient
client = M2MSentinelClient()result = client.demo_audit("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913")print(result)

Other addresses receive only the public preview. Full /v1/audit/:address analysis remains protected by an API key or an explicitly authorized x402 payment; the demo never pays silently. The client does not automatically retry or fall back to a protected route after a demo error. The source SDK export includes a runnable no-credential JavaScript example at examples/try_public_demo.js; it is not included in the last-verified npm 1.2.7 artifact.


⚡ 1. Model Context Protocol (MCP) Server

Connect M2M Sentinel directly to Claude Desktop, Cursor, Windsurf, or any MCP-compliant LLM agent.

Option A: 1-Click via Smithery

bash
npx -y @smithery/cli mcp add M2M-Sentinel/m2m-sentinel-sdk --client claude

Option B: Local Stdio (claude_desktop_config.json)

json
{  "mcpServers": {    "m2m-sentinel": {      "command": "npx",      "args": ["-y", "[email protected]"],      "env": {        "M2M_SENTINEL_API_KEY": ""      }    }  }}

Option C: Remote Streamable HTTP

  • Current MCP endpoint: https://api.m2msentinel.com/mcp
  • Legacy HTTP+SSE compatibility: https://api.m2msentinel.com/sse with messages at https://api.m2msentinel.com/messages

🤖 2. Coinbase AgentKit Integration

typescript
import { AgentKit } from "@coinbase/agentkit";import { m2mSentinelActionProvider } from "m2m-sentinel-sdk";
const agentKit = await AgentKit.from({  walletProvider,  actionProviders: [    m2mSentinelActionProvider({      apiKey: process.env.M2M_SENTINEL_API_KEY    })  ]});

📦 3. JavaScript / TypeScript Client

Authenticated SDK quickstart

bash
npm install [email protected]
javascript
const { M2MSentinelClient } = require('m2m-sentinel-sdk');
const client = new M2MSentinelClient({ apiKey: process.env.M2M_SENTINEL_API_KEY });
async function main() {const audit = await client.auditContract('0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913');console.log('Proxy Detected:', audit.audit.proxyResolution.isProxy);console.log('Proxy Target:', audit.audit.proxyResolution.targetAddress);console.log('Capabilities:', audit.audit.verdict.executableCapabilities);console.log('Evidence:', audit.audit.dissection.capabilities);}
main().catch(console.error);

🛡️ Base Account wallet_sendCalls Guard

The public SDK includes guardWalletSendCalls, a customer-side execution-identity boundary for Base Account / EIP-5792 batches. It preflights the anchor call and evaluates its caller policy before scheduling any remaining call, then pins remaining calls to the first trusted block identity in waves of at most four. Each settled wave is validated and policy-checked in ascending request-index order before a later wave starts; a failure or rejection stops later scheduling. The original detached request is forwarded only after all checks pass. It does not sign, broadcast, custody funds, infer inner UserOperation semantics, or make a safety claim. See examples/base_account_paymaster_guard.js for a no-network fixture.


🐍 4. Python Client

bash
pip install m2m-sentinel==1.2.7
python
from m2m_sentinel import M2MSentinelClient
client = M2MSentinelClient()result = client.demo_audit("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913")print(result)

Transaction-specific preflight example

The public repository includes a standalone, mock-only transaction boundary example at examples/transaction_preflight.js. From this repository root, run:

bash
node examples/transaction_preflight.js

It observes one caller-supplied Base transaction, passes the observation to a caller-owned policy, and reaches only a mock signing/send callback. It refuses to continue on unverified evidence, unresolved execution, an observation mismatch, or a missing Diamond selector mapping. It never signs or sends a transaction; optional live mode uses only a caller-supplied API-key header and remains the caller's responsibility.


💳 5. Autonomous x402 Micropayments (Headless M2M)

typescript
import { x402SignerClient } from "m2m-sentinel-sdk";
const client = new x402SignerClient({  walletSigner: myAgentWallet,  baseUrl: "https://api.m2msentinel.com"});
const result = await client.request("/v1/audit/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913");

📜 License

MIT License. Copyright (c) 2026 M2M Sentinel.

Source: README.md at commit 7941740

Tools

6

m2m_audit_contract

Inspect static bytecode capabilities (e.g. mint, pause, freeze, upgradeability slots), common proxy target resolution, and coverage index for a single Base contract address. Factual capability observation only, not a safety or exploitability guarantee. Distinguishable from m2m_get_service_status (infrastructure status) and legacy score-only endpoints.

Parametersaddressrequired

m2m_get_gas_metrics

Fetch current Base gas price in wei/gwei with RPC provenance for the upstream observation. Read-only telemetry; does not inspect contract code, return token/DEX pricing, or authorize or submit transactions.

Takes no parameters.

m2m_get_token_price

Fetch the median Base DEX spot price in USD across up to five deepest indexed pools, with contract address, decimals, and pool provenance for one allowlisted token symbol (e.g. USDC, WETH, AERO). Does not return historical price series; contrast with m2m_get_dex_liquidity, which returns aggregate pool reserve depth rather than an asset price.

Parameterssymbolrequired

m2m_get_dex_liquidity

Fetch aggregate pool reserve, depth, and volume metrics across tracked Base DEX liquidity pools. Reports tracked-pool metrics only and does not filter by individual trading pair; contrast with m2m_get_token_price, which observes token spot prices.

Takes no parameters.

m2m_get_whale_signals

Fetch up to 50 tracked recent high-value ERC-20 transfer signals on Base with transaction hashes, token/sender/receiver addresses, amounts, and valuation provenance. Observes large on-chain transfer events without query parameter limits; does not inspect contract bytecode or query DEX pricing.

Takes no parameters.

m2m_get_service_status

Fetch operational status, upstream Base RPC quorum status, and persistence availability for M2M Sentinel infrastructure. Does not return blockchain or market telemetry.

Takes no parameters.

Version history

1
  1. v1.2.5LatestSep 16, 2026

Score

75% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts