Repository navigation
fix(platform): settings pages by kind and size, clearer refusals - #4893
Merged
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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).
get_settingsanswered onenextCursorfor several paged kinds — the last one's — and two kinds hand out the samep<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 undercursors, by kind;nextCursorstays 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 barep10, is refusedINVALID_CURSORbeside what the other kinds read — before the listing is asked.pageOfReadin the settings kit).USE_SUBSCRIPTION_FLOWwith where a person connects it, where it answeredSETTINGS_TALE_ONLY— the code the design promised, so an agent that branches on it is not broken when the subscription tool arrives. A key staysSETTINGS_TALE_ONLY; removing one still works.openai…) answered "A custom provider cannot replace a shipped provider", which says nothing of a read. It now answersSETTINGS_NOT_FOUND, the hint naming theprovider-credentialkind where its keys are; defining a provider under a shipped name is stillPROVIDER_NAME_RESERVED.expectedis 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.agent-modelandtask-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
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 raisesUSE_SUBSCRIPTION_FLOW.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 refusedUSE_SUBSCRIPTION_FLOWwhile a key isSETTINGS_TALE_ONLY,openairefused 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.)tsc,oxlint --type-awareon 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-kindnextCursorrule, the size cut, the issue cap, the subscription code and the shipped-provider refusal — each fail a test.knipwas red on main (checkMcpVersionHistory, exported by fix(platform): retain complete MCP version histories #4884 and imported by nothing): this PR drops theexport.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.