mcpserver.lol
registry/drupal-code-query
Connection check verified live · 26h ago

drupal-code-query

Drupal core API changes, contrib usage, upgrade readiness, patch verdicts, code search, SQL.

Tools 16
GitHub stars
Installs / wk
Licence
Transport streamable-http
Last checked 26h ago

Tools & capabilities

16 tools

Read from the running server on 26h ago.

check_patches read-only itemspatch_filestarget_corecomposer_jsoncomposer_lock
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 pa…
describe_dataset read-only viewviewsrecipe
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 p…
get_change_record read-only nid*top_projects
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, u…
list_change_records read-only to*from*limitproject
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…
list_class_relations read-only limitoffsettarget*projectrel_kindper_project
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 c…
list_projects read-only eratypelimitoffsetmissingsecurity +2
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…
list_symbol_users read-only fqnkindlimitoffsetstatusmatched +4
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 w…
lookup_core_symbol read-only fqn*kindcandidatestop_projects
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 pag…
project_profile read-only monthsincludeproject*releasesdependentsdependents_offset
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_re…
project_upgrade_report read-only limitproject*target_version*
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…
query_dataset read-only sqlmax_rowsstatements
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 29 views, their columns, joins and…
reroll_patch read-only basepatch*titleproject*version*resolutions +1
Re-roll one composer patch that check_patches reported conflicts: a 3-way merge of the patch onto the installed release, returned as a new diff. Call check_patches first for the wh…
scan_composer read-only patchespatch_filestarget_corecomposer_jsoncomposer_lock*installed_core
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 an…
search_code read-only limitquery*reposby_repofiltersliteral
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…
subsystem_coupling read-only limitmin_liftissue_nidsubsystemmin_co_fail
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…
what_changed read-only to*flatfrom*headkindlimit +3
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-up…