What is Claude Code?
The Claude Code plugin is Anthropic’s integration of Claude Code
into the JetBrains ecosystem. Explore its documentation for details.
WireMock MCP server
WireMock, via its CLI tool, provides its own MCP server implementation with which you can
manage and work with your WireMock Cloud resources from any MCP-compatible AI tool.
In order to be able to use the WireMock MCP server in Claude Code, the server configuration must be added to one of its configuration files.
The IDE plugin helps simplify that process, and it provides two ways of managing the MCP server configuration:
- on-demand, one-click addition, update and removal via the plugin settings
- automatic update at certain points of the user workflow
This integration supports Claude’s user, project and local scopes.
On-demand configuration
On-demand actions are available at two distinct locations:
- via a balloon notification after each project launch
- via the plugin settings at Settings | Tools | WireMock
Balloon notification
First of all, this notification is tied to the presence of the Claude Code IDE plugin. It is displayed only when
the Claude plugin is installed.
If that condition is satisfied, the notification appears after each project launch (that is to support the local and project scopes),
but only once per project to minimize distraction.
The balloon provides the following set of actions:
- Add server to user scope
- Add server to project scope
- Add server to local scope
- Don’t show again
The addition actions open a new tab in the Terminal tool window
(based on the shell configured in Settings | Tools | Terminal | Application Settings | Shell path),
and execute the claude mcp add ... CLI command with the proper configuration for the MCP server.
By choosing Don’t show again, the balloon will no longer be displayed for any projects in the future.
Plugin settings
MCP related options are available in the MCP Server Configuration section of the WireMock plugin settings.
After choosing the Claude Code scope you want to manage the MCP server of, you can use the following options:
- Add WireMock MCP Server (
):
executes the claude mcp add ... CLI command in a new Terminal tab
- Update WireMock MCP Server (
):
executes the claude mcp remove ... and claude mcp add ... CLI commands in a new Terminal tab
- Delete WireMock MCP Server (
):
executes the claude mcp remove ... CLI command in a new Terminal tab
- Upon clicking on these buttons, the CLI commands are not executed immediately. Instead, the last selection is saved,
and the corresponding CLI command(s) will be executed after closing the Settings.
- If you change your mind, and don’t want the selected action to be executed, you can reset your selection using the
settings page’s native Revert changes feature at the top.
To support the manual configuration of the MCP server in Claude Code, you can also use the
Copy WireMock MCP Server to Clipboard (
)
button.
In order to have the latest plugin settings values generated into the MCP server configuration, save the settings before using these actions.
Authenticators for the make_http_request tool
Besides on-demand configuration options, the plugin settings also provides a way to configure the authenticators for the
make_http_request MCP tool in the same way they can be configured in WireMock CLI.
In order to use the latest authenticators value, save the settings, then use one of the on-demand actions, or log in to WireMock Cloud.
Automatic updates
There are a few scenarios when the WireMock MCP server configuration is updated automatically in all supported Claude Code config files.
This is to make sure that the configuration stays up-to-date with the current plugin settings, login status, and the currently used IDE.
The update happens in the background without calling any CLI commands, and it is due to how the server configuration is built.
See the MCP server structure section below for details.
These scenarios are:
- you log in to your WireMock Cloud account in the IDE
- you log out from your account
- the IDE is launched
MCP server structure
The server configuration built and managed by the WireMock plugin is different from what one would use when
using the MCP server via WireMock CLI.
This is thanks to the fact that this configuration uses the WireMock Cloud credentials
and settings that are stored in the IDE, and not the data set in a local installation of WireMock CLI.
This makes it better integrated with the IDE, and provides a smoother user experience when it comes to configuring the server.
Because of the way the server configuration is built, and is updated automatically, manual editing,
especially of the command and args attributes, is not recommended.
The server itself is registered and managed with the name wiremock, all lowercase letters, and is built as follows:
{
"mcpServers": {
"wiremock": {
"command": "<path of the JetBrains Java Runtime>",
"args": [ "-classpath", "<classpath string>", "com.intellij.wiremock.ai.mcp.runner.McpServerRunnerKt" ],
"env": {
"API_KEY": "<api key>",
"USER_ID": "<user id>",
"EMAIL_ADDRESS": "<email address>",
"CLOUD_API_URL": "<custom api url>",
"AUTHENTICATORS": "<authenticators config>"
}
}
}
}
In summary, the plugin provides a class that configures and executes the MCP server, and it builds a Java CLI command to
execute that class. It also takes required input values as environment variables:
API_KEY: the user’s API key
USER_ID: the user’s user ID
EMAIL_ADDRESS: the user’s email address
CLOUD_API_URL: WireMock Cloud API URL when using the on-premise edition
AUTHENTICATORS: the authenticators YAML configuration converted into a JSON string. See the next section for details.
The API key, user ID, email address and authenticators are populated when you are logged in to your WireMock Cloud account, otherwise they are left empty.
Troubleshooting
Logging
The MCP server runner maintains a log file for each execution of the MCP server. If you run into an issue, you can look
into them for additional details:
- Windows:
%LOCALAPPDATA%\wiremock-mcp-server\logs (typically C:\Users\{username}\AppData\Local\wiremock-mcp-server\logs)
- macOs:
/Users/{username}/Library/Logs/wiremock-mcp-server
- Linux:
~/.local/state/logs/wiremock-mcp-server (typically /home/{username}/.local/state/logs/wiremock-mcp-server)
Using the MCP server with a local CLI installation
Although the plugin’s own configuration mechanism provides a smoother user experience better integrated with the IDE and the plugin,
you certainly can use the MCP server via a local installation of WireMock CLI. For that, please refer
to the Installing WireMock Cloud AI documentation
on the actual server configuration to register.
Opting out from using the MCP server
If you no longer want to use the WireMock MCP server, you can either remove it via the WireMock plugin settings as
mentioned in the Plugin settings section, or you can disable/remove it directly in Claude Code.