Repository navigation
feat(mcp-server): collection tools; create_entry only in registered collections (RFC-0040 step 4) - #87
Merged
Conversation
… registered collections (RFC-0040 step 4) list_collections (content:read) returns the registry with names, icon, counts, permalink, settings with defaults and the taxonomies that apply. create_collection and update_collection (site:write, approval in every mode, approverScopes site:settings, dryRun) declare and name collections; overlaps, duplicates and a missing default-locale name are refused in the precheck. create_entry's precheck refuses a collection outside the registry (collection_undeclared); inferred collections keep working. Server instructions and the generated tool reference updated. Refs #71 (RFC-0040, ADR-0042) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
This was referenced Oct 22, 2026
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.
RFC-0040 / ADR-0042, step 4 of 4. Stacked on #85; independent of the Studio PR #86.
list_collections(content:read, read-only): the registry with names per locale, icon, entry counts by status, effective permalink, feed/sitemap/sort with defaults filled in, and the taxonomies that apply.create_collectionandupdate_collection:site:write,requiresApproval,approverScopes: ["site:settings"], andclassifythat ispersonin every mode (bypassincluded) orreadfordryRun. This is the same policy asset_collection_permalink.path_conflict/reserved_path, via the store's dry-run site update);collection_exists);collection_undeclared);update_collectionmerges labels by locale; permalink changes stay withset_collection_permalink.create_entry: a precheck refuses a collection that is not in the registry (collection_undeclared) and says to usecreate_collection. Inferred collections andpostskeep working. Translations create entries only in their source's collection, so they need no check.node scripts/mcp-tools-doc.ts --checkok), and the new error codes have hints.test/collections.test.tscovers approval in every mode, dry run, the refusal before and acceptance aftercreate_collection, overlaps, duplicates and the label merge. The pinned tool lists were updated (105 tools).Refs #71
🤖 Generated with Claude Code