{"id":"tech.tresbien/drupal-code-query","slug":"tech-tresbien-drupal-code-query","title":"Drupal Code Query","description":"Drupal core API changes, contrib usage, upgrade checks, patches, code search, SQL, WordPal themes.","version":"0.48.0","publisher":{"kind":"domain","id":"tresbien.tech","label":"tresbien.tech","url":"https://tresbien.tech"},"website":"https://mcp.tresbien.tech","repository":"","remotes":[{"type":"streamable-http","url":"https://mcp.tresbien.tech/mcp"}],"packages":[],"published":"2026-10-19","updated":"2026-10-19","status":"online","auth":"","latency_ms":1449,"checked":"2026-11-19","uptime":100,"checks":3,"tools":[{"name":"check_patches","title":"Check composer patches against a release","description":"Does each composer patch still apply to the release the site installed, and is its fix already in that release?\n- 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.\n- Do not download releases. Do not run patch --dry-run.\n- Sen","read_only":true},{"name":"describe_dataset","title":"Describe the dataset","description":"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.\n- 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, pl","read_only":true},{"name":"get_change_record","title":"One change record","description":"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.\n- flavour: coming-break (an API going away), coming-new-API (an API added), landed-but-still-relevant (","read_only":true},{"name":"list_change_records","title":"Change records in a version range","description":"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.\n- Bounds are inclusive. Forms: 11.2, 11.2.x, 11.2.0, 11, 11.x. A bare major covers every minor of it.\n- Flavours: coming-break (an API going away), coming-new-API (an API added","read_only":true},{"name":"list_class_relations","title":"Contrib classes extending a core class","description":"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.\n- target: with or without the leading backslash. An unknown target is refused with a pointer at lookup_core_symbol; a fragment there lists candidates. re","read_only":true},{"name":"list_projects","title":"List projects by filters","description":"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.\n- Filters combine: type, min_installs, security (covered, not-covered, revoked), core_minor (+ missing), era (d8plus, pre_d8), member_of (+ max_dept","read_only":true},{"name":"list_symbol_users","title":"Projects using core symbols","description":"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.\n- 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 kin","read_only":true},{"name":"lookup_core_symbol","title":"One core symbol: status and users","description":"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.\n- fqn forms: a namespaced name with or without the leading backslash, a bare function or constant name, a prefixed pseudo-symbol, or ","read_only":true},{"name":"project_profile","title":"Project profile","description":"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.\n- project: title, type, status, security, installs. installs_by_version: install base per contrib version.\n- dev_branches: each scanned development branch, with installs, c","read_only":true},{"name":"project_upgrade_report","title":"Project upgrade readiness","description":"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.\n- A record applies when it targets the target version or earlier, and a development branch of the project matched one of its tracks.\n- Verdict per record: outstanding (a branch still calls the going-away side), in_prog","read_only":true},{"name":"query_dataset","title":"Run SQL over the dataset","description":"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 36 views, their columns, joins and recipes. Prefer a typed tool when one fits.\n- statements=[…]: up to 5 statements in one call, one result or error each.\n- Result: columns, and rows as arrays, up to max_rows (≤ 500, default 100) and 16 KB. When truncate","read_only":true},{"name":"reroll_patch","title":"Re-roll one patch against a release","description":"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.\n- 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 ","read_only":true},{"name":"scan_composer","title":"Scan a site's composer files for a core upgrade","description":"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.\n- composer_lock: the whole file, or its path to get the upload command. A real","read_only":true},{"name":"search_code","title":"Search contrib and core code","description":"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.\n- 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 looka","read_only":true},{"name":"subsystem_coupling","title":"Subsystem co-failure graph","description":"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.\n- subsystem: a name (Views, case-insensitive) or a bucket (module:","read_only":true},{"name":"what_changed","title":"Core API diff between versions","description":"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","read_only":true},{"name":"wordpal_theme","title":"WordPress theme conversion status","description":"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.\n- 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.","read_only":true}],"server_info":{"name":"drupal-code-query","version":"0.48.0"},"category":"data","tags":["developer","web-search","project"],"kind":"remote","source":"registry","submitted":{},"first_party":true,"domain_rank":null,"score":100,"indexable":true,"first_seen":"2026-08-17","stars":0,"badges":[],"sponsor":null,"page":"https://agentsindex.org/agents/tech-tresbien-drupal-code-query/"}