Skip to content

fix(mcp): initialize points at the served SKILL.md; run_action names the no_confirmation_service next step - #37355

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35778-mcp-skill-pointer-refusal-hint
Nov 25, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35778-mcp-skill-pointer-refusal-hint

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #35778

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:连接开放 MCP 入口的 AI 客户端,初始化时会被告知使用指南在哪里下载;执行需人工确认的业务动作被拒时,工具说明会告诉它由人在应用里完成。
  • 为什么做:上一轮把教学文字从工具说明挪进了使用指南,不读指南的客户端失去了指引,这里补回两句提示(属于"让自带 AI 的客户端在开放入口拿到受治理答案"这条主线)。
  • 出错会怎样:只是给 AI 读的提示文字,说错了 AI 可能找错地址或多问一句,不会改数据;可直接撤回。
  • 要你做什么:无。

What changes

Items 1 and 2 of #35778. Item 3 (optional slimming of list_datasets / query_dataset, the spec QueryDatasetInputSchema and the validate_expression variable descriptions) is not taken: the card marks it optional and measure-first, and it stays open on the card.

  1. packages/mcp/src/mcp-server-runtime.ts: the open door's default initialize text (DEFAULT_HTTP_INSTRUCTIONS) gains one sentence:
    Usage guide (SKILL.md): GET this endpoint's path plus /skill (by default /api/v1/mcp/skill).
    • Where it is true: the runtime dispatcher mounts GET PREFIX/mcp/skill beside PREFIX/mcp from the same domain list (packages/runtime/src/domains/mcp.ts createMcpDomains, mounted in dispatcher-plugin.ts with the same prefix, default /api/v1), behind the same isMcpServerEnabled() switch, answered by the same mcp service (renderSkill), and anonymous, so it holds for every grant. handleHttpRequest's only caller in this repo is that domain. The sentence is relative to the endpoint because the prefix is configurable.
    • Where it is not added: a host's per-request texts and a configured instructions stay whole (existing pins), and the stdio default names no URL, since a stdio server has no HTTP endpoint.
  2. packages/mcp/src/mcp-http-tools.ts: run_action's description gains one clause after the ACTION_CONFIRMATION_REQUIRED sentence:
    On details.reason "no_confirmation_service" a person performs it in the app: do not make the same change with another tool.

Byte deltas:

  • tools/list on the API-key surface (tools-list-weight-34689.test.ts): 36,613 to 36,739 bytes (+126); run_action description 1,228 to 1,352 (+124). The ceiling of 38,000 is unchanged and still holds.
  • Default initialize text: +93 bytes (a bare bridge answers 533 characters). The 4,096-character bound pin on the longest default text still passes.

Tests

  • New top-level describes in the existing harness files:
    • initialize-selection-rule-34686.test.ts: the pointer is in the first paragraph for five grants (no scope, data:read, data:write, metadata:write with an authoring injection, data:read with one).
    • mcp-action-confirmation-handoff-33690.test.ts: run_action's tools/list description carries the clause.
  • Ablations, one-off, via scripts/ablation-replace.mjs (anchor hit 1 to 0, restored blob equal to HEAD, git diff HEAD empty). The tests import the source, so no dist rebuild sits in the path:
    • pointer removed: the new initialize pin fails (1 failed, 14 passed);
    • clause removed: the new run_action pin fails (1 failed, 28 passed).

Acceptance notes

  • Not verified: a cloud host that calls handleHttpRequest from its own code and mounts the MCP endpoint without the runtime dispatcher. Such a host gets this default only when it injects no instructions of its own. If it serves no sibling /skill path, the sentence would not hold there; nothing in this repo is such a caller.

Verification

Two-minute check: pnpm --filter @objectstack/mcp exec vitest run src/initialize-selection-rule-34686.test.ts src/mcp-action-confirmation-handoff-33690.test.ts src/tools-list-weight-34689.test.ts. Expect 3 files passing, and a tools/list table line | run_action | 1352 | 884 | 2236 |.

Readings at e3c3ac4:

mcp build, typecheck, vitest (under os-verify-lock)
  • @objectstack/mcp... build: VERDICT command-exit 0.
  • pnpm --filter @objectstack/mcp typecheck, then the full vitest run --maxWorkers=2: VERDICT command-exit 0. Test Files 85 passed (85), Tests 1509 passed (1509). check:test-typecheck OK.
derived gate families
  • dispatch-gates --commands --repo objectstack-ai/objectstack: 68 families.
  • Results: 67 exit 0. check:dual-build-cjs-loads exit 3 (PREREQUISITE NOT MET: no whole-repo dist), so it is NOT MEASURED locally and left to CI.
  • --ran with exit codes: 68 derived, 67 run, 1 NOT-MEASURED, 0 UNRUN.
  • overlap-check: clean against origin/main.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr

…the no_confirmation_service next step

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/mcp, touching 4 documentable anchor(s).

2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/ai/agents.mdx (via /api/v1/mcp/skill (route, a path literal in DEFAULT_HTTP_INSTRUCTIONS))
  • content/docs/ai/connect-mcp.mdx (via no_confirmation_service (literal, a string literal in registerActionTools), /api/v1/mcp/skill (route, a path literal in DEFAULT_HTTP_INSTRUCTIONS))

⛔ 1 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v18/18-6.mdx (via no_confirmation_service (literal, a string literal in registerActionTools))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 12 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 134b71dbb0409e1ae2561fb77effcb20f97b0d10 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 662aaefdeb623e36e5ae1e2f1feeb48cc73059b3 — the merge of head e3c3ac47a03a6b0c76ba9fa5228318e8634e031c into base 134b71dbb0409e1ae2561fb77effcb20f97b0d10, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 662aaefdeb623e36e5ae1e2f1feeb48cc73059b3 && git checkout 662aaefdeb623e36e5ae1e2f1feeb48cc73059b3
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 134b71dbb0409e1ae2561fb77effcb20f97b0d10 e3c3ac47a03a6b0c76ba9fa5228318e8634e031c && git checkout -B drift-repro 134b71dbb0409e1ae2561fb77effcb20f97b0d10 && git merge --no-ff e3c3ac47a03a6b0c76ba9fa5228318e8634e031c

node scripts/docs-audit/affected-docs.mjs --json 134b71dbb0409e1ae2561fb77effcb20f97b0d10

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 134b71dbb0409e1ae2561fb77effcb20f97b0d10 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

席位核对 — ACCEPT · L1 · head e3c3ac47a03a6b0c76ba9fa5228318e8634e031c · 2026-11-25T22:14Z

Zone a4-A, card #35778 (items 1–2; item 3, optional slimming, not taken). Read from the PR's diff and check-runs, not from the dev report.

  1. Shape. 5 files, +62 / −1: mcp-server-runtime.ts (DEFAULT_HTTP_INSTRUCTIONS gains "Usage guide (SKILL.md): GET this endpoint's path plus /skill (by default /api/v1/mcp/skill)." — relative to the endpoint because the prefix is configurable; host-supplied and configured instructions untouched; stdio names no URL), mcp-http-tools.ts (run_action gains the door-neutral no_confirmation_service next step: a person performs it in the app, not the same change through another tool), two pins, a @objectstack/mcp patch changeset (Clause-②: no, Metadata-protocol: none).
  2. Against the card. Item 1: the pointer names the route the runtime dispatcher mounts beside /mcp (same domain list, same switch, anonymous). Item 2: restores the pre-fix(mcp): slim the open door's tools/list; the served SKILL.md carries the teaching and names validate_expression's variables #35682 hint and does not pre-empt MCP action doors: the no-confirmation-service refusal should tell an elicitation-less stdio client to use a client that supports confirmation #34325's stdio-only sentence. tools/list +126 B (36,739 under the 38,000 ceiling).
  3. Gates. Every check-run on this head completed success or an expected skip; none failed.
  4. Noted, not owed here. A host that mounts /mcp through its own code without /skill and injects no instructions would read a wrong pointer; recorded in the PR's Acceptance notes.
  5. Landing. Not governed (check-governed-merges), 63 changed lines ⇒ the zone lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

Landing · head e3c3ac47a03a6b0c76ba9fa5228318e8634e031c · 2026-11-25T22:15Z

Probe Reading
check-governed-merges --pr 37355 NOT governed
landing-k --pr 37355 OK (K = 0)

State: L1 ACCEPT on this head (7176128903); every check-run green or expected skip. Ready and auto-merge in this stroke. On MERGED, #35778 closes by Fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

review follow-ups of PR #35682: initialize points at /mcp/skill, run_action no_confirmation_service hint, remaining tools/list weight

2 participants