Repository navigation
fix(mcp): initialize points at the served SKILL.md; run_action names the no_confirmation_service next step - #37355
Conversation
…the no_confirmation_service next step Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr
📓 Docs Drift CheckThis PR changes 1 package(s): 2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 1 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 12 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # 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
|
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Landing · head
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 #35778
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Items 1 and 2 of #35778. Item 3 (optional slimming of list_datasets / query_dataset, the spec
QueryDatasetInputSchemaand the validate_expression variable descriptions) is not taken: the card marks it optional and measure-first, and it stays open on the card.packages/mcp/src/mcp-server-runtime.ts: the open door's defaultinitializetext (DEFAULT_HTTP_INSTRUCTIONS) gains one sentence:Usage guide (SKILL.md): GET this endpoint's path plus /skill (by default /api/v1/mcp/skill).GET PREFIX/mcp/skillbesidePREFIX/mcpfrom the same domain list (packages/runtime/src/domains/mcp.tscreateMcpDomains, mounted indispatcher-plugin.tswith the sameprefix, default/api/v1), behind the sameisMcpServerEnabled()switch, answered by the samemcpservice (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.instructionsstay whole (existing pins), and the stdio default names no URL, since a stdio server has no HTTP endpoint.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-weight-34689.test.ts): 36,613 to 36,739 bytes (+126);run_actiondescription 1,228 to 1,352 (+124). The ceiling of 38,000 is unchanged and still holds.initializetext: +93 bytes (a bare bridge answers 533 characters). The 4,096-character bound pin on the longest default text still passes.Tests
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.scripts/ablation-replace.mjs(anchor hit 1 to 0, restored blob equal to HEAD,git diff HEADempty). The tests import the source, so no dist rebuild sits in the path:Acceptance notes
handleHttpRequestfrom 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/skillpath, 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 fullvitest 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.check:dual-build-cjs-loadsexit 3 (PREREQUISITE NOT MET: no whole-repo dist), so it is NOT MEASURED locally and left to CI.--ranwith 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