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 分

    请在仓库或注册中心条目中声明许可证。