M2M Sentinel

io.github.M2M-Sentinel由 GitHub 账号 M2M-Sentinel 发布v1.2.5更新于 Oct 24, 2026

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

已验证Streamable HTTP可网页运行金融安全与监控

概览

AI 生成的概览

M2M Sentinel 让助手获取 Base 链的只读遥测数据:合约字节码能力、代理解析、Gas、DEX 价格与流动性以及大额转账信号。

可以做什么
  • 检查 Base 合约的静态字节码能力、代理目标与覆盖索引
  • 读取当前 Base Gas 价格及其 RPC 来源
  • 查询白名单代币的 DEX 中位现货价格与 DEX 流动性汇总指标
  • 列出近期高价值 ERC-20 转账信号,含交易哈希、地址与金额
  • 查看 M2M Sentinel 服务状态与上游 RPC 仲裁健康度
适用场景
适合在 Base 上作业的智能体在行动前需要事实性链上观测时使用:确认合约具备哪些能力、解析代理、估算 Gas、查询代币价格或关注大额转账。这些工具只提供观测结果,适合预检与研究,而非执行交易。
运行要求
可作为远程 streamable HTTP 端点使用,也可通过 stdio 以本地 npm 包运行(Node.js,经 npx)。公开演示与预览无需凭据;完整合约分析需要 M2M_SENTINEL_API_KEY(或 x-api-key 请求头)或 x402 支付签名。需要能访问 M2M Sentinel API 的网络。
安装前请注意
完整审计接口需 API 密钥或 x402 支付,若配置为自动付款的智能体可能产生费用;演示本身不会静默付款。API 密钥与支付签名属于机密,通过环境变量或请求头传入。输出仅为事实性能力观测,不构成安全性、可利用性或交易保证,且服务可能限流或在上游数据源故障时返回错误。

安装

在 SourceWeft 中

  1. 打开 控制台中的 M2M Sentinel,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.M2M-Sentinel%2Fm2m-sentinel-sdk/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "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.

来源:README.md,提交 7941740

工具

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.

输入参数address必填

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.

无需输入参数。

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.

输入参数symbol必填

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.

无需输入参数。

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.

无需输入参数。

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.

无需输入参数。

版本历史

1
  1. v1.2.5最新Sep 16, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分