From 6c2e329550bce5e7fbb68c735f337c952bb922b4 Mon Sep 17 00:00:00 2001 From: BitmapAsset Date: Wed, 18 Nov 2026 18:28:00 -0800 Subject: [PATCH 1/4] release channels: server.json for the MCP Registry, a manual-only registry workflow (OIDC), cargo-binstall metadata --- .github/workflows/mcp-registry.yml | 65 ++++++++++++++++++++++++++++++ probbit-cli/Cargo.toml | 9 +++++ server.json | 30 ++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 .github/workflows/mcp-registry.yml create mode 100644 server.json diff --git a/.github/workflows/mcp-registry.yml b/.github/workflows/mcp-registry.yml new file mode 100644 index 0000000..402a959 --- /dev/null +++ b/.github/workflows/mcp-registry.yml @@ -0,0 +1,65 @@ +name: mcp-registry + +# Publishes server.json to the official MCP Registry (registry.modelcontextprotocol.io). Manual only: it never runs on a +# push or a tag. Run it after the npm package of the same version is published (the registry reads `mcpName` from it). +# Auth is GitHub OIDC (`mcp-publisher login github-oidc`): no stored token; the run may claim io.github.BitmapAsset/*. +on: + workflow_dispatch: + inputs: + ref: + description: "tag to publish from, e.g. v0.15.1" + required: true + publish: + description: "publish (unticked: check and validate only)" + type: boolean + default: false + +permissions: + contents: read + +jobs: + registry: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + env: + MCP_PUBLISHER_VERSION: v1.8.1 + steps: + - uses: actions/checkout@v7 + with: + ref: ${{ inputs.ref }} + - name: server.json, npm/package.json and the published npm package agree + shell: bash + env: + REF: ${{ inputs.ref }} + run: | + set -euo pipefail + name=$(jq -r .name server.json); v=$(jq -r .version server.json); pv=$(jq -r '.packages[0].version' server.json) + nv=$(jq -r .version npm/package.json); mcp=$(jq -r .mcpName npm/package.json) + echo "server.json $name $v (package $pv); npm/package.json $nv mcpName $mcp" + [ "$v" = "$pv" ] && [ "$v" = "$nv" ] || { echo "versions differ"; exit 1; } + [ "$name" = "$mcp" ] || { echo "server.json name and npm mcpName differ"; exit 1; } + [ "v$v" = "$REF" ] || { echo "ref $REF is not v$v"; exit 1; } + published=$(curl -fsS "https://registry.npmjs.org/probbit/$v" | jq -r .mcpName) + [ "$published" = "$name" ] || { echo "npm probbit@$v is not published with mcpName $name (got: $published)"; exit 1; } + - uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2 + - name: download and verify mcp-publisher + shell: bash + run: | + set -euo pipefail + archive="mcp-publisher_linux_amd64.tar.gz" + base="https://github.com/modelcontextprotocol/registry/releases/download/${MCP_PUBLISHER_VERSION}" + curl -fsSL -o "$archive" "$base/$archive" + curl -fsSL -o "$archive.sigstore.json" "$base/$archive.sigstore.json" + cosign verify-blob --bundle "$archive.sigstore.json" \ + --certificate-identity "https://github.com/modelcontextprotocol/registry/.github/workflows/release.yml@refs/tags/${MCP_PUBLISHER_VERSION}" \ + --certificate-oidc-issuer "https://token.actions.githubusercontent.com" "$archive" + tar xzf "$archive" mcp-publisher + - name: validate + run: ./mcp-publisher validate + - name: log in (GitHub OIDC) and publish + if: ${{ inputs.publish }} + run: | + ./mcp-publisher login github-oidc + ./mcp-publisher publish diff --git a/probbit-cli/Cargo.toml b/probbit-cli/Cargo.toml index a0757f4..d94b5f5 100644 --- a/probbit-cli/Cargo.toml +++ b/probbit-cli/Cargo.toml @@ -10,6 +10,15 @@ readme = "../README.md" keywords = ["p-bit", "ai-agents", "mcp-server", "persona", "constraints"] categories = ["command-line-utilities", "algorithms", "science"] +# cargo-binstall: the release archives (`cargo binstall probbit-cli` downloads the binary instead of building it) +[package.metadata.binstall] +pkg-url = "{ repo }/releases/download/v{ version }/probbit-v{ version }-{ target }{ archive-suffix }" +bin-dir = "probbit-v{ version }-{ target }/{ bin }{ binary-ext }" +pkg-fmt = "tgz" + +[package.metadata.binstall.overrides.x86_64-pc-windows-msvc] +pkg-fmt = "zip" + [[bin]] name = "probbit" path = "src/main.rs" diff --git a/server.json b/server.json new file mode 100644 index 0000000..03c40d4 --- /dev/null +++ b/server.json @@ -0,0 +1,30 @@ +{ + "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", + "name": "io.github.BitmapAsset/probbit", + "title": "probbit", + "description": "A personality, mood and memory layer for AI agents, plus exact plans under hard rules. Offline.", + "repository": { + "url": "https://github.com/BitmapAsset/probbit", + "source": "github" + }, + "websiteUrl": "https://github.com/BitmapAsset/probbit/blob/main/docs/mcp.md", + "version": "0.15.1", + "packages": [ + { + "registryType": "npm", + "registryBaseUrl": "https://registry.npmjs.org", + "identifier": "probbit", + "version": "0.15.1", + "runtimeHint": "npx", + "transport": { + "type": "stdio" + }, + "packageArguments": [ + { + "type": "positional", + "value": "mcp" + } + ] + } + ] +} From 95cb5c1ac037eaa8318ad1d4c7f8ed70ab0d68ab Mon Sep 17 00:00:00 2001 From: BitmapAsset Date: Wed, 18 Nov 2026 18:28:00 -0800 Subject: [PATCH 2/4] docs/mcp.md: the MCP server client by client, its tools, two worked examples; README links it; CHANGELOG --- .github/workflows/mcp-registry.yml | 2 +- CHANGELOG.md | 12 +++ README.md | 1 + docs/mcp.md | 154 +++++++++++++++++++++++++++++ llms-full.txt | 1 + server.json | 1 - 6 files changed, 169 insertions(+), 2 deletions(-) create mode 100644 docs/mcp.md diff --git a/.github/workflows/mcp-registry.yml b/.github/workflows/mcp-registry.yml index 402a959..1b21991 100644 --- a/.github/workflows/mcp-registry.yml +++ b/.github/workflows/mcp-registry.yml @@ -2,7 +2,7 @@ name: mcp-registry # Publishes server.json to the official MCP Registry (registry.modelcontextprotocol.io). Manual only: it never runs on a # push or a tag. Run it after the npm package of the same version is published (the registry reads `mcpName` from it). -# Auth is GitHub OIDC (`mcp-publisher login github-oidc`): no stored token; the run may claim io.github.BitmapAsset/*. +# Auth is GitHub OIDC (`mcp-publisher login github-oidc`): no stored token; the run may claim names under this repository's owner (io.github./*). on: workflow_dispatch: inputs: diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d05188..c283297 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,18 @@ All notable changes to this project are documented here. The format follows ## Unreleased +### Added + +- `server.json` for the official MCP Registry (the name is the npm package's `mcpName`; the package `probbit`, stdio, + `mcp`), and the workflow `mcp-registry`, which publishes it only when started by hand (GitHub OIDC, no stored token; + unticked `publish` checks and validates only). It checks that `server.json`, `npm/package.json` and the published npm + package name the same version and `mcpName` before it publishes. +- docs/mcp.md: the MCP server's 10 tools as `tools/list` gives them, setup for Claude Code, Codex CLI, Gemini CLI, Claude + Desktop, Cursor, VS Code and OpenClaw (each marked run here or not), two worked examples and troubleshooting. The + README's MCP paragraph links to it. +- cargo-binstall metadata in `probbit-cli/Cargo.toml`, naming the release archives (untested: `cargo binstall` needs the + crate on crates.io, and it is not published). The six crates package with `cargo package` as they are. + ### Changed - `probbit live` (and `persona turn`) on a persona with `reward_from`: a reward without `src` is still refused (exit 2), diff --git a/README.md b/README.md index d772af6..c426be1 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ probbit live verify tutor.strand | grep -o '"ok":[a-z]*' printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"sh","version":"0"}}}' '{"jsonrpc":"2.0","method":"notifications/initialized"}' '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | probbit mcp 2>/dev/null | grep -o '"name":"probbit_[a-z_]*"' ``` +The MCP server, client by client (setup, the 10 tools, two worked examples, troubleshooting): [docs/mcp.md](docs/mcp.md). Then hand it to your harness: `claude mcp add probbit -- probbit mcp` (Claude Code; Codex, Cursor and other MCP clients in [docs/agents.md](docs/agents.md)). OpenClaw: `openclaw plugins install npm:probbit-stance --accept-capabilities` (this changes that OpenClaw's configuration; set-up and checks in [plugins/openclaw](plugins/openclaw/README.md)). Put the diff --git a/docs/mcp.md b/docs/mcp.md new file mode 100644 index 0000000..d5ae6b3 --- /dev/null +++ b/docs/mcp.md @@ -0,0 +1,154 @@ +# probbit as an MCP server + +`probbit mcp` is a Model Context Protocol server on stdio: JSON-RPC 2.0, one message per line, no network, no API key. +It gives an agent the same engine the CLI has: a persona's stance for this turn (a level per trait with exact odds, the +habits in force, a stance line for the prompt), a resident individual that logs its life to a strand and replays it, a +search for counterexamples to a character rule, and plans that keep hard rules with odds for every part. + +It serves the MCP revision 2026-07-28 and answers an `initialize` with the revisions 2025-11-25, 2025-06-18, 2025-03-26 +and 2024-11-05. Paths in tool arguments (`persona_path`, `strand_path`) are read and written on the server's disk, +relative to the directory the client starts it in. + +Install the binary first: `npm i -g probbit` (Node 18+), or the install script for your system in the +[README](../README.md) (Linux, macOS, Windows). + +`probbit version` prints the version; the server reports the same one as `serverInfo.version`. + +## The tools + +`tools/list` gives 10 tools. Every one but `probbit_live_event` is read-only; `probbit_live_event` writes the strand +when it is given a `strand_path`. Every tool says `openWorldHint: false` (no network). + +| tool | read-only (`readOnlyHint`) | description (its first sentence, as `tools/list` prints it) | +|---|---|---| +| `probbit_decide` | true | probbit decide: assign every task to one worker under hard rules (allowed sets, quotas, clamps) with workflow affinity | +| `probbit_run` | true | probbit run: a general constrained categorical program (variables, values, scores, pairs, caps, all_different, implies, tables, precedes, linear) | +| `probbit_stats` | true | probbit stats: machine, build features, effective controls and a measured self-test (site updates per second). | +| `probbit_demo` | true | probbit demo: a seeded synthetic agent-routing document (PII and prod-DB rules, quotas, workflow affinity) to pass to probbit_decide. | +| `probbit_evaluate` | true | probbit evaluate: a decision model's System One request (questions noul \| choice \| score keyed by id) with the judge's answers or per-question weights and rules over question ids (caps, implies, tables, precedes, linear, all_different, pairs) | +| `probbit_persona_init` | true | probbit persona init: a persona (inline document or a file path) and a seed -> the individual's initial state (genes from the seed, resting stance, empty mood and history) | +| `probbit_persona_turn` | true | probbit persona turn: a persona (inline document or a file path), the individual's state and this turn's inputs (the persona's evidence: sentiment, error, loss, praise, criticism, stakes, time_pressure, claim_done, elapsed_hours, and the persona's own; `goals` for a persona with a drives block) -> {stance, state} | +| `probbit_persona_fuzz` | true | probbit persona fuzz: a persona (inline document or a file path) and a character property in habit syntax (never: {when, then}; or props: a list of them) -> for each individual (seeds, default 0-99) the shortest event script whose stance breaks it, shrunk, with the replay command; `found` says whether any did | +| `probbit_live_event` | false | probbit live, one event: a persona (inline document or a file path), the individual's state (or a seed for a new one) and one event (inputs keyed by input id, with elapsed_hours since the previous event from the host's clock; quantised to 1e-6 h) -> {stance, state}: moods decay by their half-lives over the elapsed hours, and with a learning block the reward / correction flags move the learned deltas within their caps (habits never move) | +| `probbit_live_verify` | true | probbit live verify: a strand (its text, or a file path on the server's disk) -> {ok: true, events, persona, seed, engine, verified_by, final_state, last_line} when every line replays byte for byte from the header alone, else {ok: false, line, diverges} with the earliest line that differs and what (a changed input, a removed or reordered line, a changed header), or {ok: false, line, unsupported, engine, strand_engine} at the earliest line with a field or line kind this engine does not know (unsupported: the field's path; a newer engine's strand, not verified and not a divergence) | + +## Setup + +Each block is the whole setup for one client. "Run here" means the maintainers ran it with the build of this commit +and saw the result named; "not run here" means the client was not available, so the block follows the client's own +documentation and is untested by us. Replace `probbit` with the binary's full path if the client does not inherit your +`PATH`. + +**Claude Code** (run here: `claude mcp list` showed the server, and `claude -p` called `probbit_demo` and answered +"12 tasks and 6 workers") + +```sh +claude mcp add probbit -- probbit mcp # for you, in this project +claude mcp add --scope project probbit -- probbit mcp # shared through .mcp.json; Claude Code asks once to approve it +``` + +**Codex CLI** (run here: `codex mcp list` showed it enabled, and `codex exec` called `probbit_demo` and answered "12 tasks +and 6 workers") + +```sh +codex mcp add probbit -- probbit mcp +``` + +That writes to `~/.codex/config.toml`: + +```toml +[mcp_servers.probbit] +command = "probbit" +args = ["mcp"] +``` + +**Gemini CLI** (run here: `gemini mcp list` showed `probbit ... (stdio) - Connected`; no model call was made) + +```sh +gemini mcp add probbit probbit mcp # .gemini/settings.json in this folder (the default scope) +gemini mcp add --scope user probbit probbit mcp # every folder +``` + +**Claude Desktop** (not run here). In `claude_desktop_config.json` (Settings, Developer, Edit Config), then restart the app: + +```json +{"mcpServers": {"probbit": {"command": "probbit", "args": ["mcp"]}}} +``` + +**Cursor** (not run here). In `~/.cursor/mcp.json`, or `.cursor/mcp.json` in a project: + +```json +{"mcpServers": {"probbit": {"command": "probbit", "args": ["mcp"]}}} +``` + +**VS Code** (not run here). In `.vscode/mcp.json` of the workspace: + +```json +{"servers": {"probbit": {"type": "stdio", "command": "probbit", "args": ["mcp"]}}} +``` + +**OpenClaw** (not run here: adding a server changes a running gateway's configuration, which these checks do not do; the +flags are from `openclaw mcp add --help` of OpenClaw 2026.10.8) + +```sh +openclaw mcp add probbit --command probbit --arg mcp # connects once before saving; --no-probe skips that +``` + +**Without a global install** (run here: `npx -y probbit@0.15.0 mcp` from an empty npm cache answered `initialize` and +listed 10 tools): any client above can start `npx -y probbit mcp` instead of `probbit mcp` +(command `npx`, args `["-y", "probbit", "mcp"]`); the npm package fetches the release binary of its own version and checks its SHA-256. + + +## Two worked examples + +Both ran over stdio against the build of this commit (it reports itself as `probbit 0.15.1-dev`), from the repository +root, after `initialize`. The responses are the JSON in `result.content[0].text`, shortened where marked. + +**1. A resident individual: one event, then its receipt.** The tutor persona, seed 2, one event from an upset learner, +logged to `pip.strand`: + +```json +{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"probbit_live_event","arguments":{ + "persona_path":"examples/persona/tutor.yaml","seed":2,"strand_path":"pip.strand", + "event":{"sentiment":"negative","elapsed_hours":0}}}} +``` + +The answer has `stance`, `state` and `strand`. From the stance (shortened): `"status":"ok"`, humour `none` with odds +`{"light":0.179758,"none":0.820242,"playful":0}`, `"why":"learner upset -> valence down, humour down"`, the habits in +force `["no_play_when_upset","flourish_budget","no_formal_emoji","check_last"]`, and the line to put in the prompt: + +```text +Stance: go easy on the jokes; no jokes; gentle; explain step by step; warm and encouraging; suggest what to try next; ask what they think first; emoji welcome. +``` + +and `"strand":{"events":1,"head":"sha256:8b9a27df…","path":"pip.strand"}`. Then the receipt: + +```json +{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"probbit_live_verify","arguments":{"strand_path":"pip.strand"}}} +``` + +```json +{"engine":"probbit 0.15.1-dev","events":1,"final_state":"sha256:c56c8ee1…","last_line":"sha256:8b9a27df…","ok":true,"persona":"Pip","seed":2,"verified_by":"probbit 0.15.1-dev"} +``` + +`ok: true` means every line of the strand replayed byte for byte from its header alone; `last_line` is the head the event +returned. + +**2. A plan under hard rules.** `probbit_demo` with `{"seed": 1}` returns a synthetic routing document (12 tasks, 6 +workers, rules on personal data and the production database, quotas); passing that document unchanged as the arguments +of `probbit_decide` returns (shortened) `"verdict":"exact"`, `"tier":"enumerate"`, `"n_feasible":180540`, +`"violations":0`, `"plan_status":"released"`, a `plan` with one worker per task and `odds` per task over the workers. +`exact` means the odds were computed by enumerating all 180,540 plans that keep every rule, not sampled. + +## Troubleshooting + +- **The client shows no probbit tools, or says the command was not found.** GUI clients often start servers without your + shell's `PATH`. Put the full path from `command -v probbit` (Windows: `where probbit`) in `command`. +- **Claude Code lists the server as "Pending approval".** A server from `.mcp.json` (`--scope project`) waits until you + approve it: run `claude` in that folder once. +- **A file is not found.** `persona_path` and `strand_path` are on the server's disk, relative to the folder the client + started it in. Use absolute paths when unsure. +- **An event is refused with an error at `arguments.inputs.src`.** The persona has `reward_from` ([persona.md](persona.md) §2.10): an event whose + reward is on (for example `"praise": true`) needs `"src"`. The error names the field and shows one accepted line. +- **Check the server without a client.** `printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"t","version":"0"}}}' '{"jsonrpc":"2.0","method":"notifications/initialized"}' '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | probbit mcp` + prints two lines: the `initialize` answer and the 10 tools. diff --git a/llms-full.txt b/llms-full.txt index faab0b0..da886ee 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -100,6 +100,7 @@ probbit live verify tutor.strand | grep -o '"ok":[a-z]*' printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"sh","version":"0"}}}' '{"jsonrpc":"2.0","method":"notifications/initialized"}' '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | probbit mcp 2>/dev/null | grep -o '"name":"probbit_[a-z_]*"' ``` +The MCP server, client by client (setup, the 10 tools, two worked examples, troubleshooting): [docs/mcp.md](docs/mcp.md). Then hand it to your harness: `claude mcp add probbit -- probbit mcp` (Claude Code; Codex, Cursor and other MCP clients in [docs/agents.md](docs/agents.md)). OpenClaw: `openclaw plugins install npm:probbit-stance --accept-capabilities` (this changes that OpenClaw's configuration; set-up and checks in [plugins/openclaw](plugins/openclaw/README.md)). Put the diff --git a/server.json b/server.json index 03c40d4..32608dc 100644 --- a/server.json +++ b/server.json @@ -7,7 +7,6 @@ "url": "https://github.com/BitmapAsset/probbit", "source": "github" }, - "websiteUrl": "https://github.com/BitmapAsset/probbit/blob/main/docs/mcp.md", "version": "0.15.1", "packages": [ { From e0f4f9c3ddaa5ba7a8e7aad20894f12f4b7ba355 Mon Sep 17 00:00:00 2001 From: BitmapAsset Date: Wed, 18 Nov 2026 18:28:00 -0800 Subject: [PATCH 3/4] RELEASING: bump server.json with npm; mcp-listing: point the registry note to server.json and the workflow --- RELEASING.md | 2 ++ docs/registry/mcp-listing.md | 24 +++--------------------- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index 07a477c..1da5b59 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -20,6 +20,8 @@ release tag the README shows (the GitHub Action example and its `version` input) - `npm/package.json`'s `version` and the version comment after `probbit --version` in `npm/README.md`; the example tag in `install.sh`, `install.ps1`, `action.yml`, `.github/workflows/bench.yml`, `scripts/bench/test_install_ps1.ps1` and `scripts/tests/test_install_contract.py`; the title of `docs/CHEATSHEET.md`; the strand header example in `docs/persona.md` §5.7; + - `server.json`'s `version` and `packages[0].version` (the `mcp-registry` workflow refuses a version that differs from + `npm/package.json` or that npm does not have yet); - `CHANGELOG.md`: `## X.Y.Z - `, with an upgrade note wherever an exit code or an output changes; - the landing page (above); - regenerate `llms-full.txt` after all source-page edits: `python3 scripts/generate_llms_full.py`, then diff --git a/docs/registry/mcp-listing.md b/docs/registry/mcp-listing.md index f661bca..0ed65f0 100644 --- a/docs/registry/mcp-listing.md +++ b/docs/registry/mcp-listing.md @@ -31,7 +31,7 @@ Every claim below matches the README and `probbit mcp`'s own `tools/list` (0.13. {"mcpServers": {"probbit": {"command": "probbit", "args": ["mcp"]}}} ``` Claude Code: `claude mcp add probbit -- probbit mcp`. Codex CLI: `codex mcp add probbit -- probbit mcp`. -Through npm without a global install: `{"command": "npx", "args": ["-y", "probbit", "mcp"]}` (not yet tested in a client). +Through npm without a global install: `{"command": "npx", "args": ["-y", "probbit", "mcp"]}` (`npx -y probbit@0.15.0 mcp` listed the 10 tools; setup per client in [docs/mcp.md](../mcp.md)). ## Tools (10) @@ -52,26 +52,8 @@ Through npm without a global install: `{"command": "npx", "args": ["-y", "probbi - **Official MCP registry** (registry.modelcontextprotocol.io, `mcp-publisher`): needs a `server.json` and proof of the package. For the npm package the registry checks an `mcpName` field in the published `package.json` - (`"mcpName": "io.github.BitmapAsset/probbit"`); that field is not in 0.13.0, so it needs a package release first. - Draft `server.json` (check the current schema URL with `mcp-publisher init` before submitting): - - ```json - { - "name": "io.github.BitmapAsset/probbit", - "description": "A personality, mood and memory layer for AI agents, plus exact plans under hard rules. Offline.", - "repository": {"url": "https://github.com/BitmapAsset/probbit", "source": "github"}, - "version": "0.13.0", - "packages": [ - { - "registryType": "npm", - "identifier": "probbit", - "version": "0.13.0", - "transport": {"type": "stdio"}, - "packageArguments": [{"type": "positional", "value": "mcp"}] - } - ] - } - ``` + (`mcpName`); the published npm package carries it since 0.14.0. The file is `server.json` at the repository root, and + the workflow `mcp-registry` (started by hand, GitHub OIDC) publishes it after the npm package of the same version. - **Smithery**: a local stdio server; the listing takes the description, the client configuration above and the tool list. - **mcp.so** and similar directories: name, description, repository URL, categories, the client configuration. - Check before submitting: the step 8 command in the README ("For AI agents reading this") lists the same 10 tools. From 80ff9c914733ba4f7c808a5701f99a6dc76a95f4 Mon Sep 17 00:00:00 2001 From: BitmapAsset Date: Wed, 18 Nov 2026 18:28:00 -0800 Subject: [PATCH 4/4] channels: README line at the paragraph's end; docs/mcp.md names the build it ran; registry workflow says when npm lacks the version --- .github/workflows/mcp-registry.yml | 2 +- README.md | 2 +- docs/mcp.md | 18 +++++++++--------- docs/registry/mcp-listing.md | 4 ++-- llms-full.txt | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/mcp-registry.yml b/.github/workflows/mcp-registry.yml index 1b21991..1d1b235 100644 --- a/.github/workflows/mcp-registry.yml +++ b/.github/workflows/mcp-registry.yml @@ -41,7 +41,7 @@ jobs: [ "$v" = "$pv" ] && [ "$v" = "$nv" ] || { echo "versions differ"; exit 1; } [ "$name" = "$mcp" ] || { echo "server.json name and npm mcpName differ"; exit 1; } [ "v$v" = "$REF" ] || { echo "ref $REF is not v$v"; exit 1; } - published=$(curl -fsS "https://registry.npmjs.org/probbit/$v" | jq -r .mcpName) + published=$(curl -fsS "https://registry.npmjs.org/probbit/$v" | jq -r .mcpName) || { echo "npm has no probbit@$v yet: publish the npm package first"; exit 1; } [ "$published" = "$name" ] || { echo "npm probbit@$v is not published with mcpName $name (got: $published)"; exit 1; } - uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2 - name: download and verify mcp-publisher diff --git a/README.md b/README.md index c426be1..c9b2a40 100644 --- a/README.md +++ b/README.md @@ -88,13 +88,13 @@ probbit live verify tutor.strand | grep -o '"ok":[a-z]*' printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"sh","version":"0"}}}' '{"jsonrpc":"2.0","method":"notifications/initialized"}' '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | probbit mcp 2>/dev/null | grep -o '"name":"probbit_[a-z_]*"' ``` -The MCP server, client by client (setup, the 10 tools, two worked examples, troubleshooting): [docs/mcp.md](docs/mcp.md). Then hand it to your harness: `claude mcp add probbit -- probbit mcp` (Claude Code; Codex, Cursor and other MCP clients in [docs/agents.md](docs/agents.md)). OpenClaw: `openclaw plugins install npm:probbit-stance --accept-capabilities` (this changes that OpenClaw's configuration; set-up and checks in [plugins/openclaw](plugins/openclaw/README.md)). Put the stance `line` into your model's prompt each turn; the model chooses its words and may ignore the stance. What to read next: [AGENTS.md](AGENTS.md) (these commands, plus how to verify a strand and report a bug), [docs/persona.md](docs/persona.md) (the persona format), [docs/CHEATSHEET.md](docs/CHEATSHEET.md) (every command and exit code). +The MCP server client by client (setup, the 10 tools, two worked examples, troubleshooting): [docs/mcp.md](docs/mcp.md). ## Use it from your harness diff --git a/docs/mcp.md b/docs/mcp.md index d5ae6b3..50a780b 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -34,12 +34,12 @@ when it is given a `strand_path`. Every tool says `openWorldHint: false` (no net ## Setup -Each block is the whole setup for one client. "Run here" means the maintainers ran it with the build of this commit -and saw the result named; "not run here" means the client was not available, so the block follows the client's own -documentation and is untested by us. Replace `probbit` with the binary's full path if the client does not inherit your +Each block is the whole setup for one client. "Run here" means the maintainers ran it on 2026-11-18 with a 0.15.1-dev +build and saw the result named; "not run here" means it was not run (the label says why), so the block follows the +client's own documentation and is untested by us. Replace `probbit` with the binary's full path if the client does not inherit your `PATH`. -**Claude Code** (run here: `claude mcp list` showed the server, and `claude -p` called `probbit_demo` and answered +**Claude Code** (run here with `--scope project`: `claude mcp list` showed the server, and `claude -p` called `probbit_demo` and answered "12 tasks and 6 workers") ```sh @@ -69,19 +69,19 @@ gemini mcp add probbit probbit mcp # .gemini/settings.json gemini mcp add --scope user probbit probbit mcp # every folder ``` -**Claude Desktop** (not run here). In `claude_desktop_config.json` (Settings, Developer, Edit Config), then restart the app: +**Claude Desktop** (not run here: not installed on the test machine). In `claude_desktop_config.json` (Settings, Developer, Edit Config), then restart the app: ```json {"mcpServers": {"probbit": {"command": "probbit", "args": ["mcp"]}}} ``` -**Cursor** (not run here). In `~/.cursor/mcp.json`, or `.cursor/mcp.json` in a project: +**Cursor** (not run here: not installed on the test machine). In `~/.cursor/mcp.json`, or `.cursor/mcp.json` in a project: ```json {"mcpServers": {"probbit": {"command": "probbit", "args": ["mcp"]}}} ``` -**VS Code** (not run here). In `.vscode/mcp.json` of the workspace: +**VS Code** (not run here: not installed on the test machine). In `.vscode/mcp.json` of the workspace: ```json {"servers": {"probbit": {"type": "stdio", "command": "probbit", "args": ["mcp"]}}} @@ -101,8 +101,8 @@ listed 10 tools): any client above can start `npx -y probbit mcp` instead of `pr ## Two worked examples -Both ran over stdio against the build of this commit (it reports itself as `probbit 0.15.1-dev`), from the repository -root, after `initialize`. The responses are the JSON in `result.content[0].text`, shortened where marked. +Both ran over stdio on 2026-11-18 against a 0.15.1-dev build (the `engine` field below names it, and the hashes are +that build's), from the repository root, after `initialize`. The responses are the JSON in `result.content[0].text`, shortened where marked. **1. A resident individual: one event, then its receipt.** The tutor persona, seed 2, one event from an upset learner, logged to `pip.strand`: diff --git a/docs/registry/mcp-listing.md b/docs/registry/mcp-listing.md index 0ed65f0..0e932e0 100644 --- a/docs/registry/mcp-listing.md +++ b/docs/registry/mcp-listing.md @@ -51,8 +51,8 @@ Through npm without a global install: `{"command": "npx", "args": ["-y", "probbi ## Registry-specific notes (for whoever submits) - **Official MCP registry** (registry.modelcontextprotocol.io, `mcp-publisher`): needs a `server.json` and proof of the - package. For the npm package the registry checks an `mcpName` field in the published `package.json` - (`mcpName`); the published npm package carries it since 0.14.0. The file is `server.json` at the repository root, and + package. For the npm package the registry checks an `mcpName` field in the published `package.json`; + the published npm package carries it since 0.14.0. The file is `server.json` at the repository root, and the workflow `mcp-registry` (started by hand, GitHub OIDC) publishes it after the npm package of the same version. - **Smithery**: a local stdio server; the listing takes the description, the client configuration above and the tool list. - **mcp.so** and similar directories: name, description, repository URL, categories, the client configuration. diff --git a/llms-full.txt b/llms-full.txt index da886ee..2ee2ca3 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -100,13 +100,13 @@ probbit live verify tutor.strand | grep -o '"ok":[a-z]*' printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"sh","version":"0"}}}' '{"jsonrpc":"2.0","method":"notifications/initialized"}' '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | probbit mcp 2>/dev/null | grep -o '"name":"probbit_[a-z_]*"' ``` -The MCP server, client by client (setup, the 10 tools, two worked examples, troubleshooting): [docs/mcp.md](docs/mcp.md). Then hand it to your harness: `claude mcp add probbit -- probbit mcp` (Claude Code; Codex, Cursor and other MCP clients in [docs/agents.md](docs/agents.md)). OpenClaw: `openclaw plugins install npm:probbit-stance --accept-capabilities` (this changes that OpenClaw's configuration; set-up and checks in [plugins/openclaw](plugins/openclaw/README.md)). Put the stance `line` into your model's prompt each turn; the model chooses its words and may ignore the stance. What to read next: [AGENTS.md](AGENTS.md) (these commands, plus how to verify a strand and report a bug), [docs/persona.md](docs/persona.md) (the persona format), [docs/CHEATSHEET.md](docs/CHEATSHEET.md) (every command and exit code). +The MCP server client by client (setup, the 10 tools, two worked examples, troubleshooting): [docs/mcp.md](docs/mcp.md). ## Use it from your harness