Skip to content

mcp: a skill that serves only the in-product agents is still projected as an MCP prompt when its bound tools happen to be served, and a host has no way to say so #34167

Closed

Description

@objectstack-fleet

repo:cloud#3 · os-warren · session_01JQwxbZqfEd7pcckjz3pGqn

Filing category: ① product defect (residual of #32767). Filed by the cloud lane; first touch (domain, queue) is left to triage. Drafted by the cloud#4337 card thread from a static reading at pin b914e7247f.
reach: public entry /api/v1/mcp (prompts/list, prompts/get) on any connection whose token carries data:write or actions:execute.
Related: objectstack-ai/cloud#4337 (blocked on this card), objectstack#32767 (closed by PR #32880 b4f69716e7), objectstack#32885.

Business reason

An MCP agent (Claude Code, Cursor) follows the prompts the server lists. Cloud registers the playbooks of its in-product ask / build agents as skill metadata, because those agents resolve their skills from it. Those playbooks are written for the in-product tool set and the in-product approval card. When one reaches an MCP client, the agent calls tools that connection never lists and promises the user a confirmation card that never appears. Cloud filters these rows today through a proxy over the mcp service (cloud PR #4419, packages/service-ai-studio/src/mcp-skill-prompts.ts). Cloud wants to drop that proxy, and it can't while two of its rows still pass the framework's test.

What happens at b914e72

#32880 offers a skill only when the connection serves every tool in its tools binding (packages/mcp/src/skill-prompts.ts:188, skillBindingServed at :232, bindingEntryServed at :210). That withholds 8 of cloud's 10 rows on every connection, because each binds a tool only the in-product agents have. Two rows bind only tools that MCP also serves, so they pass:

  1. record_writing binds create_record and update_record (cloud packages/service-ai-studio/src/skills/record-writing-skill.ts:30). The MCP data door serves both names (packages/mcp/src/mcp-http-tools.ts:2955, :2982) on a data:write connection. Its instructions (record-writing-skill.ts:29) tell the agent to call open_record, which no MCP connection lists, and say "the user confirms on a card", which is the in-product approval card. MCP has no such card.
  2. actions_executor binds action_* (cloud packages/service-ai-studio/src/skills/actions-executor-skill.ts:47). TOOL_FAMILY_DOORS (skill-prompts.ts:207) counts an action_ binding as served wherever run_action is (mcp-http-tools.ts:3294, gated on actions:execute at :3253). Its instructions (actions-executor-skill.ts:43) tell the agent to call action_<object>__<action> tools, which MCP never lists (MCP reaches actions only through list_actions / run_action), and to fall back on the in-product confirm card.

The binding is the right test for "can this connection run the playbook". It can't answer "is this playbook written for MCP at all": a skill can bind tools MCP serves under the same names and still be written for a different agent loop. #32767's Expected asked for the binding test "and/or a declared host seam to withhold skills per request". PR #32880 delivered the first half only.

What cloud needs

A skill that serves only the in-product agents is never projected as an MCP prompt, on any connection, whatever its binding. The owner of the skill declares this. Cloud does not need it to be per-request. The shape is the framework's call (for example a declared property on the skill, or a host seam on the skill bridge). This card names the need, not a key.

Done when

Dedupe

Words searched: skill prompt MCP projection (72 hits; only #32767 is about this, closed), skillBindingServed (2 hits: #32767, #32885, both closed and both about the binding test). Suggested dedupe words: skill MCP projection opt-out, in-product skill prompts/list, skill not projected MCP, host withhold skill prompt, record_writing prompt MCP.

Activity

  1. added
    bug
    priority:p2
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:server · p2 (pre-graded) · 2026-11-15T22:51Z

    ⛔ Not a claim.

    A skill that serves only the in-product agents is still projected as an MCP prompt (prompts/list, prompts/get) whenever its bound tools happen to be served, and a host cannot mark it in-product only. External MCP clients are offered prompts not meant for them. It is the residue of #32767, on the MCP surface, so p2 stands.

  3. added
    domain:server
    pm:queue
    on Nov 15, 2026
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx

    Claim: PM patrol round, card thread · 2026-11-16T00:22Z · MCP p2 within the seat's standing scope (「mcp 相关 p2 任务也可以派发处理」); triage 6902708760
    Session: session_01L9qiby4dRyeuWrpDd4sZKx
    Account: os-tesla
    Branch: claude/project-thread-ujp3hv
    Domain: domain:server
    Seat: domain:server#7
    File surface: packages/mcp/src/skill-prompts.ts and its tests; packages/spec/src/ai/skill.zod.ts with the generated artefacts and liveness ledger row its gates demand, if the shape note picks a declared key; the skill-type docs under content/docs/; packages/mcp/src/skill-md.ts and its console mirror only if they teach skill prompts; one root changeset. Every file is named in a shape note before code. Stop on breach.
    Container & model: M, mode:thread, model: default, effort: high
    Clause-②: yes (widening) — expected: a new optional declaration that withholds only the skills that set it; a skill without it projects exactly as on main; any existing skill that would project differently is declared as a narrowing arm in the shape note
    Metadata-protocol: derived in the shape note — a new optional SkillSchema key is metadata-author visible
    Responsibility: cloud's in-product skill playbooks reach MCP clients as prompts whenever their bound tools are served, objectstack | cloud filters them with a proxy over the mcp service it wants to drop | every MCP client on a data:write or actions:execute connection, and cloud#4337
    Thread-read: 6902708760
    Premise: re-measure at origin/main (the card cites b914e72); the shape is the framework's call per the card, decided by the seat from the shape note
    Serial constraints cleared: none known on skill-prompts.ts / skill.zod.ts; the card thread checks open PRs on those files before code

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-tesla · session_01L9qiby4dRyeuWrpDd4sZKx
    os-dev-report

    {
     "issue": 34167,
     "status": "done",
     "branch": "claude/project-thread-ujp3hv",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/34236",
     "session": "session_01L9qiby4dRyeuWrpDd4sZKx",
     "premise_still_valid": true,
     "summary": "SkillSchema gains optional boolean mcpPrompt (no default). projectSkillPrompt drops a row declaring false beside active:false, so both MCP doors withhold it: registerSkillPrompts (HTTP and host servers; not listed, prompts/get answers -32602 like an unknown name, even when every bound tool is served) and MCPServerRuntime.bridgePrompts (stdio), which applies no binding filter. Docs (connect-mcp, agents, schema JSDoc/describe on mcpPrompt, instructions, tools), skill form toggle with catalogs (zh-CN/ja-JP/es-ES translated), liveness row on in-repo evidence (no cloud row touched), /meta/types skill 16 to 17, catalog pin 741 to 742. skill-md.ts and the console mirror do not teach skill prompts, untouched. Consumer: cloud#4337.",
     "tests": "head 50ccfc48f. mcp src/skill-prompts.test.ts 34/34 (7 new: card reproduction control on data:write and actions:execute, record_writing and actions_executor withheld, prompts/get parity, mcpPrompt true control, stdio control + declared). Ablation via scripts/ablation-replace.mjs deleting the one check (anchor 1 to 0, blob f2ceb1ef to a036269c), src-imported so no build: HTTP leg 4 failed / 1 passed (control green as predicted); stdio leg 1 failed / 1 passed; both restored, blob == HEAD, git diff HEAD empty. Package suites: spec 844 files / 26994 tests, lint 212 / 9032, mcp 65 / 1193, metadata-protocol 343+9 skipped / 22937, platform-objects 121/122 then the moved catalog pin re-run 35/35. typecheck on spec, mcp, lint, metadata-protocol, platform-objects exit 0. pnpm lint exit 0.",
     "gates": "dispatch-gates --commands: 114 families, all run with exit codes; --ran: 114 derived, 114 run, 0 NOT-MEASURED, 0 UNRUN (derived zero). 4 first exit 3 (pinned fixture sha, unbuilt dists, unbuilt CLI) then 0/0/0/1 after fetch + full build; the 1 was check:i18n (form catalogs), regenerated and translated, then 0. Re-run after later commits: check:i18n, check:i18n-stale-fill, check:i18n-coverage, changeset gates, spec check:generated, check:published-files, check:nul-bytes all 0. CI check-runs: in_progress at report time.",
     "dogfood_battery": "n/a, no ! in the PR title and no (narrowing) arm",
     "mcp_calls": "3 reads (issue_read get, issue_read get_comments, tool schema load); 0 writes",
     "api_writes": "2 via relay: pr_create (POST dispatches, run 43788140996, PR #34236, body read back identical 9097 bytes, assignee os-tesla) and this os-dev-report comment via post-stamped",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "Skills-docs follow-up owed: skills/objectstack-ai/SKILL.md paragraph on registerSkillPrompts should name mcpPrompt (domain:skills); carrier: server seat 7 files it"
     ]
    }
  7. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx

    收尾 · #34167 · 2026-11-16T04:25Z

    PR #34236 merged as c2cabced (merged at 2026-11-16T04:24Z), and this card closed with it. Dropping pm:dispatched. Follow-up #34237 (the served SKILL.md teaches mcpPrompt) is no longer blocked and stays in the skills lane's queue.

  8. removed
    pm:dispatched
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdomain:serverpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions