Skip to content

Commit 4fa4df5

Browse files
committed
Diable MCP server by default
1 parent d415412 commit 4fa4df5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ Analyze comprehensive module dependency relationships including direct/reverse d
389389

390390
### Setup and Configuration
391391

392-
The MCP server starts automatically when ElixirLS launches (unless disabled). The server uses a predictable port assignment:
392+
The MCP server starts automatically when ElixirLS launches (if enabled). The server uses a predictable port assignment:
393393

394394
- **Default behavior**: Port is calculated as `3789 + hash(workspace_path)` to ensure different workspaces use different ports
395395
- **Custom port**: Can be set via the `elixirLS.mcpPort` setting
@@ -434,7 +434,7 @@ Replace `/absolute/path/to/elixir-ls/` with the actual path to your ElixirLS ins
434434

435435
The MCP server can be configured via ElixirLS settings:
436436

437-
- **`elixirLS.mcpEnabled`** (boolean, default: `true`): Enable or disable the MCP server
437+
- **`elixirLS.mcpEnabled`** (boolean, default: `false`): Enable or disable the MCP server
438438
- **`elixirLS.mcpPort`** (integer, optional): Set a specific port for the MCP server. If not set, uses `3789 + hash(workspace_path)` for predictable port assignment per workspace
439439

440440
## Automatic builds and error reporting

apps/language_server/lib/language_server/server.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2408,7 +2408,7 @@ defmodule ElixirLS.LanguageServer.Server do
24082408
end
24092409

24102410
enable_mcp =
2411-
Map.get(settings, "mcpEnabled", true) == true
2411+
Map.get(settings, "mcpEnabled", false) == true
24122412

24132413
mcp_port = calculate_mcp_port(settings, state.root_uri)
24142414

0 commit comments

Comments
 (0)