Site Mcp

io.github.bounded-systems由 GitHub 账号 bounded-systems 发布v0.2.0更新于 Oct 24, 2026

Read-only MCP server over robertdelanghe.dev's Sigstore-verified static API (stdio).

概览

AI 生成的概览

只读 MCP 服务器,通过 stdio 提供 robertdelanghe.dev 的签名静态 API——个人资料、文章、GitHub 语料库、简历凭证与 OpenAPI 文档,并逐文件校验哈希。

可以做什么
以本地 stdio 方式运行,把该站点的身份数据暴露为 MCP 资源(site://profile、site://posts、site://post/{slug}、site://corpus、site://conformance、site://resume-vc、site://openapi),并提供四个只读工具:list_posts、get_post、get_conformance、get_corpus。每个响应在返回前都会与站点经 Sigstore 签名的 sha256 清单逐字节比对;不匹配或清单中不存在的路径会被拒绝。工具结果与资源读取都带有 _meta.verification 块,包含已校验的哈希与签名状态。同一组动词也可作为 CLI 子命令使用。
适用场景
适合需要让助手读取该特定站点已发布内容与元数据的场景——文章、GitHub 语料库统计、DOM 一致性报告、简历可验证凭证或 OpenAPI 文档——并且希望获得密码学保证,确认字节在传输途中或 CDN 边缘未被篡改。
运行要求
需要 Node.js 18.17 或更高版本,通过 npx 作为本地 stdio 子进程启动。需要访问所配置源站(默认 或 require)、SITE_MCP_BASE_URL、SITE_MCP_SIGNER_IDENTITY、SITE_MCP_SIGNER_ISSUER、SITE_MCP_FETCH_TIMEOUT_MS。无需账号或 API 密钥。
安装前请注意
只读:不会写入、发送或删除数据,也不索取任何凭据。它会从第三方源站抓取内容,因此所获取的 URL 与内容会离开本机控制范围。签名校验默认关闭;可将 SITE_MCP_SIGNATURE_MODE 设为 warn 或 require 以校验清单的 Sigstore 签名包。修改 SITE_MCP_BASE_URL 或签名者身份/签发方变量会削弱或改变该信任校验。

安装

在 SourceWeft 中

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

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@bounded-systems/site-mcp

A local, read-only MCP server (and a matching CLI) over robertdelanghe.dev's signed static API.

It exposes the site's identity data — profile, writing, the GitHub corpus, the résumé credential, the OpenAPI doc — to any MCP client (Claude Desktop, Claude Code, etc.), and verifies every response byte-for-byte against the site's Sigstore-signed sha256 manifest before handing it back. If the bytes a client would receive don't match the signed manifest, it refuses to return them.

It runs locally over stdio — the client spawns it as a subprocess. There is no hosted server and no network listener, which preserves the site's static / no-attack-surface posture.

A thin implementation of a generic core

This package is now thin. All of the reusable machinery — the verifying fetch client, the sha256 manifest + Sigstore checks, and the VerbSpec → MCP (tools + resources) / VerbSpec → CLI projection — lives in @bounded-systems/static-mcp. site-mcp supplies only:

src/verbs.ts ─┐src/catalog.ts ├─▶ buildSiteSpec(config) ─▶ @bounded-systems/static-mcpsrc/config.ts ─┘        serveVerifiedStaticMcp(spec, config)   (MCP, stdio)                        runStaticCli(spec, config, argv)        (CLI)

Two surfaces, one definition. verbspec projects each verb to both an MCP tool and a CLI subcommand. The exact same verb set backs site-mcp's MCP tools and its CLI commands — no second definition, no drift.

Install / run

Requires Node ≥ 18.17. site-mcp's verbspec dependency is published to JSR, so installs resolve it through JSR's npm bridge — the included .npmrc sets @jsr:registry=https://npm.jsr.io. (Consuming from a fresh environment, add that one line to your npm config.)

bash
# MCP server over stdio (what an MCP client launches):npx -y @bounded-systems/site-mcp
# CLI — the SAME verbs, printing the verified JSON:npx -y @bounded-systems/site-mcp list_postsnpx -y @bounded-systems/site-mcp get_conformance                 # the indexnpx -y @bounded-systems/site-mcp get_conformance accessibility   # one areanpx -y @bounded-systems/site-mcp get_conformance --full          # every criterionnpx -y @bounded-systems/site-mcp get_corpus                      # the indexnpx -y @bounded-systems/site-mcp get_corpus topics               # one full listnpx -y @bounded-systems/site-mcp get_post agent-authored-code-drift

The MCP server logs a readiness line to stderr (stdout is the MCP channel):

site-mcp ready (stdio) → https://robertdelanghe.dev; signature mode=off

MCP client configuration

json
{  "mcpServers": {    "robertdelanghe": {      "command": "npx",      "args": ["-y", "@bounded-systems/site-mcp"],      "env": { "SITE_MCP_SIGNATURE_MODE": "warn" }    }  }}

Resources

Resource URIEndpointContents
site://profileprofile.jsonHeadline, intro, label, links
site://postsposts.jsonJSON Feed of writing (post list)
site://post/{slug}posts/{slug}.jsonA single post (templated; list enumerates from the feed)
site://corpuscorpus.jsonGitHub corpus: stats + highlights
site://conformanceconformance.jsonPer-page DOM conformance report
site://resume-vcresume.vc.jsonRésumé as a Verifiable Credential
site://openapiopenapi.jsonThe OpenAPI 3.2 document for the API

Tools / CLI commands (read-only)

The same four verbs, on both surfaces:

Tool / commandArgsReturns
list_posts—The posts feed (slug, title, summary, tags)
get_postslugA single post by slug
get_conformance— | area | --fullThe conformance index (3.2 KB) | one area | every criterion (19.7 KB)
get_corpus— | list | --fullThe corpus index (9.2 KB) | one ranked list | the whole corpus (71.7 KB)

One verb per subject, not one per drill-down

A client loads every tool's name, description and input schema into its context before any call is made — a cost paid on every session whether or not the tool is used — and choosing among the tools is itself a fan-out. So the tool list is a fold: F is the list, a call is one step of the generator rule, and a terminal response is where expansion stops.

Which makes a verb per drill-down the wrong shape: it grows the part paid always in order to shrink the part paid sometimes. get_conformance_index + get_conformance_area + get_corpus_index + get_corpus_list would take this server from three tools to eight.

Instead there is one verb per subject, and the parameter is the generator rule: no argument returns the index, an argument unfolds one branch of it, and --full still reaches the unfolded document at its own path. Nothing was removed from the API — site://conformance and site://corpus still serve the complete documents, and site://conformance/index and site://corpus/index are new entry points alongside them.

Changed default. get_conformance with no arguments used to return the whole 19.7 KB report; it now returns the 3.2 KB index. Pass --full (CLI) or {"full": true} (MCP) for the previous behaviour.

Resource reads and tool results carry a _meta.verification block (the manifest-relative path, source URL, the verified sha256, and the manifest signature status). The CLI prints the verified JSON; a verification failure exits non-zero with nothing on stdout.

Verification / trust model

The site publishes a single signed manifest, https://robertdelanghe.dev/site.sha256 (sha256sum format), and a Sigstore bundle over it, site.sha256.sigstore.json. The core enforces:

  1. Per-file hash check (always on). Fetch the manifest once per process; for every resource, fetch it, SHA-256 the received bytes, and require that digest to equal the manifest entry. A tampered file, a stale CDN edge, or a MITM → mismatch → VerificationError instead of a response. A path absent from the manifest is likewise refused.
  2. Manifest signature check (optional). SITE_MCP_SIGNATURE_MODE=warn|require verifies the Sigstore bundle against the deploy workflow identity (…/bdelanghe/site/.github/workflows/deploy.yml@refs/heads/main).

Sigstore backend / @bounded-systems/verify. The optional manifest-signature step is intended to delegate to @bounded-systems/verify, the canonical in-process bundle verifier. As of [email protected] that package ships as a self-executing CLI with no exported function (importing it runs and exits the process), so the core keeps a minimal, behaviorally-identical copy of the check and the gap is filed upstream. See static-mcp's README.

Configuration

VariableDefaultMeaning
SITE_MCP_BASE_URLhttps://robertdelanghe.devOrigin serving the site + API + manifest
SITE_MCP_SIGNATURE_MODEoffoff | warn | require
SITE_MCP_SIGNER_IDENTITYdeploy workflow SANExpected Sigstore certificate identity
SITE_MCP_SIGNER_ISSUERGitHub Actions OIDCExpected Sigstore OIDC issuer
SITE_MCP_FETCH_TIMEOUT_MS15000Per-request fetch timeout

Development

bash
npm install         # resolves @bounded-systems/static-mcp (npm) + verbspec (JSR bridge)npm run build       # tsc → dist/npm test            # node --test via tsx (server + CLI; no network)npm run typecheck

Publishing

One tag publishes the same version to three registries, mirrored. Pushing a v* tag runs publish.yml, which fans out to:

#RegistryIdentifierAuth
1npm@bounded-systems/site-mcptrusted publishing (OIDC) + provenance
2JSR (mirror)@bounded-systems/site-mcptokenless OIDC (npx jsr publish)
3MCP Registryio.github.bounded-systems/site-mcpGitHub-OIDC namespace auth (mcp-publisher)

There are no long-lived secrets — every registry authenticates with the job's short-lived GitHub Actions OIDC token (id-token: write). npm needs npm ≥ 11.5 (the workflow upgrades npm to guarantee this).

[!IMPORTANT] Versions must stay in sync. The release version lives in four places that must all match: package.json, deno.json, server.json, and the v<version> git tag. The workflow's verify job hard-fails the whole release on any mismatch, so npm and JSR can never drift apart. The MCP Registry also requires package.json to carry "mcpName": "io.github.bounded-systems/site-mcp" (it reads that field off the published npm package to prove ownership).

The MCP Registry job runs after the npm job, because the registry verifies ownership by reading mcpName from the freshly-published npm package.

One-time setup (maintainer) — do these BEFORE the first tag

These three registry-side authorizations only need to happen once. Two of the three (JSR, MCP Registry) are pure repo-link / OIDC — no tokens are minted.

(a) npm — Trusted Publisher (on npmjs.com)

  1. Sign in as an owner of the @bounded-systems scope.
  2. Open the package page for @bounded-systems/site-mcp → Settings → Trusted Publisher. For a brand-new package you may need to publish 0.1.0 once manually (or create the package), then switch to trusted publishing.
  3. Choose GitHub Actions and enter:
    • Organization / user: bounded-systems
    • Repository: site-mcp
    • Workflow filename: publish.yml ← (was publish-npm.yml)
    • Environment: (leave blank)
  4. Save. No token is generated or stored anywhere. Ensure the package's publishing-access policy allows automation/OIDC (trusted publishers satisfy 2FA).

(b) JSR — create + link the package (on jsr.io)

  1. Sign in to jsr.io with GitHub and create the package @bounded-systems/site-mcp under the @bounded-systems scope.
  2. Open the package's Settings tab → under GitHub Repository enter bounded-systems/site-mcp and click Link. Linking the repo is what enables tokenless OIDC publishing from this workflow (same idea as npm's trusted publisher). No token is created.

(c) MCP Registry — nothing to pre-authorize

The io.github.bounded-systems/* namespace is auto-authorized via GitHub OIDC: because this repo lives under github.com/bounded-systems, mcp-publisher login github-oidc proves ownership of the namespace from the Actions run itself. There is no registry-side claim/consent/linking step to do in advance — the first publish.yml run authenticates and registers the server on its own. (Package-ownership of the npm entry is proven separately by the mcpName field; see the note above.)

Cut a release (the single command)

bash
# 1. Bump the version in ALL of: package.json, deno.json, server.json#    (and the package entry in server.json). Commit.# 2. Tag with the SAME version and push — this is the only command:git tag v0.1.0 && git push origin v0.1.0

That one v* tag triggers publish.yml → npm + JSR + MCP Registry, all at the same version. You can also run it from the Actions tab via workflow_dispatch (which reuses the package.json version in place of a tag).

Local dry-runs (verify without publishing)

bash
npm pack --dry-run                                   # npm tarball contentsnpx --yes jsr publish --dry-run --allow-slow-types   # JSR (or: deno publish --dry-run --allow-slow-types)mcp-publisher validate ./server.json                 # MCP Registry schema check

site-mcp depends on @bounded-systems/static-mcp; publish the core first (its own v* tag → JSR + npm), then cut site-mcp's tag.

License

MIT — see LICENSE. The site data itself is published under CC BY 4.0.

来源:README.md,提交 7119dde

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分