Senlay Physical Context

io.github.smartsurfsolar由 GitHub 帳號 smartsurfsolar 發布v1.0.0更新於 Oct 24, 2026

Physical-world evidence and operability checks with provenance and explicit data gaps.

已驗證Streamable HTTP可網頁執行位置與生活資料與分析

概覽

AI 產生的概覽

遠端 MCP 伺服器,讓助理依座標取得實體世界證據與活動可操作性判斷,並保留資料來源、明確標示缺漏資料。

可以做什麼
  • 感測地點:回傳某座標的實體世界證據,保留來源、距離、時效、實測或預測狀態與信心度,並點名缺漏的證據。
  • 檢查可操作性:針對某座標的某項活動提供判斷,包含門檻值、超限條件、來源分歧、未知項目與不確定性。
  • 列出領域:顯示 Senlay 接受的作業領域,以及各領域使用的證據與門檻邏輯。
  • 查詢預報可信度:分別就風速與風向提供歷史預報可靠度,資料不足時回傳 UNKNOWN。
適用情境
適合助理需要判斷某地實際戶外條件(例如風況、天氣或場地適宜性),並希望區分實測證據與預測、明確標出未知項目時使用。可作為決策輔助,最終判斷仍由人負責。
執行需求
遠端 Streamable HTTP 端點,無需安裝或本機執行環境。匿名試用不需註冊或 OAuth。選用的帳號層級需在伺服器標頭提供 Authorization Bearer 權杖。
安裝前請注意
結果僅為決策輔助,可能出錯,最終由人負責。網路仍在早期階段,不保證涵蓋範圍,也沒有 SLA。帳號 API 金鑰與測站密鑰只顯示一次且無法取回,請自行保存。README 另涉及註冊供應者與測站、發布觀測資料,會向服務寫入資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Senlay Physical Context,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.smartsurfsolar%2Fsenlay/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "senlay-physical-context": {
      "type": "http",
      "url": "https://senlay.cloud/mcp"
    }
  }
}

README

Senlay — Verified Physical Context for Systems That Act Outside

This is the Senlay Open Network: the open protocol, JavaScript SDK, and edge-gateway starter for connecting independently operated sensors to verified physical context.

senlay.cloud · API documentation

Connect an AI agent with MCP — no install

Add the public stateless Streamable HTTP endpoint to an MCP-capable client. Anonymous trial access requires no signup or OAuth:

json
{  "mcpServers": {    "senlay": {      "url": "https://senlay.cloud/mcp"    }  }}

The MCP 2026-07-28 server exposes exactly sense_location, check_operability, and list_domains. It preserves Senlay evidence provenance and explicitly reports unavailable inputs instead of inventing values. To use an account tier, add Authorization: Bearer sl_live_... to the server headers. Operability results are decision support; humans remain the final authority.

Official MCP Registry metadata is provided in server.json. Version 1.0.0 is published as io.github.smartsurfsolar/senlay after live endpoint and schema validation.

What is open here

  • vendor-neutral observation envelope and JSON Schema
  • deterministic validation and normalization
  • HMAC request signing for provider-to-gateway transport
  • JavaScript client for any compatible ingestion endpoint
  • small edge gateway that validates before forwarding
  • adapter example and automated tests

The production aggregation engine, global registry, authentication, billing, provider credentials, historical place-memory corpus, risk models, and commercial connectors remain in the private senlay-platform-core repository.

The public website source is maintained separately in senlay-world; its canonical domain is senlay.cloud. See repository boundaries for the public/private split and branch policy.

Status

This is the first 0.x protocol release. Self-service station registration and signed observation ingestion are available at senlay.cloud for authenticated Senlay accounts. The server retains only a non-recoverable hash of every station secret; save each secret when it is returned.

The network is at the start of its path: there are no coverage guarantees and no SLA. It is not claimed as generally available.

Connect a station to the live network

First create a normal account at senlay.cloud/register.html, then create an API key in the dashboard and save it when shown. Stored keys cannot be retrieved; create a replacement if yours is lost. Use that account key for provider and station management; use the station secret only to sign observations.

bash
# Create a provider with your account API key.curl -sS -X POST https://senlay.cloud/api/v1/providers/register \  -H "Authorization: Bearer $API_KEY" -H 'content-type: application/json' \  --data '{"name":"My community network","slug":"my-community-network"}'
# Substitute the returned prv_... ID. Save the returned station secret now.curl -sS -X POST https://senlay.cloud/api/v1/stations/register \  -H "Authorization: Bearer $API_KEY" -H 'content-type: application/json' \  --data '{"providerId":"prv_REPLACE_ME","name":"Beach wind station","sensorType":"weather_station","location":{"lat":15.8801,"lng":108.3380}}'

Before publishing live data, use the dashboard's Send signed test action to verify the station secret and payload shape without storing a fake observation. Then publish to https://senlay.cloud/api/v1/observations using the returned stationId plus the X-Senlay-* signature headers described in the network protocol.

Nearby accepted observations appear in later authenticated /api/v1/sense and /api/v1/pwm responses as explicitly labelled direct station evidence. Checked station measurements also contribute to Senlay local memory baselines for the same place and season; those baselines are historical context, not current evidence.

Five-minute Python station

The Python connector uses only the standard library, so a Raspberry Pi or ordinary computer needs no package installation. Copy the stationId and one-time station secret returned by the dashboard, then preview a simulated observation locally:

bash
git clone https://github.com/smartsurfsolar/senlay-platform.gitcd senlay-platformexport SENLAY_STATION_ID='stn_REPLACE_ME'export SENLAY_STATION_SECRET='sl_station_REPLACE_ME'python3 python/simulator.py --seed 1

Preview mode does not contact Senlay. To verify the signature and payload without storing a reading, add the account API key and use the commissioning endpoint:

bash
export SENLAY_ACCOUNT_API_KEY='sl_live_REPLACE_ME'python3 python/simulator.py --dry-run --seed 1

To exercise live ingestion with generated data, use --publish. Simulator readings are always marked estimated, carry simulated: true, and never enter the checked-reading place-memory baseline.

bash
python3 python/simulator.py --publish --count 3 --interval 10 --seed 1

For a real wind sensor, pass its readings to the publisher. The default quality is raw; use --quality checked only when your adapter and sensor calibration justify that claim.

bash
python3 python/publish_reading.py \  --lat 15.8801 --lng 108.3380 \  --wind-speed 7.4 --wind-direction 62

Import SenlayClient and observation from python/senlay_client.py to connect another sensor process directly.

Try the live API — no install

bash
CREDS="$(curl -sS -X POST https://senlay.cloud/api/v1/agent-register -H 'content-type: application/json' --data '{"ownerEmail":"[email protected]","agentName":"my-first-agent"}')"; printf '%s\n' "$CREDS"API_KEY="$(printf '%s' "$CREDS" | sed -n 's/.*"apiKey":"\([^"]*\)".*/\1/p')"curl -sS -H "Authorization: Bearer $API_KEY" "https://senlay.cloud/api/v1/sense?lat=15.8801&lng=108.3380&field=kitesurfing"

Save both the apiKey and recoveryToken shown by the first command; each is returned only once. Replace [email protected] and my-first-agent with your own identity.

Local SDK and gateway

bash
npm installnpm testcp .env.example .envnpm run gateway

Send the example observation to the local gateway:

bash
npm run example

The gateway validates observations locally. Set SENLAY_INGEST_URL to forward them to an authorized compatible ingestion endpoint.

MQTT bridge (optional)

For hardware that publishes JSON observations to an MQTT broker, configure the MQTT variables in .env and run:

bash
npm run mqtt-bridge

The bridge subscribes to SENLAY_MQTT_TOPIC, validates every message through the SDK, signs it with the station secret, and forwards it to the HTTPS ingestion endpoint. Use one bridge credential per station; do not share a station secret among devices.

Branches

  • main: stable public releases
  • develop: active public development

Changes move from a feature branch to develop, then reach main after review and tests. See CONTRIBUTING.md.

Minimal SDK example

js
import { SenlayClient } from '@senlay/open-network';
const client = new SenlayClient({  endpoint: 'https://senlay.cloud/api/v1/observations',  providerId: 'prv_REPLACE_ME',  signingSecret: process.env.SENLAY_STATION_SECRET});
await client.publish({  stationId: 'stn_REPLACE_ME',  observedAt: new Date().toISOString(),  location: { lat: 15.8801, lon: 108.3380 },  measurements: [{ phenomenon: 'wind.speed', value: 7.4, unit: 'm/s' }]});

License

Apache-2.0. Contributions are welcome under the same license.

來源:README.md,提交 a0b1bff

工具

4

sense_location

Return current physical-world evidence and historical forecast reliability for a coordinate. Every available value keeps its provenance, distance, age, measured/predicted status and confidence; source divergence is reported. Required but unavailable evidence is named, never silently estimated.

輸入參數lat必填lng必填timedomain

check_operability

Decision support for an activity at a coordinate, including historical forecast reliability when established. Returns Senlay Core thresholds, exceeded conditions, source divergence, unknowns and assessment uncertainty. It may be wrong; unavailable evidence is named rather than inferred, and a human remains the final authority.

輸入參數lat必填lng必填timedomain必填

list_domains

List the operational domains accepted by Senlay and a brief of the evidence and threshold logic each domain uses. Actual thresholds and assessments always come from Senlay Core.

無需輸入參數。

get_forecast_trust

Return historical forecast reliability at a coordinate, separately for wind speed and direction. It reports UNKNOWN until Core has enough eligible archived forecast-versus-instrument pairs; it never corrects a forecast or predicts when a regime will end. Decision support. Humans remain the final authority.

輸入參數lat必填lng必填

版本歷史

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

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。