GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(mcpx): the FAQ and a runnable examples gallery (#1859) by dezren39 · Pull Request #2454 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Oct 29, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Closes #1859 (parent #94; triage task 2747 verdict CONFIRMED).

What this adds

pkgs/mcpx/docs/faq.md — the level-2 FAQ. The five questions from the notes are headings word for word (quotes, , no. and .. included), each with its fixed anchor set explicitly (<a id="…">, the form that works on GitHub now and in mdBook later, as the page map requires): faq#do-you-like-mcp, faq#opencode-code-mode, faq#is-it-safe, faq#why, faq#examples. Each answer is ~120 words, in the notes' own "we" voice, and ends with exactly one "more" link into a page that exists today (story.md, opencode-plugin.md, AGENTS.md, ASSESSMENT.md, examples.md).

Facts, and where they come from:

  • MCP versus the one mcpx made: docs/story.md "Summary" and "mcpx speaks MCP".
  • Code mode: the OPENCODE-V2.md correction block and docs/opencode-plugin.md §1 — v1 ships it behind OPENCODE_EXPERIMENTAL_CODE_MODE, both accept TypeScript — never the stale body. OPENCODE-V2.md itself is untouched; it belongs to the compendium tracker.
  • Safety: AGENTS.md "Scripts" (this is the citation that replaces the issue's drifted internal/runner/runner.go:41-66), plus the daemon's unauthenticated loopback/socket posture from docs/story.md "One daemon, many clients". "Is it safe?" starts with No. and describes the posture; it designs no security.
  • Why: ASSESSMENT.md and the opening walk.
  • Examples: points at the gallery below.

pkgs/mcpx/examples/ — four runnable scripts and the test that runs them, Approach C of the issue:

example shows
call-a-tool.ts the whole shape: top-level await, one argument object, print the result
discover.ts Object.keys(tools.demo), describe(), then two calls in one script
stateful.ts open then state in one invocation, and log()
recipe-echo.ts a real // @param recipe, saved and run through mcpx recipes

examples_test.go builds the CLI and the fakemcp fixture through internal/testsupport, gives each run its own HOME, MCPX_STATE_DIR, MCPX_CACHE_DIR and MCPX_CONFIG, sets MCPX_AUTOSTART_IDLE_EXIT=60s, and runs mcpx stop --all on cleanup — the daemon-hygiene pattern from internal/e2e (#52/#182). Each script is run from a temp copy (so mcpx run's generated mcpx-client.ts never lands in the tree) and its stdout is compared with a checked-in .expected.txt, with a line diff on failure. Deterministic: the fixture server only, no Chrome, no network, no clock. Because it is a Go test in pkgs/mcpx, the existing mcpx workflow's go test ./... executes it — no new workflow, and an example that rots fails the build.

pkgs/mcpx/docs/examples.md — the gallery, derived from those files: per example the script, the command, and the exact stdout. faq#examples links to it. Every fenced block was checked against the .ts and .expected.txt bytes.

Two small corrections the directory forces

  • internal/defaults/links_test.go: a backticked path that is not at the module root is now also tried against the citing document. The plugin skills write examples/README.md and mean the directory beside SKILL.md; before, those were skipped only because no top-level examples/ existed. examples/servers/ joins foreignPrefixes — it is the cloned official conformance suite's layout, the same category as docs/extensions/.
  • plugin/opencode/README.md named examples/screenshot-and-errors.ts for the browser skill's example; it names the real path now.

Verification

go test ./examples/ -count=1         → ok (TestExamples, 4/4 subtests PASS)
go test ./internal/defaults/ -count=1 → ok (TestEveryDocumentationLinkResolves)
go test ./internal/cli/ -count=1     → ok (docs guards, story quote/line counts)
gofmt -l examples internal/defaults  → empty

Not run locally: the full go test ./... (CI's job) and nix build (not triggered by a docs-only change).

Not in this PR

  • No links added from the home page or "now what": neither page exists yet (mcpx docs: the home page -- pitch, intro, video, example, install copy buttons, rotating agent prompt #1874, mcpx docs: overview, quick start, install page and 'now what' #1878). The link targets are already the fixed faq#… anchors, so those pages can point at them when they land.
  • docs/scripts.md (the other back-link the issue names) is mcpx docs interface pages A: interfaces, CLI, binary, scripts prose pages (split of #1851) #2108's page; the FAQ links to AGENTS.md instead of a page that is not there.
  • OPENCODE-V2.md's stale body is left to the compendium tracker, per the issue's exclusion. Its correction block is what the FAQ cites.

Queue task: 3069 (worker repo-worker-code, OpenChamber scheduled lane).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
dezren39 added 2 commits October 29, 2026 17:53
@dezren39
docs(mcpx): the FAQ — five questions in their own words (#1859)
d0bc5fb
Level-2 faq page: the five questions from the notes as headings, verbatim,
each at its fixed anchor (faq#do-you-like-mcp, faq#opencode-code-mode,
faq#is-it-safe, faq#why, faq#examples), each answered in ~120 words in the
notes' own 'we' voice and ending with one 'more' link. Code-mode facts use
the OPENCODE-V2.md correction block and docs/opencode-plugin.md §1, never
the stale body; security posture is described, not designed.
@dezren39
docs(mcpx): runnable examples, a gallery page, and FAQ wording that m…
5956d05
…atches (#1859)

`examples/` holds four small scripts run against the deterministic fakemcp
fixture: call one tool, search and describe inside the script, a stateful
`open`/`state` pair, and a `// @param` recipe. `examples_test.go` builds the
CLI and the fixture through internal/testsupport, isolates HOME, state, cache
and config, sets MCPX_AUTOSTART_IDLE_EXIT=60s and runs `stop --all` on
cleanup -- the e2e pattern -- so `go test ./...` in CI executes every example
and compares stdout with its checked-in `.expected.txt`.

`docs/examples.md` is the gallery derived from them: script, command, exact
stdout per example, linked from `faq#examples`.

Two corrections the examples directory forces:

- `TestEveryDocumentationLinkResolves` now falls back to resolving a
  backticked path against the citing document when it is not at the module
  root, which is how the plugin skills write `examples/README.md`, and
  `examples/servers/` joins the foreign prefixes (the conformance clone).
- `plugin/opencode/README.md` named `examples/screenshot-and-errors.ts` for
  the browser skill's example; it now names the real path.
@dezren39
dezren39 requested a review from a team as a code owner October 29, 2026 23:05
@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 547a985a-56b2-4973-a7dd-53187fe2881a
Commits

Reviewing files that changed from the base of the PR and between 5a34fa7 and 5956d05.

Files selected for processing: 14
  • pkgs/mcpx/docs/examples.md
  • pkgs/mcpx/docs/faq.md
  • pkgs/mcpx/examples/.gitignore
  • pkgs/mcpx/examples/call-a-tool.expected.txt
  • pkgs/mcpx/examples/call-a-tool.ts
  • pkgs/mcpx/examples/discover.expected.txt
  • pkgs/mcpx/examples/discover.ts
  • pkgs/mcpx/examples/examples_test.go
  • pkgs/mcpx/examples/recipe-echo.expected.txt
  • pkgs/mcpx/examples/recipe-echo.ts
  • pkgs/mcpx/examples/stateful.expected.txt
  • pkgs/mcpx/examples/stateful.ts
  • pkgs/mcpx/internal/defaults/links_test.go
  • pkgs/mcpx/plugin/opencode/README.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T23:08:14.150610Z 5956d05 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · PR opened, parked for CI

  • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane
  • Session / ID: queue task 3069
  • Task: implement mcpx docs: the FAQ, in the notes' own voice #1859 — level-2 faq page + runnable examples gallery
  • Artifact: PR docs(mcpx): the FAQ and a runnable examples gallery (#1859) #2454 queue/3069-1859-mcpx-faq @ 5956d05c
  • What landed: pkgs/mcpx/docs/faq.md (five verbatim question headings, explicit <a id> anchors for faq#do-you-like-mcp, #opencode-code-mode, #is-it-safe, #why, #examples, ≤120-word "we"-voice answers, one "more" link each, code-mode facts from the OPENCODE-V2.md correction block only); pkgs/mcpx/examples/ with four scripts + examples_test.go (fakemcp fixture, e2e daemon hygiene, stdout vs .expected.txt, so CI's go test ./... runs them) + docs/examples.md gallery.
  • Verified locally: go test ./examples/, go test ./internal/defaults/ (link test), gofmt — all clean. Full go test ./... left to CI.
  • Side fixes the new directory forced: link test now resolves a backticked path against the citing document too, and treats examples/servers/ as foreign (conformance clone); plugin/opencode/README.md names the browser skill example's real path.
  • State: parked 20 min for basic: test on PR docs(mcpx): the FAQ and a runnable examples gallery (#1859) #2454. On resume: read checks fresh, merge under the standing criteria, then remove work/*, queue/*, status/* labels.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Oct 29, 2026
mcpx docs: the FAQ, in the notes' own voice #1859
Closed
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 29, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5956d05c86

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/mcpx/docs/examples.md
Comment on lines +13 to +15
Run them from `pkgs/mcpx`. The first run writes `mcpx-client.ts` and its
declarations beside the script, which is how `mcpx run` works for any file;
the `.gitignore` in that directory keeps them out of git.

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Document fixture setup before the runnable examples

For a reader following this page from a normal checkout, none of the advertised commands can produce the shown output because the demo server has not been configured. A repository-wide search found the fixture setup in examples/examples_test.go, where the test builds internal/testsupport/fakemcp and writes a temporary mcpServers.demo configuration; running an example directly does neither. Add instructions to build the fixture and configure its namespace before presenting the scripts as runnable as-is. Renaming the namespace to an existing server is insufficient because these examples require the fixture-specific tools and responses.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/mcpx/docs/faq.md
Comment on lines +46 to +48
subprocesses. `script.permissions` defaults to `all`, and the narrower profiles
(`net`, `read`, `read-net`, `strict`) apply only on Deno: bun and node run with
the user's own authority whatever you ask for. The daemon API is

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Describe the permission profiles actually enforced

For users choosing a restricted runtime, this incorrectly says that Node and Bun silently run with full authority regardless of the requested profile. internal/runner/runtimes.go rejects a named profile when it has no flags for the selected runtime, and internal/defaults/defaults.json explicitly defines Node permission flags for read-net/readnet. The existing tests in internal/e2e/permissions_test.go cover both refusal of unsupported profiles and enforcement of Node's write restriction. Describe those behaviors instead so the safety guidance does not tell readers that supported restrictions are ineffective.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dezren39 dezren39 Nov 1, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disposition (2026-10-31, queue task 4761 / issue #3246): confirmed and fixed. The FAQ text was wrong exactly as flagged — node enforces readnet/read-net via --permission --allow-fs-read=*, and a named profile with no entry for the chosen runtime is refused with an error rather than run unenforced. Fix PR: #3263 rewrites the FAQ answer per-runtime against defaults.json + runtimes.go and adds a dated supersession note to decision 0003 §2 (which repeated the stale claim).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dezren39 dezren39 Nov 1, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dispositioned: this finding was verified by triage (task 4746, issue #3246) and fixed in PR #3263, merged 2026-11-01 as 3186e25. The mcpx FAQ "is it safe?" answer now describes per-runtime enforcement accurately (node enforces readnet/read-net via --permission --allow-fs-read=*; net/read/strict are Deno-only; a named profile with no entry for the chosen runtime is refused with an error, never run unenforced), and docs/decisions/0003 section 2 carries a dated supersession note pointing at the corrected FAQ. No code changes were needed — defaults.json and runtimes.go were already correct; the docs were wrong.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
dezren39 added this pull request to the merge queue Oct 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to Branch Protection failures Oct 29, 2026
You're not authorized to push to this branch. Visit "About protected branches" for more information.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 added this pull request to the merge queue Oct 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to Branch Protection failures Oct 29, 2026
You're not authorized to push to this branch. Visit "About protected branches" for more information.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 added this pull request to the merge queue Oct 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to Branch Protection failures Oct 29, 2026
You're not authorized to push to this branch. Visit "About protected branches" for more information.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · green and enqueued in the merge queue

  • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane
  • Session / ID: queue task 3069
  • PR: docs(mcpx): the FAQ and a runnable examples gallery (#1859) #2454 queue/3069-1859-mcpx-faq @ 5956d05c
  • Checks: basic: test pass (first run failed in internal/pool, which then failed to reproduce locally under go test ./internal/pool/ -count=1 — 19.0s, ok — and passed on rerun; flake, not this diff), basic: spec parity pass, basic: proxy port fallbacks pass, mcpx/examples ok in CI (3.98s), mergeStateStatus: CLEAN.
  • State: auto-merge enabled, entry in main's merge queue (AWAITING_CHECKS behind other PRs). No further implementation needed.
  • Remaining for whoever next holds a claim on this task: confirm the merge landed (merge_sha), then clear work/*, queue/*, status/* labels on mcpx docs: the FAQ, in the notes' own voice #1859. That is the only step left.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · green, waiting on the known merge-queue stall

  • Session / ID: queue task 3069 · PR docs(mcpx): the FAQ and a runnable examples gallery (#1859) #2454 @ 5956d05c
  • Merge attempts: auto-merge enabled three times; each entry was added to main's merge queue and removed 45-50s later with no reason recorded (added_to_merge_queue → removed_from_merge_queue at 23:18→23:19, 23:19→23:20, 23:24→23:25 UTC). 62 other open PRs are CLEAN too and nothing has merged since ci: run nix ci on merge groups (merge-queue pilot step 1) #2233 at 10:57Z.
  • This is ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 ("merge queue ejects every PR"), not this diff. Nothing to fix in docs(mcpx): the FAQ and a runnable examples gallery (#1859) #2454: basic: test pass, basic: spec parity pass, basic: proxy port fallbacks pass, mergeStateStatus: CLEAN.
  • Only step left for a later holder of task 3069: once ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 is fixed, re-enable auto-merge (or merge), confirm merge_sha, then clear work/*, queue/*, status/* on mcpx docs: the FAQ, in the notes' own voice #1859.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 added this pull request to the merge queue Oct 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to Branch Protection failures Oct 29, 2026
You're not authorized to push to this branch. Visit "About protected branches" for more information.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 1caefdb Oct 30, 2026
9 of 10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/3069-1859-mcpx-faq branch October 30, 2026 01:08
This was referenced Oct 31, 2026
docs(mcpx): FAQ says permission profiles apply only on Deno — node enforces read-net and flagless profiles are refused, not silently run (PR #2454) #3246
Closed
docs(mcpx): examples page presents scripts as runnable as-is but never documents the demo fixture setup (PR #2454) #3247
Closed
docs(mcpx): correct the FAQ permission-profile answer to match defaults.json + runtimes.go #3263
Merged
mcpx docs: the home page -- pitch, intro, video, example, install copy buttons, rotating agent prompt #1874
Closed
This was referenced Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

mcpx docs: the FAQ, in the notes' own voice

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.