EarlyFra.me — Stateful Edge Webhook Orchestration & MCP Server
Stateful edge webhook fan-out to 4 targets, with confluence traps and human approval gates.
我該用這個嗎
品質與安全性
發現項目(1)
- LOW在 simulate_webhook_frame 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"earlyframe-mcp": {
"url": "https://relay.earlyfra.me/mcp"
}
}
}遠端端點
https://relay.earlyfra.me/mcpstreamable-http它能做什麼
工具清單
工具(19)
🟢list_routes
List all deployed 1-to-4 webhook routes, isolated whk_ ingest URLs, filter rules, and quota metrics for the authenticated EarlyFra.me Master Passkey.
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢inspect_live_telemetry(route_id, limit)
Fetch the latest 25 webhook execution logs (delivered and dropped signals, inbound edge location, per-target delivery latency in ms, and rescued JSON fields) from Edge Isolate RAM.
輸入結構描述
{
"type": "object",
"properties": {
"route_id": {
"type": "string",
"description": "Optional route_id filter (e.g. rt_1)"
},
"limit": {
"type": "number",
"description": "Max log items to return (1-25)"
}
}
}🟢simulate_webhook_frame(raw_payload, route_id)
Run a zero-quota dry-run simulation of a raw plain-text or JSON webhook payload against a route's filter rules, templates, and Edge AI synthesis.
輸入結構描述
{
"type": "object",
"properties": {
"raw_payload": {
"type": "string",
"description": "Raw plain-text or JSON webhook payload to test"
},
"route_id": {
"type": "string",
"description": "Optional route_id to test against"
}
},
"required": [
"raw_payload"
]
}🟡create_or_update_route(id, name, discord_webhook_url, slack_webhook_url, telegram_bot_url, ...)
Programmatically deploy or update a 1-to-4 fan-out route on the global edge (requires Neural Frame tier for write operations via MCP).
輸入結構描述
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Route ID (e.g. rt_1) or 'new' to create a new route"
},
"name": {
"type": "string",
"description": "Human-readable route label"
},
"discord_webhook_url": {
"type": "string"
},
"slack_webhook_url": {
"type": "string"
},
"telegram_bot_url": {
"type": "string"
},
"telegram_chat_id": {
"type": "string"
},
"custom_webhook_url": {
"type": "string"
},
"dedup_window_sec": {
"type": "number"
},
"filter_logic": {
"type": "string",
"enum": [
"AND",
"OR"
]
},
"filters": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"operator": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"template_title": {
"type": "string"
},
"template_body": {
"type": "string"
},
"ai_enrich": {
"type": "boolean",
"description": "Inject {{ai_summary}} and {{ai_sentiment}} into payload"
}
},
"required": [
"name"
]
}🔴rotate_route_token(route_id)
Cryptographically rotate a route's public whk_... webhook ingest token without altering the Master Passkey. The previous URL stops working immediately.
輸入結構描述
{
"type": "object",
"properties": {
"route_id": {
"type": "string",
"description": "Target route ID (e.g. rt_1)"
}
},
"required": [
"route_id"
]
}🟢list_plans
Return every subscription and credit top-up an AI agent can buy programmatically, with prices, quotas, accepted crypto currencies, and the checkout/claim endpoints. No authentication required.
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟡subscribe_plan(plan_id, email, pay_currency, existing_api_key, callback_url, ...)
Create a crypto checkout for a subscription plan and receive a concrete deposit address so an autonomous agent or treasury can settle it without a browser. Poll claim_subscription afterwards to obtain the Master Passkey.
輸入結構描述
{
"type": "object",
"properties": {
"plan_id": {
"type": "string",
"description": "Plan from list_plans, e.g. neural_monthly, pro_monthly, agent_credit_100k"
},
"email": {
"type": "string",
"description": "Owner/operator email for receipts and passkey recovery"
},
"pay_currency": {
"type": "string",
"description": "Settlement currency, e.g. usdttrc20 (default), usdterc20, usdc, btc, eth, sol"
},
"existing_api_key": {
"type": "string",
"description": "Existing ef_live_... passkey when renewing, upgrading, or buying a credit top-up"
},
"callback_url": {
"type": "string",
"description": "HTTPS endpoint that receives HMAC-signed subscription.activated / quota.topped_up lifecycle events"
},
"agent": {
"type": "object",
"description": "Optional agent identity recorded on the subscription",
"properties": {
"name": {
"type": "string"
},
"framework": {
"type": "string"
},
"version": {
"type": "string"
},
"homepage": {
"type": "string"
}
}
},
"metadata": {
"type": "object",
"description": "Optional opaque metadata (<= 1024 bytes) stored with the subscription"
}
},
"required": [
"plan_id",
"email"
]
}⚪claim_subscription(order_id, claim_token)
Exchange the claim_token from subscribe_plan for the provisioned Master Passkey. Poll until status is "completed"; returns api_key, tier, quota_limit and expiry.
輸入結構描述
{
"type": "object",
"properties": {
"order_id": {
"type": "string",
"description": "order_id returned by subscribe_plan"
},
"claim_token": {
"type": "string",
"description": "claim_token returned by subscribe_plan"
}
},
"required": [
"order_id",
"claim_token"
]
}🟢get_subscription_status
Return the authenticated passkey's tier, plan, quota usage, expiry, routes, registered agent identity and callback delivery history.
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟡purchase_quota_boost(pack, pay_currency)
Create a crypto checkout that adds extra webhook quota to an existing paid passkey (e.g. agent_credit_100k, apex_overage_500k). Poll claim_subscription afterwards.
輸入結構描述
{
"type": "object",
"properties": {
"pack": {
"type": "string",
"description": "Credit pack plan_id, e.g. agent_credit_100k or apex_overage_500k"
},
"pay_currency": {
"type": "string",
"description": "Settlement currency, default usdttrc20"
}
},
"required": [
"pack"
]
}🔴set_agent_callback(callback_url)
Register, rotate, or clear the HTTPS webhook that receives HMAC-signed subscription lifecycle events for this passkey.
輸入結構描述
{
"type": "object",
"properties": {
"callback_url": {
"type": "string",
"description": "HTTPS endpoint, or an empty string to clear the callback"
}
},
"required": [
"callback_url"
]
}🟢synthesize_edge_ai(raw_payload)
Run EarlyFra.me Edge AI over a raw webhook payload (JSON, form, or plain text) and return ai_summary, ai_sentiment and ai_score. Requires Neural Frame.
輸入結構描述
{
"type": "object",
"properties": {
"raw_payload": {
"type": "string",
"description": "Raw payload text or JSON to analyse"
}
},
"required": [
"raw_payload"
]
}🟢query_signal_memory(route_id, entity_key, status_filter, limit)
Read the durable state plane for a Master Passkey: recently archived webhook executions (delivered / filtered / retry_pending / dlq_failed) and the signal legs currently parked in a confluence window, so an agent can see what is waiting, what failed, and what has already fired.
輸入結構描述
{
"type": "object",
"properties": {
"route_id": {
"type": "string",
"description": "Optional route_id filter (e.g. rt_1)"
},
"entity_key": {
"type": "string",
"description": "Optional entity scope filter, matching the route's stateful_gate.entity_field (e.g. SOLUSDT)"
},
"status_filter": {
"type": "string",
"enum": [
"delivered",
"filtered",
"retry_pending",
"dlq_failed",
"dropped_cooldown",
"dropped_blackout"
],
"description": "Optional archive status filter"
},
"limit": {
"type": "number",
"description": "Max rows per bucket (1-50, default 20)"
}
}
}⚪arm_confluence_trap(route_id, entity_field, required_tags, tag_field, window_sec, ...)
Programmatically arm or disarm a route's stateful signal gate: entity scope field, required confluence tags, sliding window and per-entity cooldown. Requires the Neural Frame tier. Use it to wait for N independent confirmations on the same entity before the route fires.
輸入結構描述
{
"type": "object",
"properties": {
"route_id": {
"type": "string",
"description": "Target route ID (e.g. rt_1)"
},
"entity_field": {
"type": "string",
"description": "Dot-notation payload field that scopes the trap (default ticker)"
},
"required_tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Signal legs that must ALL arrive inside the window, e.g. [\"15m\",\"1h\"]"
},
"tag_field": {
"type": "string",
"description": "Field identifying the leg (default timeframe)"
},
"window_sec": {
"type": "number",
"description": "Confluence sliding window in seconds (30-86400, default 900)"
},
"cooldown_sec": {
"type": "number",
"description": "Mute repeat signals for the same entity for N seconds after firing (0 = off)"
},
"enabled": {
"type": "boolean",
"description": "Set false to disarm the trap without clearing the rest of the route"
}
},
"required": [
"route_id"
]
}🟢replay_historical_signal(route_id, event_id, dry_run)
Re-run an ARCHIVED webhook against the route's CURRENT filter, enrichment, blackout, confluence and template rules — a time-travel backtest against real past traffic. dry_run=true reports the exact rule evaluation and transformed output without dispatching anything.
輸入結構描述
{
"type": "object",
"properties": {
"route_id": {
"type": "string",
"description": "Optional route whose current rules should be applied; defaults to the route that received the archived event"
},
"event_id": {
"type": "string",
"description": "Archived event_id to replay (from query_signal_memory or inspect_live_telemetry)"
},
"dry_run": {
"type": "boolean",
"description": "true (default) = report only; false = re-dispatch through the current rules"
}
},
"required": [
"event_id"
]
}🟢inspect_inbound_payload(event_id, route_id, limit)
Read the bytes a sender actually POSTed to an ingest URL, before any parsing, enrichment or filtering — one execution by event_id, or the newest few for a route. Telemetry reports what the edge decided; this reports what arrived, which is what a template has to be written against. Read-only and never charges quota.
輸入結構描述
{
"type": "object",
"properties": {
"event_id": {
"type": "string",
"description": "Inspect one retained execution in full (from inspect_live_telemetry or query_signal_memory)"
},
"route_id": {
"type": "string",
"description": "Optional route_id to list the newest retained inbounds for (e.g. rt_1). Omit to cover every route on the passkey."
},
"limit": {
"type": "number",
"description": "Max events to return when listing (1-25, default 5)"
}
}
}🟢extract_schema_tokens(route_id, template_body)
The Intelligent Schema Extractor as an agent call: walks every retained inbound payload for a route and returns the {{dot.paths}} you can reference in a template — nested objects as data.object.amount, array projections as commits[].message — each with its inferred type, sample values, how many webhooks carried it and its presence ratio. Pass template_body to also see which of its tokens the traffic actually fills and how the cleaned alert renders: a token the payload lacks is dropped together with its label, so one ingest URL can serve several sources without leaking "RSI:" into the message.
輸入結構描述
{
"type": "object",
"properties": {
"route_id": {
"type": "string",
"description": "Route to extract from (defaults to every retained webhook on the passkey)"
},
"template_body": {
"type": "string",
"description": "Optional draft body: adds resolved_tokens, omitted_tokens and rendered_preview"
}
}
}🟢preview_alert_template(raw_payload, event_id, route_id, template_title, template_body, ...)
Dry-run a template against a payload without saving a route or charging quota: returns the rendered title and body, the exact JSON each configured destination would receive, which tokens were omitted because the payload did not carry them, and how the noise gate, confluence and approval gates would judge the same body. Send raw_payload to test an arbitrary body, or event_id to replay one of your real retained webhooks.
輸入結構描述
{
"type": "object",
"properties": {
"raw_payload": {
"type": "string",
"description": "Body to test — JSON, plain text or form-encoded. The edge rescues unstructured text into fields."
},
"event_id": {
"type": "string",
"description": "Or replay one of your retained inbound webhooks by event_id (takes precedence over raw_payload)"
},
"route_id": {
"type": "string",
"description": "Use a saved route's destinations, filters and gates (defaults to the first route)"
},
"template_title": {
"type": "string",
"description": "Override the route's title template for this preview only"
},
"template_body": {
"type": "string",
"description": "Override the route's body template for this preview only"
},
"custom_body_template": {
"type": "string",
"description": "Override the JSON remapper sent to the custom webhook for this preview only"
}
}
}🟡update_route_template(route_id, template_title, template_body, custom_body_template)
Write template_title, template_body and the custom JSON remapper onto an existing route in one call. The edit is partial: every field you leave out keeps its stored value, so destinations, noise-gate rules and stateful gates survive a template-only change. Requires the Neural Frame tier, and charges no quota — but the saved route starts shaping live traffic immediately.
輸入結構描述
{
"type": "object",
"properties": {
"route_id": {
"type": "string",
"description": "Target route ID (e.g. rt_1)"
},
"template_title": {
"type": "string",
"description": "New title template. An empty string clears it; omit the field to keep the current one."
},
"template_body": {
"type": "string",
"description": "New body template, up to 600 characters"
},
"custom_body_template": {
"type": "string",
"description": "JSON remapper for the 4th destination. Must stay valid JSON once placeholders are substituted."
}
},
"required": [
"route_id"
]
}社群
證據