Skip to content

fix(platform): settings pages by kind and size, clearer refusals - #4893

Merged
yannickmonney merged 1 commit into
mainfrom
fix/mcp-settings-followups
Oct 12, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/mcp-settings-followups

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What

The follow-ups of the review of settings over MCP (#4685) that were still open — the review's findings 6, 7, 9, 10, 11 and 12 (1–5 landed as #4752–#4754; 8, partly covered pages in the coverage guard, is not small and stays).

  • Cursors by kind (6). get_settings answered one nextCursor for several paged kinds — the last one's — and two kinds hand out the same p<n> form, so a cursor passed to the wrong kind silently skipped or repeated resources (the reviewer demonstrated it). It now answers the cursor of each kind that has another page under cursors, by kind; nextCursor stays for a read of one kind and is null for several. A cursor names the kind that issued it (project-instructions:p10) and any other kind, or a bare p10, is refused INVALID_CURSOR beside what the other kinds read — before the listing is asked.
  • Pages that fit the answer (7). A page of project instructions could reach 1 MB and a page of agents ten projects of fifty agents, against the 250,000 characters the tool advertises. The free-text listings now end a page once the configurations it read take about 200,000 characters (a page always holds one resource), and agents are paged over their (project, agent) pairs (pageOfRead in the settings kit).
  • A subscription is not a key (11). A change to a subscription credential, new or stored, answers USE_SUBSCRIPTION_FLOW with where a person connects it, where it answered SETTINGS_TALE_ONLY — the code the design promised, so an agent that branches on it is not broken when the subscription tool arrives. A key stays SETTINGS_TALE_ONLY; removing one still works.
  • A shipped provider is no setting (12). Reading, refreshing the catalog of or removing a provider Tale ships (openai…) answered "A custom provider cannot replace a shipped provider", which says nothing of a read. It now answers SETTINGS_NOT_FOUND, the hint naming the provider-credential kind where its keys are; defining a provider under a shipped name is still PROVIDER_NAME_RESERVED.
  • expected is capped (9). A call naming many hashes for nothing listed them all; it lists the first fifty, like an argument refusal, and counts the rest.
  • Text (10). The 3.30.0 contract paragraph now names agent-model and task-review-context; the settings page no longer says the reference "lists every code" (it lists the settings tools' own; a kind's writer adds its own). The MCP-R12 example the review flagged already reads right since fix(platform): close three gaps in settings over MCP #4752.

Contract 3.41.0 (MCP fingerprint, schema snapshot with cursors, Tale skill row for the new code, OpenAPI version), cards MCP-R35 to MCP-R37 and MCP-R11 amended, docs in en, de and fr (MCP endpoint, settings page), the manual layer's error-code and reference rows, the v0.5.87 release notes.

Proof

  • Written red first: settings.test.ts (cursors by kind, kind-bound redemption, no cursors for a catalog, the fifty-issue cap), kit.test.ts (pageOfRead: by count, by size, at least one, cursor refusal, reads nothing past its page), projects/settings-resource.test.ts (25 projects of 20,000 characters walked in pages that each fit; agents cut inside a project and every pair read once), the credential and provider suites (the new codes, the shipped refusals for a read, a refresh and a removal, the old one for a definition). The skill guard's source list gained the file that now raises USE_SUBSCRIPTION_FLOW.
  • Real HTTP and Postgres: two probes in checkMcpSettingsConfig — 25 projects of 20,000 characters read in three pages that together read all 26 projects once, each page's text under 250,000 characters, a project cursor refused for the agent kind, none after a read of two kinds; and a subscription refused USE_SUBSCRIPTION_FLOW while a key is SETTINGS_TALE_ONLY, openai refused as no setting on a read and a refresh, and 80 stray hashes answered with fifty issues. (The first run of the size probe measured the whole JSON-RPC envelope, which carries the answer twice — as text and as structured content — and read 407 KB; the probe now measures the answer's text.)
  • Gates: tsc, oxlint --type-aware on every changed file, the whole server and PII projects (88,472 tests, 0 failed), the UI suite (7,680), docs (713), lint:links, lint:manual (1,774 boxes), knip, oxfmt --check. Mutations — binding cursors to kinds, the single-kind nextCursor rule, the size cut, the issue cap, the subscription code and the shipped-provider refusal — each fail a test. knip was red on main (checkMcpVersionHistory, exported by fix(platform): retain complete MCP version histories #4884 and imported by nothing): this PR drops the export.

Not here

Finding 8 (the coverage guard counts partly covered pages as covered; single sign-on, SCIM, trusted headers, sandbox devices and sessions, the Models-tab competence, the knowledge connection and object storage have no "planned" line) — a change to the shared descriptors and their guard, not a follow-up.

The follow-ups of the review of settings over MCP that were still open:

- get_settings answers the cursor of each kind that has another page
  under cursors, by kind. nextCursor stays for a read of one kind and is
  null for several: it used to name only the last kind's page, and the
  cursor forms of two kinds are the same, so a cursor passed to the wrong
  kind silently skipped or repeated resources. A cursor now names the kind
  that issued it and is refused (INVALID_CURSOR) on any other.
- The free-text listings no longer outgrow the answer. A page of project
  instructions could reach a megabyte and a page of agents ten projects of
  fifty agents; both now end once the configurations they read take about
  200,000 characters of the 250,000 the tool advertises, and agents are
  paged over their (project, agent) pairs.
- A change to a subscription credential, new or stored, answers
  USE_SUBSCRIPTION_FLOW with where a person connects it, instead of
  SETTINGS_TALE_ONLY, so an agent that branches on the code is not broken
  when the subscription tool arrives.
- Reading, refreshing the catalog of or removing a provider Tale ships
  answers as no setting (SETTINGS_NOT_FOUND) with a hint to the credential
  kind, instead of the sentence about replacing a provider.
- apply_settings lists at most fifty of the hashes it was given for
  resources no change names, and counts them all.
- Text: the 3.30.0 contract paragraph names agent-model and
  task-review-context, and the settings page no longer claims the
  reference lists every code.

Contract 3.41.0 with the MCP fingerprint, schema snapshot and Tale skill,
MCP-R35 to MCP-R37 (MCP-R11 amended), docs in en, de and fr, and probes in
the real-HTTP lane checkMcpSettingsConfig.

Also drops an `export` of a lane function nothing imports (knip had gone red on
main with #4884).
@yannickmonney yannickmonney changed the title fix(platform): read settings by kind and size, refuse what is no setting fix(platform): settings pages by kind and size, clearer refusals Oct 12, 2026
@yannickmonney
yannickmonney merged commit ea2ff3a into main Oct 12, 2026
@yannickmonney
yannickmonney deleted the fix/mcp-settings-followups branch October 12, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant