IDE_PORT=8090
Steps
-
Install Meshagent CLI
-
Sign Up and Authenticate
See CLI Getting Started for account creation and login. -
Start the MCP Server as an Agent in a Meshagent Room
- This command starts a Meshagent Room named
test
and attaches a JetBrains MCP server as a tool agent. - The
Room
and all its services are automatically closed when inactive, removing all related tools and chatbots.
- This command starts a Meshagent Room named
-
Join with a Chatbot That Can Use the JetBrains Toolkit
- This launches a chatbot in the same Room, making the MCP JetBrains tools accessible via chat.
- Multiple toolkits can be linked to the same agent concurrently.
- A Room link will be displayed in the output.
-
Try It Out
- Open the Room link in your browser provided by Step 4.
- Send a message to the agent chatbot to interact with JetBrains tools.
Project Level Deployment: Persistent Services for Every Room
For production scenarios and persistent tool access, you can deploy MCP server tools and a chatbot once per project—making them available in all Rooms under that project, without managing local processes.Steps
-
Create the MCP JetBrains Service (Agent)
- This ensures the JetBrains MCP server container is brought up automatically in any new Room.
-
Create the Chatbot Service Linked to the MCP Tool
- This launches an AI chatbot service able to leverage the exposed JetBrains tools.
- Both services are auto-provisioned for every new Room in your Meshagent project.
Tools Available
The JetBrains MCP Server provides an extensive suite of automation tools for JetBrains IDEs (IntelliJ, PyCharm, WebStorm, Android Studio, and more):Tool | Short Description |
---|---|
create_new_file_with_text | Creates a new file at the specified path within the project directory and populates it with the provided text |
execute_action_by_id | Executes an action by its ID in JetBrains IDE editor |
execute_terminal_command | Executes a specified shell command in the IDE’s integrated terminal |
find_commit_by_message | Searches for a commit based on the provided text or keywords in the project history |
find_files_by_name_substring | Searches for all files in the project whose names contain the specified substring |
get_all_open_file_paths | Lists full path relative paths to project root of all currently open files |
get_all_open_file_texts | Returns text of all currently open files in the JetBrains IDE editor |
get_debugger_breakpoints | Retrieves a list of all line breakpoints currently set in the project |
get_file_text_by_path | Retrieves the text content of a file using its path relative to project root |
get_open_in_editor_file_path | Retrieves the absolute path of the currently active file |
get_open_in_editor_file_text | Retrieves the complete text content of the currently active file |
get_progress_indicators | Retrieves the status of all running progress indicators |
get_project_dependencies | Get list of all dependencies defined in the project |
get_project_modules | Get list of all modules in the project with their dependencies |
get_project_vcs_status | Retrieves the current version control status of files in the project |
get_run_configurations | Returns a list of run configurations for the current project |
get_selected_in_editor_text | Retrieves the currently selected text from the active editor |
get_terminal_text | Retrieves the current text content from the first active terminal |
list_available_actions | Lists all available actions in JetBrains IDE editor |
list_directory_tree_in_folder | Provides a hierarchical tree view of the project directory structure |
list_files_in_folder | Lists all files and directories in the specified project folder |
open_file_in_editor | Opens the specified file in the JetBrains IDE editor |
replace_current_file_text | Replaces the entire content of the currently active file |
replace_file_text_by_path | Replaces the entire content of a specified file with new text |
replace_selected_text | Replaces the currently selected text in the active editor |
replace_specific_text | Replaces specific text occurrences in a file with new text |
run_configuration | Run a specific run configuration in the current project |
search_in_files_content | Searches for a text substring within all files in the project |
toggle_debugger_breakpoint | Toggles a debugger breakpoint at the specified line in a project file |
wait | Waits for a specified number of milliseconds |
Tools Details
Reference Links
- Meshagent: https://www.meshagent.com/
- Meshagent Documentation: https://docs.meshagent.com
- Meshagent MCP JetBrains Docker Image: https://hub.docker.com/r/meshagent/mcp-jetbrains
Learn more about the Model Context Protocol and its secure management using Docker here.