Install
Works with Drupal: ^10.5 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Known issue
Enable mcp_tools first, then a transport, as the Quick Start does. Enabling them in one step, such as drush en mcp_tools mcp_tools_stdio or drush en mcp_tools_stdio on a site without mcp_tools, stops with Class "Drupal\mcp_tools\Mcp\Sdk" not found. Nothing is changed when that happens. Run the two commands one after the other. This is fixed in 1.0.0-beta21.
This release fixes a bug that could overwrite paragraph text, adds three
access checks that were missing, makes error messages reach clients built
on the official JS SDK, speaks the newest MCP protocol revision, makes
the module work with current Tool API, and makes a normal Composer
install clean again.
Update with:
composer update drupal/mcp_tools drupal/tool mcp/sdk code-wheel/mcp-tool-gateway enshrined/svg-sanitize -W
drush cr
## Check your paragraphs if you translate with these tools
mcp_translate_content could write the translated text over the source text
of a paragraph. This happened when all languages of a node share the same
paragraphs. That is the usual Paragraphs setup (the paragraph field is not
translatable). mcp_update_content with a language did the same to a shared
paragraph that had no translation yet.
Shared paragraphs now get their own translation, and the source text is left
alone. Sites where each language has its own copy of the paragraphs (for
example Layout Paragraphs with a translatable paragraph field) were not
affected.
If you used these tools on shared paragraphs since 1.0.0-beta16, please
check the source text of those paragraphs.
## The 2026-07-28 revision of MCP
With mcp/sdk 0.9 or 0.10 the server also speaks the newest revision of the
protocol. It has no handshake and no sessions: every request stands alone.
Nothing changes in how you run the server. The same drush command and the
same HTTP URL answer both old and new clients.
- server/discover tells a client what the server supports.
- The delete confirmation comes back as an "input required" result, and
the client answers on a retry of the call.
- Progress for bulk calls arrives with the call's own response.
- Over HTTP no session is created, and API key scopes apply to each
request.
MCP Tools now also installs next to MCP Server 2.0.0-beta7 and later,
which need mcp/sdk 0.9. On its own it runs on mcp/sdk 0.10, the newest.
## Works with current Tool API
Tool API 1.0.0-beta10 started to check each tool result against the tool's
declared outputs. Some of our tools left an output unset, so the call failed
after the tool had already run. Examples: mcp_cache_clear_all,
mcp_tools_check_cron_status, mcp_cron_get_status and
mcp_get_translatable_content. All of these work now. Tested with Tool API
beta12 on Drupal 10.6 and 11.4, and with beta9 on Drupal 11.4.
## Security: a clean Composer install
Recent Composer versions refuse to install packages that have a security
advisory. Until now the module could only use such versions:
- mcp/sdk was capped at 0.6 (CVE-2026-53965 affects 0.5.0 to 0.7.0). The bug
is in the SDK's client code, which MCP Tools does not use. mcp/sdk 0.7.1,
0.9 and 0.10 are now allowed. This needs code-wheel/mcp-tool-gateway 1.2.1.
- enshrined/svg-sanitize was capped at 0.22.0, which has three advisories.
1.x is now allowed. It cleans SVG files fetched by mcp_tools_remote_media.
A fresh install now gets mcp/sdk 0.10.0 and svg-sanitize 1.1.1, and
composer audit reports nothing. mcp/sdk 0.8 is skipped: it has an advisory
of its own, fixed in 0.9.0.
## Security: three access checks were missing, three tools mislabeled
- mcp_tools_ai ran tools without the access check. The bridge to Drupal AI
called the tool directly, and neither Drupal AI nor Tool API checks
access at that point. A user who could reach an AI assistant or agent
with these tools could run the exposed ones (read tools by default)
without the tool's permission. The bridge now checks access first.
- Resources and the site brief prompt had no access check. They showed
site status, config and node summaries to any connected client. They now
need the read scope and the permission of the matching tool category
(site_health, config, content). In the site snapshot, content types,
role names and changed config names need the structure, users and config
permissions.
- Other modules' tools skipped scopes, read-only mode and config-only
mode. This only matters with "all tools" on (--all-tools, or
include_all_tools in a server profile), which is off by default. Then
the server also runs Tool API tools of other modules, and those ran
without the three checks: on a test site with Tool Belt, a session with
--scope=read could create a node. The same rule now applies to them.
mcp_tools_ai had the same gap and has the same fix.
- mcp_block_user, mcp_activate_user and mcp_layout_allow_custom were
declared as read operations. The server told clients they change
nothing, and some clients run such tools without asking. Config-only
mode did not stop the two user tools: with that mode on, a session with
the write scope could still block or activate an account. A read-only
session was refused all along. All three are write operations now.
## Your model now sees our error messages
Clients built on the official JS SDK check every result against the
tool's output schema, and throw away a result that does not match. Our
error results did not match. So after bad input or a refused call the
model got "Structured content does not match the tool's output schema"
in place of our message. Two successful results failed the same check:
the site status once maintenance mode had been saved, and an empty map.
All of them pass now. We run the JS SDK client against every read tool
that needs no input, on a site with every supported contrib module: 227
tools listed, 62 called, none rejected.
## Tools that did not work
Until now most tools were only tested with stand-ins for Drupal's own
classes. For this release every tool was run for real: the official JS
SDK client called all 227 through the server, on a site with every
supported contrib module: on Drupal 11.4 with SQLite, MySQL 8.4 and
PostgreSQL 16, and on Drupal 10.6 with MySQL 8.4. After each write the
test looks at the site itself, and every write is also tried with a
read-only session and has to be refused. These tools failed, and work
now:
- mcp_theme_enable and mcp_theme_disable failed on every call.
- mcp_add_view_display failed on every call.
- The redirect tools failed as soon as one redirect existed. A create
saved the redirect and then reported an error. mcp_redirect_get no
longer returns count: the Redirect module does not keep one.
- mcp_pathauto_create failed for a pattern limited to one bundle, and
the bundles of existing patterns were listed wrong.
- mcp_moderation_get_content_by_state failed on every site with a
workflow. Content counts under the state of its newest revision.
- mcp_layout_add_block and mcp_layout_remove_block failed on Drupal 10.
- mcp_cache_rebuild failed for the type "theme" on Drupal 11.
- mcp_create_view and mcp_create_content_list_view ignored the sort
values they document (every view sorted newest first), made a view of
taxonomy terms that failed on its first query, and made a view that
could not be shown when given a field such as body. A sort or field a
view cannot have is now refused. The show_title input did nothing and
works now.
- mcp_structure_add_field and mcp_paragraphs_add_field crashed on a list
of numbers.
- mcp_structure_list_field_types offered field types whose module is
off. It lists only what the site has.
- mcp_create_media_type documented the sources "audio" and "video",
which Drupal calls "audio_file" and "video_file". Both names work now.
- mcp_scheduler_publish and mcp_scheduler_unpublish said "scheduled" for
content types where Scheduler is switched off, so nothing ever
happened. They now refuse those.
- mcp_create_content dropped a field it did not know and still reported
success. It now names the field and creates nothing.
- The batch tools and mcp_redirect_import said "success" when every item
in the batch had failed. That is a failure now, and it names the first
error.
- With a client that can ask its user, mcp_delete_content asked for a
confirmation before it checked access. A session that may not delete is
now refused without a question.
- mcp_analysis_performance returned empty table names on MySQL 8.
- drush mcp-tools:client-config printed a path to drush that does not
exist on a standard Composer site.
- Saving the remote endpoint's settings form removed the execution user,
and the form could not enable the endpoint. Sites set up with drush
were fine until someone saved the form.
- In a long STDIO session, a field an admin added in the UI was unknown
to the server and its value was dropped. It is known on the next call
now.
## Other fixes
- mcp_tools_get_system_status shows Drupal core's own checks on Drupal
11.2 and later. It showed none: on a Drupal 11.4 test site it reported 1
check and no errors where the status report page had 29 checks and 2
errors.
- drush mcp-tools:serve --server=
uses the profile's gateway mode
and all-tools setting. It ignored both.
- In a long STDIO session, a mode switched on in the settings, a
permission removed from the user's role and a node changed by someone
else all show on the next call. Progress updates keep working after a
cache clear.
- mcp_metatag_set_entity now saves the tags. Before, it said it worked but
saved nothing. (#3613060, thanks longwave)
- The SDK no longer fills the site log with debug rows on every remote
request, or with a warning on most tool calls on Drupal 11. (#3613065,
thanks julien)
- Tool messages no longer show up as strings to translate. (#3613064,
thanks julien)
- The STDIO server now sees State changes made by other processes, like a
new cron run. (#3613067, thanks whathowllc) The same goes for config and
content: a site name or node title changed by an editor no longer stays
stale until the client restarts the server.
- drush mcp-tools:serve --all-tools starts again when another module's
tools are installed (it stopped on Tool Belt). MCP Tools can serve other
modules' Tool API tools next to its own.
- The STDIO server keeps its scopes after mcp_cache_clear_all. Before, a
session started with --scope=read,write refused every write after that
tool ran, until it was restarted.
- Validation errors name the property and the problem. Before, they had
unfilled blanks such as "({missing})".
- Gateway mode accepts a tool call with an empty arguments object, which
is what most clients send for a tool with no inputs.
- Write tools no longer report failure after they worked. mcp_update_content
returned revision_id as text where it declares a number. Through MCP
Server 2.0.0-beta7 the node changed and the call still came back as an
error.
- mcp_tools_get_site_status reports the real number of modules. It said 0.
- mcp_tools_get_system_status works when a module reports severity with
the enum Drupal 11.2 added. It failed on such sites.
- mcp_tools_get_system_status no longer prints "Array" for some status
report entries on Drupal 10.
- mcp_cache_get_status lists the real cache bins. It listed cache backends
as bins, and failed on SQLite.
- mcp_analysis_performance no longer fails on databases other than MySQL
and MariaDB. Tested on SQLite and PostgreSQL 16. Table sizes are only
read on MySQL and MariaDB.
- Error text from an exception no longer reaches clients HTML-escaped
(" for a quote).
- The server only advertises what it does. It claimed logging,
completions and subscriptions it does not have.
- mcp_get_translatable_content works on Tool API beta10 and later.
(#3613068, thanks julien)
- mcp_paragraphs_list_types and mcp_paragraphs_get_type work for paragraph
types without an icon.
- mcp_structure_scaffold_content_type works again. Tools with only optional
inputs accept a call with no arguments. An empty string for an optional
filter now means "no filter". (MRs !5, !6, !7, thanks ggerard)
- The field type list no longer shows "Array" as a description.
- mcp_tools_sitemap installs again with simple_sitemap 4.2 and later.
## Smaller and faster
- Gateway discovery without a query returns a short overview instead of the
whole catalog. Results are compact JSON.
- Tool schemas are cached, so the HTTP server builds faster on each request.
## Upgrade notes
- Requires Tool API 1.0.0-beta9 or later. Those Tool API versions need
Drupal 10.5 or later, so that is the minimum now.
- Outputs now use Tool API's OutputDefinition. This removes a deprecation
notice for each of the 963 outputs on every cache rebuild. (#3613062,
thanks michaellander)
- Gateway mode: the three gateway tools have new names,
mcp_tools_discover_tools, mcp_tools_get_tool_info and
mcp_tools_execute_tool. The old names had a slash, which the MCP naming
rule does not allow. Update any client setting or prompt that names
them.
- Resources and the site brief prompt now need permissions. If you use
them, give the account your MCP clients run as the "Use MCP ..."
permissions for site_health, config and content.
- The server now sends short instructions to the client with initialize.
- mcp_block_user, mcp_activate_user and mcp_layout_allow_custom are write
tools now. They need the write scope, as they did in practice, and
config-only mode applies to them.
- mcp_create_content refuses a field the content type does not have.
Before, it left the field out and reported success.
- The scheduler tools refuse content types that do not have scheduling
switched on in Scheduler.
- A batch call in which every item fails now comes back as an error.
Before, it came back as a success with the errors inside.
- No update hooks. All other tool names and inputs are unchanged.
- One output type changed: existing_translations in
mcp_get_translatable_content is now advertised as an array. It always
returned one.