You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-64Lines changed: 0 additions & 64 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,16 +169,6 @@ This stdio interaction allows for tight integration with local development tools
169
169
```
170
170
If the HTTP server is enabled, it will start listening on the port specified by `MCP_SERVER_PORT` (default 8000). Otherwise, it will operate in stdio mode.
171
171
172
-
### Docker Deployment
173
-
174
-
1. **Clone the repository** (if not already done).
175
-
2. **Configure:** Ensure you have a `.env` file with your Wazuh credentials in the project root if using the API, or set the environment variables directly in the `docker-compose.yml` or your deployment environment.
176
-
3. **Build and Run:**
177
-
```bash
178
-
docker-compose up --build -d
179
-
```
180
-
This will build the Docker image and start the container in detached mode.
181
-
182
172
## Stdio Mode Operation
183
173
184
174
The server communicates via `stdin` and `stdout` using JSON-RPC 2.0 messages, adhering to the Model Context Protocol (MCP).
@@ -348,60 +338,6 @@ Example interaction flow:
348
338
}
349
339
```
350
340
351
-
## Running the All-in-One Demo (Wazuh + MCP Server)
352
-
353
-
For a complete local demo environment that includes Wazuh (Indexer, Manager, Dashboard) and the Wazuh MCP Server pre-configured to connect to it (for HTTP mode testing), you can use the `docker-compose.all-in-one.yml` file.
354
-
355
-
This setup is ideal for testing the end-to-end flow from Wazuh alerts to MCP messages via the HTTP interface.
356
-
357
-
**1. Launch the Environment:**
358
-
359
-
Navigate to the project root directory in your terminal and run:
360
-
361
-
```bash
362
-
docker-compose -f docker-compose.all-in-one.yml up -d
363
-
```
364
-
365
-
This command will:
366
-
- Download the necessary Wazuh and OpenSearch images (if not already present).
367
-
- Start the Wazuh Indexer, Wazuh Manager, and Wazuh Dashboard services.
368
-
- Build and start the Wazuh MCP Server (in HTTP mode).
369
-
- All services are configured to communicate with each other on an internal Docker network.
370
-
371
-
**2. Accessing Services:**
372
-
373
-
* **Wazuh Dashboard:**
374
-
* URL: `https://localhost:8443` (Note: Uses HTTPS with a self-signed certificate, so your browser will likely show a warning).
375
-
* Default Username: `admin`
376
-
* Default Password: `AdminPassword123!` (This is set by `WAZUH_INITIAL_PASSWORD` in the `wazuh-indexer` service).
377
-
378
-
* **Wazuh MCP Server (HTTP Mode):**
379
-
* The MCP server will be running and accessible on port `8000` by default (or the port specified by `MCP_SERVER_PORT` if you've set it as an environment variable on your host machine before running docker-compose).
380
-
* Example MCP endpoint: `http://localhost:8000/mcp`
381
-
* Example Health endpoint: `http://localhost:8000/health`
382
-
***Configuration:** The `mcp-server` service within `docker-compose.all-in-one.yml` is already configured with the necessary environment variables to connect to the `wazuh-manager` service:
383
-
*`WAZUH_HOST=wazuh-manager`
384
-
*`WAZUH_PORT=55000`
385
-
*`WAZUH_USER=wazuh_user_demo`
386
-
*`WAZUH_PASS=wazuh_password_demo`
387
-
*`VERIFY_SSL=false`
388
-
You do not need to set these in a separate `.env` file when using this all-in-one compose file, as they are defined directly in the service's environment.
389
-
390
-
**3. Stopping the Environment:**
391
-
392
-
To stop all services, run:
393
-
394
-
```bash
395
-
docker-compose -f docker-compose.all-in-one.yml down
396
-
```
397
-
398
-
To stop and remove volumes (deleting Wazuh data):
399
-
400
-
```bash
401
-
docker-compose -f docker-compose.all-in-one.yml down -v
402
-
```
403
-
This approach simplifies setup by bundling all necessary components and their configurations for HTTP mode testing.
404
-
405
341
## Development & Testing
406
342
407
343
- **Code Style:** Uses standard Rust formatting (`cargo fmt`).
0 commit comments