L'Atlas / MCP servers / Drupal Code Query

Drupal Code Query

tech.tresbien/drupal-code-query

MCP server OK

Get a review See pricing

Drupal core API changes, review queues, contrib usage, upgrades, patches, code search, SQL, WordPal.

Technical sheet

Author
tresbien.tech (registry namespace)
Repository
—
Site
mcp.tresbien.tech
Version
0.50.0
Transport
Streamable HTTP
Authentication
None (observed by our test)
Server address
https://mcp.tresbien.tech/mcp Streamable HTTP
Tools
20
Categories
Databases
Last updated
27 Nov 2026
Published
27 Nov 2026

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/tech.tresbien/drupal-code-query.svg?lang=en)](https://latlas.dev/en/mcp/tech.tresbien/drupal-code-query)
HTML
<a href="https://latlas.dev/en/mcp/tech.tresbien/drupal-code-query"><img src="https://latlas.dev/badge/fiche/tech.tresbien/drupal-code-query.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://mcp.tresbien.tech/mcp
Last result
OK 28 Nov 2026, 09:41
Response time
968 ms (initialize + tools/list)
Protocol version
2025-11-25
Announced name
drupal-code-query 0.50.0
Tools
20

History

DateResultResponseTools
28 Nov 2026, 09:41OK968 ms20

Exposed tools (20, from tools/list, 28 Nov 2026)

check_patches

Check composer patches against a release

Does each composer patch still apply to the release the site installed, and is its fix already in that release? - Send composer_json and composer_lock after composer update. Add patch_files for every patch, a local one read from disk and a URL one fetched by you. Every extra.patches entry is checked at its installed version in one call. - Do not download releases. Do not run patch --dry-run. - Send a package's patches together, in the order composer.json lists them. - items: up to 50 of {project, version, patch, title}, in place of the composer files. project: the drupal.org machine name (webform) or composer name (drupal/webform); drupal or core for Drupal core. version: the installed composer version (1.13.0, 2.0.0-beta4, 11.4.5). patch: the diff text, or its URL on www.drupal.org/files/issues or a git.drupalcode.org merge request or commit, ending .patch or .diff. - Per item. tag: the release tag matched, or unknown_version. applies_at: the -p level at which git apply passes, null when none. fuzzy: true when it applied only with reduced context and whitespace ignored; review it. hunks_failed: [{file, line, reason}]. reverse_applies: true when the patched lines are already in the tag. mr: the merge request state when the patch is an MR URL. merged_in_version. suggested. failure_mode: set when a patch applies and a file it touches no longer parses; keep the patch and fix the file. syntax_errors: the files behind it, one per file, path then the parser's message. - suggested:…

ParameterTypeRequiredDescription
itemsnull | arraynoUp to 50 patches to check. Each item has project, version, patch and title. project: webform or drupal/webform; drupal or core for Drupal core. version: the installed composer version, 1.13.0 or 11.4.5. patch: the diff text. This service downloads nothing, so fetch a URL patch yourself and send wha…
composer_jsonstringnoThe contents of composer.json. Send the text; this server cannot read your filesystem. Its extra.patches becomes the item list, one item per patch.
composer_lockstringnoThe contents of composer.lock. It gives the installed version of each patched package.
patches_filestringnoThe text of the patches file, for a site on cweagans/composer-patches 2.x that keeps its patches out of composer.json. The path is in its own extra.composer-patches.patches-file, patches.json by default.
patches_lockstringnoThe text of patches.lock.json, which 2.x of the patch manager writes and applies from. Send it to judge what the site actually applies: it answers alone, over extra.patches and the patches file.
patch_filesobjectnoThe text of every patch the site declares, keyed by the source as written: a path (patches/x.patch) or its base name, or the URL. Fetch a URL patch yourself and send its text under that URL. For a merge request .patch URL, send its .diff form under a second key too.
target_corestringnoCore the added code is checked against: a minor (11.4 or 11.4.x) or a release (11.4.5). A minor with no core release in the data is refused, and so is a major alone. latest checks no references. Defaults to the lock's drupal/core, else the version of a drupal item.

describe_dataset

Describe the dataset

Learn the dataset before writing SQL for query_dataset. Call it with no arguments first. Returns text. Prefer a typed tool when one answers the question. - No arguments: one line per view, the join map, the four invariants, the causes of empty results, and the recipe index. The invariants: dev-branch isolation, no SUM(usage), *_seq compares, adoption polarity. Empty results come from fqn forms, placeholders and machine name forms. - view= , or views=[…] for several in one call. Returns the columns with types and descriptions, an example filter that returns rows, and the joins into the view. - recipe= : a ready-to-run statement for a common question. Fill in the placeholders and run it with query_dataset. Recipes cover who uses a symbol, deprecated symbols per project, and a change record's adoption. Others cover symbols deprecated between minors, one project's deprecated uses, and change records between minors.

ParameterTypeRequiredDescription
viewstringnoOne view name. Returns its columns with types and descriptions, an example filter, and the joins into it. Leave empty for the overview.
viewsnull | arraynoUp to 8 views at once, documented one after the other in one call.
recipestringnoOne recipe id from the overview's index. Returns a ready-to-run query_dataset statement with its placeholders explained.

explain_issue_attention

Why a core issue has its attention

Answer "why does this Drupal core issue have this attention or this rank". For a list of issues, call list_core_issues. For what to review, call review_queue. - attention: from 0 to 100, the order a review queue lists issues in. It comes from the last nightly build, and `reach` from the last weekly one. - attention_parts: the numbers behind it. Percentiles, points, demand, mix and share run from 0 to 100. Points are rounded, so a sum can differ from its total by a tenth or two. - points: one entry per term, mix, priority and type. attention is the sum of their points. share is the most points a term can give. - signals: participants, recent_commenters, short_comments, duplicates and related. Each has count, percentile, weight and points. - participants counts the people who follow the issue or commented on it, bot accounts left out. - duplicates counts the closed duplicates linked to the issue. related counts its other linked issues and its child issues. - A percentile is the share of ranked issues with a lower count, with ties counted half. - A signal's points are its percentile times its weight, divided by the sum of the weights. - demand is the sum of the signal points. max_words bounds short_comments. - recent_commenters adds up the commenters. Each weighs 0.5 to the power of (days since their last comment, divided by half_life_days). - `reach`: projects_per_file counts the contrib projects per file of the issue's open merge requests. Its percentile ranks it among the is…

ParameterTypeRequiredDescription
nidintegeryesThe core issue's drupal.org node id: the id of a list_core_issues row or a review_queue head.

get_change_record

One change record

Return one core change record in full: title, flavour, target version, machine-checkable tracks, linked issues, linked core symbols, and contrib adoption counts. To find records, use list_change_records or the change_record_nids from what_changed. For one symbol's detail, use lookup_core_symbol. - flavour: coming-break (an API going away), coming-new-API (an API added), landed-but-still-relevant (shipped), policy-only (no code target, no adoption). - Adoption counts contrib development branches only. legacy: still calls the going-away side. migrated: moved to the new side. - Returns counts across every affected project plus a ranked head, outstanding first. For one project, use project_upgrade_report; do not raise top_projects. - symbols: the core API the record is about. role: from (going away) or to (replacement). Use the fqn with lookup_core_symbol. Empty means the catalog links no symbol; that is common.

ParameterTypeRequiredDescription
nidintegeryesThe change record's drupal.org node id, for example 3581981.
top_projectsintegernoHow many impacted projects to return in the ranked head. Defaults to 10, capped at 40.

list_change_records

Change records in a version range

List the core change records (the human write-ups) that target a range of core versions, tagged by flavour and ranked, with counts. For the symbol-level diff, use what_changed. For one record in full, use get_change_record. - Bounds are inclusive. Forms: 11.2, 11.2.x, 11.2.0, 11, 11.x. A bare major covers every minor of it. - Flavours: coming-break (an API going away), coming-new-API (an API added), landed-but-still-relevant (already shipped). policy-only records target no version and never appear here. - project: one machine name. Each record then has the count of that project's development branches still on the legacy side. - Returns the count of every record in range plus a ranked head. Each entry has its nid for get_change_record.

ParameterTypeRequiredDescription
fromstringyesLower core version bound, inclusive: 11.2, 11.2.x, 11.2.0, 11, or 11.x. A bare major (11) covers every minor of it.
tostringyesUpper core version bound, inclusive. Same forms as from.
projectstringnoOptional contrib project machine name. Narrows the list to records a development branch of that project still matches.
limitintegernoRecords in the head, 1 to 40 (default 15). Above the cap the call is refused.

list_class_relations

Contrib classes extending a core class

List the contrib classes that extend, implement or use a core class, interface or trait, one row per edge with file and line, paged. Example: "who subclasses FormBase". Call-site counts: list_symbol_users. The symbol's status: lookup_core_symbol. - target: with or without the leading backslash. An unknown target is refused with a pointer at lookup_core_symbol; a fragment there lists candidates. rel_kind: one of extends, implements, uses_trait. project: one machine name. - Development branches only. edge_count: every edge. project_count: projects. count: edges after the per_project cap. project_edges on each row: the project's full count. per_project=50 with project= lists one project in full. - Rows are ordered by project installs, project, source_fqn. Each row: project, branch, installs, source_fqn, rel_kind, file, line, project_edges. limit ≤ 100. next_offset is absent on the last page.

ParameterTypeRequiredDescription
targetstringyesThe core class, interface or trait, with or without the leading backslash: Drupal\Core\Form\FormBase.
rel_kindstringnoextends, implements, or uses_trait; any when absent.
projectstringnoRestrict to one project machine name.
per_projectintegernoEdges shown per project on a page, 1 to 50 (default 3). Each row has project_edges, the project's full count.
limitintegernoRows per page, 1 to 100 (default 50).
offsetintegernoSkip this many rows in the same ranked order. Pass the previous page's next_offset.

list_core_issues

Core issues by status, ask, subsystem and topic

Answer "which Drupal core issues match these filters". For "what should I review", call review_queue first: each of its buckets holds the arguments for this tool. - With no filter: the open core issues that have not moved to GitLab, last changed first. - The filters combine. A list filter keeps an issue that matches any of its values. - ask: what an issue waits for, such as tests, a reroll or a review by a role. subsystem and topic: where an issue belongs. - ask, subsystem and topic read the facets of the last daily build. They cover the issues that were open then. - An unknown ask, subsystem or topic is refused with the three closest values. - Row: id, title, url, status, priority, category, component, created and changed (UTC), attention. - attention: from 0 to 100, the order a review queue lists issues in. It is null for an issue the attention leaves out. - Under a subsystem filter, a row adds subsystems: each match with its source, component or mr_files. - count: every issue that matches. next_offset is absent on the last page.

ParameterTypeRequiredDescription
statusnull | arraynoKeep the issues in any of these drupal.org status codes: 8 needs review, 13 needs work, 14 reviewed and tested by the community.
any_statusbooleannotrue adds closed issues and issues moved to GitLab. The default is open issues only. It cannot go with status.
atnull | stringnoAn RFC 3339 time. With one status code, keep the issues that were in that status at that moment.
asknull | arraynoKeep the issues that ask for any of these. The values are the slugs of the issue_ask_tag table, for example tests or reroll.
subsystemnull | arraynoKeep the issues in any of these subsystems, for example Views. An issue is in a subsystem by its component or by the files a merge request changes.
topicnull | arraynoKeep the issues with any of these topics of the issue_topic table, for example Accessibility.
min_daysintegernoKeep the issues whose current status started this many days ago or earlier. It cannot go with at.
followerstringnoKeep the issues this drupal.org username follows.
sortstringnochanged (default): last changed first. attention: highest attention first, and the issues with no attention last.
limitintegernoIssues to return, 1 to 100 (default 20).
offsetintegernoSkip this many issues in the same order. Pass the previous page's next_offset.

list_projects

List projects by filters

List drupal.org projects after filters, largest install base first, paged. Examples: "top modules without an 11.4 branch", "themes over 10k installs without security coverage". One project: project_profile. Its pending records: project_upgrade_report. - Filters combine: type, min_installs, security (covered, not-covered, revoked), core_minor (+ missing), era (d8plus, pre_d8), member_of (+ max_depth). All apply to count and rows. - core_minor reads the composer constraint of the newest release on each development branch. A minor counts when any patch of it satisfies the constraint. An unreleased tip change is not seen. missing=true keeps projects with no branch declaring it: the upgrade gap list. It matches core_minors or next_minors, so 12.0.x works before Drupal 12 ships. - member_of keeps one root's members, direct and transitive; max_depth (needs member_of) drops members past that many requires away. A filtered list adds membership: root_release, complete, unread_count and unread (up to 20, package + cause). - Row: machine_name, title, type, installs, security, status, dev_branches (branch, installs, core_minors, next_minors, era), latest_release, cms_depth, member_of_count. core_minors: released minors. next_minors: unreleased minors that have a branch in Drupal core. missing_sections: the branch fields the data cannot fill. cms_depth is the row's membership depth under the cms root; member_of_count is how many roots include it. A project in no root has neither; a projec…

ParameterTypeRequiredDescription
typestringnoFilter: project_module, project_theme, project_distribution, project_general, project_theme_engine, project_translation.
min_installsintegernoFilter: reported install base at or above this.
securitystringnoFilter: security advisory coverage: covered, not-covered, revoked.
core_minorstringnoFilter: a core minor in 11.4.x form, released or unreleased (12.0.x). Keeps projects where the newest release on some development branch declares support for it. With missing=true, keeps projects with no such branch.
missingbooleannoInvert core_minor: keep projects whose development branches do not declare it.
erastringnoFilter: d8plus (Drupal 8+ code) or pre_d8, on any development branch.
member_ofstringnoFilter: keep only members of this root project's composer requires walk, for example cms.
max_depthnull | integernoWith member_of: drop members further than this many requires away, 1 or more.
limitintegernoProjects per page, 1 to 100 (default 50).
offsetintegernoSkip this many projects in the same ranked order. Pass the previous page's next_offset.

list_symbol_users

Projects using core symbols

List every contrib project using one core symbol, or any symbol in a class of symbols, one row per project, paged, with the matched symbols. lookup_core_symbol answers one symbol with a head of 30. - Pass fqn, or filters: kind, status (deprecated, scheduled_removal, removed), subsystem, removal_in (13.0), deprecated_in (11.4). Example: "top modules still calling a method going away in 13.0" is kind=method, status=scheduled_removal, removal_in=13.0. Filters take public symbols only. - Development branches only, from the evidence rollup as of evidence_built_at. count: projects. symbol_count: matched symbols. symbols_matched: those symbols, up to matched, most used first, each with stamps, projects_using and change_record_nids. - Rows are ordered by installs, occurrences, name. Each row: project, title, installs, branch, branches, symbol_count, occurrences, symbols. symbols: heaviest first, each with fqn, kind, removal_in, occurrences, files and change_record_nids for get_change_record. next_offset is absent on the last page.

ParameterTypeRequiredDescription
fqnstringnoOne core symbol, as lookup_core_symbol takes it. Pass this or a filter.
kindstringnoFilter: one symbol kind (function, method, class, library, hook, service …).
statusstringnoFilter: deprecated | scheduled_removal (still present) | removed (gone).
subsystemstringnoFilter: a core subsystem (Entity API, Views), case-insensitive. subsystem_coupling with no arguments lists them.
removal_instringnoFilter: removal stamp in this core minor (13.0). With status=scheduled_removal: still present, going away then.
deprecated_instringnoFilter: symbols deprecated in this core minor (11.4).
limitintegernoProjects per page, 1 to 100 (default 50).
offsetintegernoSkip this many projects. Pass the previous next_offset.
symbolsintegernoSymbols per project row, 1 to 30 (default 10), heaviest first.
matchedintegernoMatched symbols listed on the envelope, 1 to 50 (default 20).

lookup_core_symbol

One core symbol: status and users

Answer "is this core symbol safe to use, and who still uses it" for one symbol. A name that resolves to nothing returns the catalog entries containing it instead. Every user in pages: list_symbol_users. Changed between versions: what_changed. Code text: search_code. - fqn forms: a namespaced name with or without the leading backslash, a bare function or constant name, a prefixed pseudo-symbol, or a fragment. Pseudo-symbols: fn:check_markup, core:hook:preprocess_page, core:library:claro/drupal.shortcut. Fragments: fromRoute, EntityInterface. - Resolved (found true): symbol, with status flags. removed: gone. scheduled_removal: still present, @deprecated gives the removal version. deprecated, internal. placeholder: a catalog row no scanner located. audience: contrib, test_support, test or theme. usage: contrib development branches only, from the evidence rollup as of evidence_built_at. It has projects and branches counts, plus top_projects (≤ 30) by install base. change_records: records that touched the symbol, each with nid for get_change_record. - Not resolved (found false): count: catalog entries containing the fragment, case-insensitive, public symbols only; kind narrows. candidates: a head of up to candidates entries, each with fqn, kind, subsystem, stamps, projects_using, change_record_nids. Entries starting with the fragment come first, then by projects_using. Call again with one fqn.

ParameterTypeRequiredDescription
fqnstringyesCore symbol name, or part of one. A namespaced name with or without the leading backslash (Drupal\Core\Entity\EntityInterface, Drupal\Core\Recipe\RecipeRunner::installModule). A bare function or constant name (check_markup, DRUPAL_DISABLED). A prefixed pseudo-symbol as what_changed reports it (fn:c…
top_projectsintegernoHow many using projects to return in the ranked head. Defaults to 10, capped at 30.
candidatesintegernoWhen the name resolves to no symbol: how many catalog entries containing it to return, 1 to 50 (default 10).
kindstringnoRestrict candidates to one symbol kind (class, method, function, hook, library, service …).

project_profile

Project profile

Answer "what is this contrib project, how big is it, which core versions does it support, what moves with it" for one drupal.org project. Pending change records: project_upgrade_report. Core symbols it calls: list_symbol_users. - project: title, type, status, security, installs. installs_by_version: install base per contrib version. - dev_branches: each scanned development branch, with installs, core_constraint, core_minors, next_minors, latest commit date and era. core_constraint: the composer constraint of the newest release on that line, as drupal.org publishes it. The unreleased tip is excluded. core_minors: the released minors it admits; a minor counts when any patch satisfies. next_minors: the unreleased minors it admits, such as 12.0.x. An unreleased minor has a branch in Drupal core and no release yet. latest_core_minor: the newest released minor admitted. - releases: newest first, up to releases, each with core_compatibility and security. release_count, supported_branches. missing_sections: what the bundle could not fill. - related (summary): requires and required_by counts with the top 3, co_installed top 3 or a note, delta_12m per release line ("*" is the total). - member_of: how many roots pull this project in (count), and up to 10 {root, depth}, shallowest and alphabetical first. - include=["related"]: related becomes the full report. requires: every dependency, via info_yml or composer, core modules left out. required_by: paged by installs, with count and next_…

ParameterTypeRequiredDescription
projectstringyesdrupal.org project machine name, e.g. webform. The composer name drupal/webform is accepted.
releasesintegernoReleases to list, newest first, 1 to 30 (default 10). release_count says how many exist.
includenull | arraynoOptional sections: trend (monthly install series per release line) and related (full requires / required_by / co_installed lists, replacing the related summary).
monthsintegernoWith include trend: months of history, 1 to 120 (default 36), ending at the latest month in the data.
dependentsintegernoWith include related: dependents per page in required_by, 1 to 100 (default 20).
dependents_offsetintegernoWith include related: dependents to skip. Pass required_by.next_offset from the previous call.

project_upgrade_report

Project upgrade readiness

Answer "is this contrib project ready for a target core version, and what work is left". For one record's detail, use get_change_record. For a symbol's users, use list_symbol_users. - A record applies when it targets the target version or earlier, and a development branch of the project matched one of its tracks. - Verdict per record: outstanding (a branch still calls the going-away side), in_progress (some branches moved), adopted (all moved). - Returns counts by verdict, then a ranked head of outstanding records with file and line evidence from the project's own code. - Each entry has the count of other projects outstanding on the same record, and its nid for get_change_record. - removed_symbols: core symbols removed by the target, or scheduled for removal at or before it, that the project's development branches still reference. Each has occurrences, files, and the replacement when the catalog lists one. They need no change record: a class moved to another module, a service dropped. removed_symbol_count: the whole set. The head is newest removal first, then by occurrences. Test and test-support symbols are left out.

ParameterTypeRequiredDescription
projectstringyesContrib project machine name as it appears on drupal.org, for example webform. The composer name drupal/webform is accepted. Packages from other vendors are not in the dataset.
target_versionstringyesTarget core version: 11.2, 11.2.x, 11.2.0, 11, or 11.x. A bare major (11) covers every minor of it.
limitintegernoOutstanding records to return with evidence, 1 to 15 (default 8). Above the cap the call is refused.

query_dataset

Run SQL over the dataset

Run read-only DuckDB SELECTs over the dataset behind the other tools, for a question none of them asks. Call describe_dataset first; it lists the 44 views, their columns, joins and recipes. Prefer a typed tool when one fits. - statements=[…]: up to 5 statements in one call, one result or error each. - Result: columns, and rows as arrays, up to max_rows (≤ 500, default 100) and 16 KB. When truncated is true: aggregate, filter, or use LIMIT and OFFSET. One SELECT (or SHOW, DESCRIBE, FROM-first), no semicolon, 15 s limit, nothing outside the bundle. - Dev-branch isolation: JOIN contrib_branch and filter kind = 'dev_branch' AND project 'drupal' before counting projects. change_record_adoption, symbol_usage and core_symbol_evidence hold release tags too. core_symbol_evidence is the full rollup; symbol_usage is its string-scan subset. - Adoption polarity: legacy is still on the old API (not adopted); migrated is adopted. Versions are text: compare *_seq integers (major*1000+minor). Never SUM(usage) across branch rows. - Errors list the views, the columns of the views you used, or the join map. An empty result over an fqn without a leading backslash gets a hint. - The same views are downloadable as parquet under https://api.tresbien.tech/data/docs. Its cookbook targets api.duckdb plus prelude views this mirror does not have, so take recipes from describe_dataset.

ParameterTypeRequiredDescription
sqlstringnoOne DuckDB SELECT over the views describe_dataset lists. SHOW TABLES, DESCRIBE and FROM-first syntax also work. No semicolon, one statement. Use statements for several at once.
statementsnull | arraynoUp to 5 statements in one call. Results come back in order under results, each with its own rows or error. The byte budget is shared. Use this instead of sql for more than one statement.
max_rowsintegernoRows to return per statement, 1 to 500 (default 100). The result byte budget may cut a wide result sooner. truncated says so either way.

reroll_patch

Re-roll one patch against a release

Re-roll one composer patch that check_patches reported conflicts or fuzzy: a new diff that applies to the installed release. Call check_patches first for the whole list. Call this once per patch that came back conflicts or fuzzy. - Input: project, version, patch, title, base. patch is the diff text; this service downloads nothing, so fetch a URL patch yourself and send what came back. base is the release the site had before the upgrade. One patch per call. A hand-made patch without index lines is merged from base when it applies there, else from the newest tag it applies to. reroll.base is the tag used. - drop_tests: leave it out and the re-roll drops every file the release package omits. false keeps every hunk, for a site installed from source. reroll.dropped_paths lists what went. - reroll.verified true: the service already ran the check. reroll.verified_by: the command, the -p level and the tag. Write reroll.patch to the patch file and move on. Do not run git apply --check or patch --dry-run. Do not diff against a copy of the release. composer install is the test. - After a conflicts result, send the same project, version and patch again with resolutions, one per region of reroll.conflicts[].hunks. A resolution is {file, region, choice: release|patch}, {file, region, text}, or {file, region, delete: true}. The service re-merges with your decisions and apply-checks the diff. What comes back is the finished patch file: write it and run composer install. Do not read the rele…

ParameterTypeRequiredDescription
projectstringyesdrupal.org machine name (webform) or composer name (drupal/webform); drupal or core for Drupal core.
versionstringyesThe composer version installed, e.g. 1.13.0 or 11.4.5.
patchstringyesUnified diff text. This service downloads nothing, so fetch a URL patch yourself and send what came back. With the index lines git diff writes, it is merged onto the release. Without them (hand-made), it is merged from base when it applies there, else from the newest tag it applies to. reroll.base…
titlestringnoOptional, echoed back.
basestringnoOptional. The release the site had before the upgrade. Its commit sha from composer.lock (source.reference), or its composer version: 6.1.0 when version is 6.2.0. A patch without index lines is merged from it when it applies there, before the newest tags are tried.
target_corestringnoCore the added code is checked against: a minor (11.4 or 11.4.x) or a release (11.4.5). A minor with no core release in the data is refused, and so is a major alone. latest checks no references. Defaults to version for a core patch.
drop_testsnull | booleannoOptional. Leave it out and the re-roll drops every file the release package omits, read from the release's own archive. false keeps every hunk, for a site installed from source.
resolutionsnull | arraynoDecisions for the conflicted regions of a previous call on the same project, version and patch, one entry per region. region: the index in that file's conflicts[].hunks. {file, region, choice}: choice is release or patch. {file, region, text}: your own text for the region. {file, region, delete: tr…

review_queue

Core issues a person should review

Answer "what should I review in Drupal core". Give a drupal.org username, a role, or both. For a filtered list of core issues, call list_core_issues. - username: its roles come from core's MAINTAINERS.txt. It also gets the followed bucket: the issues it follows that wait for a review or a commit. - role: one of committer, release_manager, product_manager, framework_manager, subsystem_maintainer, topic_maintainer, reviewer, patcher, contributor. A stated role replaces the roles MAINTAINERS.txt gives. - scope: the subsystems or topics of the stated role. subsystem_maintainer and topic_maintainer need it. - Bucket: key, role, total, head and list_core_issues. role is empty for the followed bucket. - head: up to five issues, highest attention first, each with id, title, status and attention. status is a drupal.org status code. - list_core_issues: the arguments that list the bucket in full with that tool. Add limit and offset to page. - head_cut: true when the head lost issues to fit the result size. - identity: the username and the roles answered for, each with its scopes. - available_roles: the roles to state. It is present when MAINTAINERS.txt gives the username no role.

ParameterTypeRequiredDescription
usernamestringnoA drupal.org username. Its roles come from core's MAINTAINERS.txt.
rolestringnoA role to answer for, in place of the roles MAINTAINERS.txt gives.
scopenull | arraynoThe subsystems or topics of the stated role, for example Views or Accessibility.

scan_composer

Scan a site's composer files for a core upgrade

Which of a site's drupal/* packages need a new release for a target core, and which have none? Send composer.lock and composer.json once; do not query one package at a time. The answer is the release scan for every package, plus extra.patches as check_patches items. Constraints are read by composer's own semver library. - composer_lock: the whole file, or its path to get the upload command. A real lock does not fit a call. With the path, the files go from disk to the api by curl and only the plan comes back. composer_json: adds constraints and extra.patches. patches_file and patches_lock: the two documents a site on cweagans/composer-patches 2.x keeps its patches in, since such a site declares none under extra.patches. Sent as text with a lock path, the command lists every patch to send. target_core: 11.4, 11.4.5, or latest for the newest core the site's constraint allows. Without patches, target_from holds the package whose constraint decided latest. When the site requires no core package, latest is the installed core and target_from says so. Empty scans against the installed core (target_is_installed): what can be updated without a core upgrade. - installed_unknown: the release data does not have the installed version; the row offers no older release. installed_from_tag: the project's git tag answered instead. Neither is a finding about the site. - A sub-module has no releases of its own; drupal.org packages it as a metapackage built from its project's release. Its row say…

ParameterTypeRequiredDescription
composer_jsonstringnoThe contents of composer.json (require, require-dev, extra.patches). Send the text; this server cannot read your filesystem. Optional; without it there are no constraints and no patches.
composer_lockstringyesThe text of composer.lock. A real lock is too big to paste: send its path (composer.lock) instead. The answer is then the curl command that uploads the files from the site root.
patches_filestringnoThe text of the patches file, for a site on cweagans/composer-patches 2.x that keeps its patches out of composer.json. The path is in its own extra.composer-patches.patches-file, patches.json by default. A site on 2.x declares nothing under extra.patches, so without this its patches are invisible.
patches_lockstringnoThe text of patches.lock.json, which 2.x of the patch manager writes and applies from. Send it to judge what the site actually applies: it answers alone, over extra.patches and the patches file.
target_corestringnoCore to move to: a minor (11.4), a release (11.4.5), or latest for the newest core the site's own constraint allows. Leave empty to scan against the core the site already runs: which packages have a newer release for it.
patchesbooleannoJudge the site's patches in the same call: each one against the release its package would install for target_core. Returns a verdict per patch instead of items to check yourself.
patch_filesobjectnoThe text of every patch the site declares, keyed by the source as written: a path (patches/x.patch) or its base name, or the URL. Only needed with patches:true. Fetch a URL patch yourself and send its text under that URL. For a merge request .patch URL, send its .diff form under a second key too.
installed_coreobjectnoWhat each installed release requires of core, keyed by composer name. Read it from the site's own vendor directory: composer show -f json , or the drupal/core entry of its composer.json. Send it and the installed release is judged by what it declares.

search_code

Search contrib and core code

Search the source of every indexed contrib project, plus core, for a code pattern: which files, or with by_repo which projects. Who-uses-a-core-symbol counts: list_symbol_users or lookup_core_symbol. - query is a regex. Set literal for exact text with ( [ ] . $ : or a space, and put r: f: lang: case: sym: b: terms in filters. repos: project machine name list. The index runs RE2, which has no lookaround or backreferences. - .module, .install, .theme, .engine, .profile and .inc count as PHP: lang:php includes them and sym: resolves inside them. No language filter is applied for you. - Returns total_matches and total_files plus a head of files (repo, path, matching lines), limit ≤ 50. by_repo: (repo, file_count) rows from a pull of up to 1000 files; total_files is the ceiling; truncated when cut. A parse error returns the index's own message. - not_indexed: the repos the index lacks. A project with no installs and no recent release is not indexed.

ParameterTypeRequiredDescription
querystringyesCode to find, a regex unless literal is true. Filters may be inline when literal is false, else in filters. Example: hook_form_alter f:\.module$
literalbooleannotrue: query is matched as exact text. Use it for text with ( [ ] $ . such as #[Hook(. With literal, filters go in filters.
filtersstringnoZoekt filters appended as written: r: f: lang: b: sym: case:yes.
reposnull | arraynoRestrict to these projects, by machine name, in one query.
limitintegernoFiles to return, default 20, cap 50. Ignored with by_repo.
by_repobooleannoReturn repos as (repo, file_count) instead of files. Pulls up to 1000 files; total_files is the ceiling.

subsystem_coupling

Subsystem co-failure graph

Answer "what else tends to fail when a merge request touches this core subsystem" from CI history over about 9,000 core merge requests. With issue_nid: "which subsystems does this issue touch, and what co-fails with them". No arguments: the list of subsystems, the same one core_symbol.subsystem and list_symbol_users subsystem= use. - subsystem: a name (Views, case-insensitive) or a bucket (module:views, core_lib:Entity). An unknown one is refused, with the nearest matches. - Edge: touched_bucket → failing_bucket (+ subsystem), lift, co_fail_count, touched_count, failed_count, total_mrs. lift = P(fail | touched) − P(fail | any MR). Self edges are left out. - Floors min_lift (0.05) and min_co_fail (3) drop noise. count: edges above them. edges: up to limit (≤ 50), by lift. When nothing clears the floors, the strongest edges are listed with a note. - issue_nid: touched_subsystems first. A note explains an issue with no MR file data.

ParameterTypeRequiredDescription
subsystemstringnoA core subsystem (Views, Entity API) or a path bucket (module:views, core_lib:Entity). Leave both subsystem and issue_nid empty to get the list of subsystems.
issue_nidintegernoA drupal.org core issue nid: reports the subsystems its merge request touches, then the coupling edges from each.
min_liftnumbernoKeep edges with lift at or above this (default 0.05).
min_co_failintegernoKeep edges seen in at least this many merge requests (default 3).
limitintegernoEdges to return, 1 to 50 (default 20). count says how many pass the floors.

what_changed

Core API diff between versions

Answer "what changed in the core API between two core versions": symbols added, deprecated and removed, as ranked groups with counts. One symbol: lookup_core_symbol. Human write-ups: list_change_records. Every row of one bucket: flat=true with bucket, paged. Every row of the whole diff: the result's bulk block, with attach and sql for the published catalog. Write those rows to a file, so they stay out of the context window. - Bounds are inclusive. Forms: 11.2, 11.2.x, 11.2.0, 11, 11.x. The same version twice is one minor. Upgrading 11.2 → 11.4 means from=11.3. Buckets are independent. - Grouped (default): a head entry is a symbol group; grouped_by is change_record, name_prefix or singleton. head: groups, up to 5. count: symbols. group_count: groups. members: up to 3 per group, highest usage first. Group fields appear only when every member agrees. Rank: max_projects_using desc, then member_count magnitude, tier, count, key; ranked_by states it. When head_covers_all_callers is false, narrow with kind or min_projects_using, or page with offset. - Flat (flat=true, bucket=added, deprecated, removed): rows by projects_using then fqn. Each row: fqn, kind, subsystem, stamp, projects_using, removal_in, removal_kind, replacement when the catalog lists one, change_record_nids. count: public symbols in the bucket after filters. limit ≤ 100. next_offset is absent on the last page. - Filters apply to every count. internal_excluded and test_theme_excluded are counted apart and left out. u…

ParameterTypeRequiredDescription
fromstringyesLower core version bound, inclusive: 11.2, 11.2.x, 11.2.0, 11, 11.x. Upgrading from 11.2 means from=11.3.
tostringyesUpper bound, inclusive, same forms.
headintegernoGroups per bucket, 1 to 5 (default 5). Ignored when flat is true.
kindstringnoRestrict to one symbol kind (method, class, function, hook, service, library …). Applies to counts too.
min_projects_usingintegernoDrop symbols fewer than this many contrib projects call on a development branch. Applies to counts too.
offsetintegernoSkip this many groups per bucket (grouped) or rows (flat), in ranked order. Flat: pass the previous page's next_offset.
flatbooleannotrue: one bucket as flat symbol rows, paged, instead of three buckets of ranked groups. Needs bucket.
bucketstringnoWith flat: which side of the diff to list, added, deprecated, or removed. One bucket per call.
limitintegernoWith flat: rows per page, 1 to 100 (default 50). A page of very long fqns may come back shorter. next_offset always says where the next page starts.

wordpal_theme

WordPress theme conversion status

Answer "does this WordPress block theme convert to Drupal with WordPal". The WordPal gallery converts every block theme on wordpress.org each night. With slug: one theme and its routes. Without slug: counts by status and the most installed themes. - version: the theme version wordpress.org lists now. run: the run the gallery shows. run.theme_version is the version it converted, which can be older. - run.status (exact, diff, failed) is a verdict on the home page only. exact: its markup has no difference and its screenshot matches the WordPress screenshot. diff: the markup differs, the screenshots differ, or the two pages could not be compared. failed: no pair of home page screenshots, as when the conversion fails. - Filters combine: status (run.status), tag, q. count: themes that pass all three. by_status: themes that pass tag and q, per status. - Row: slug, name, installs, version, and run with status, routes_measured, routes_matching, markup_diffs_total. Up to eight pages are compared per theme. markup_diffs_total sums their markup differences. - theme: the row, plus author, tags and page_url. Its run adds plugins to install first, convert_command, reason when failed, wordpal_release and image links. - run.routes: route, markup_outcome (match, diff, skipped, error) and markup_diffs. A markup difference is an element, a class, an attribute or an inline style that differs. - A route whose screenshots were compared also has visual_outcome (match, diff, unstable, error), visual…

ParameterTypeRequiredDescription
slugstringnoA wordpress.org theme slug, for example twentytwentyfive. Returns that theme and its routes. The filters do not apply.
statusstringnoFilter: exact, diff or failed.
tagstringnoFilter: a wordpress.org tag slug, for example blog.
qstringnoFilter: part of a slug or of a theme name, in any case.
limitintegernoThemes to return, 1 to 50 (default 20).
offsetintegernoSkip this many themes in the same ranked order. Pass the previous page's next_offset.

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://mcp.tresbien.tech/mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http drupal-code-query https://mcp.tresbien.tech/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : drupal-code-query ; URL : https://mcp.tresbien.tech/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : drupal-code-query ; Server URL : https://mcp.tresbien.tech/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "drupal-code-query": {
      "url": "https://mcp.tresbien.tech/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "drupal-code-query": {
      "type": "http",
      "url": "https://mcp.tresbien.tech/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "drupal-code-query": {
      "url": "https://mcp.tresbien.tech/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "drupal-code-query": {
      "httpUrl": "https://mcp.tresbien.tech/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.drupal-code-query]
url = "https://mcp.tresbien.tech/mcp"

Source : Registre officiel MCP · retrieved 29 Nov 2026. L’Atlas adds no data beyond this source and its own tests.