Skip to content

Commit 50da197

Browse files
committed
docs: enhance MCP configuration instructions with detailed guides for various clients.
1 parent e92dbe1 commit 50da197

2 files changed

Lines changed: 411 additions & 97 deletions

File tree

README.md

Lines changed: 82 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,48 @@ pip install git+https://github.com/bx33661/Wireshark-MCP.git
7676

7777
## Configuration
7878

79-
Add to your MCP client config (e.g. `claude_desktop_config.json`):
79+
<details>
80+
<summary><b>Claude Desktop</b></summary>
81+
82+
Edit `claude_desktop_config.json`:
83+
84+
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
85+
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
86+
87+
```json
88+
{
89+
"mcpServers": {
90+
"wireshark": {
91+
"command": "uv",
92+
"args": ["tool", "run", "wireshark-mcp"]
93+
}
94+
}
95+
}
96+
```
97+
98+
</details>
99+
100+
<details>
101+
<summary><b>Claude Code (CLI)</b></summary>
102+
103+
```bash
104+
claude mcp add wireshark -- uv tool run wireshark-mcp
105+
```
106+
107+
Or edit `~/.claude/claude_desktop_config.json` with the same JSON format above.
108+
109+
</details>
110+
111+
<details>
112+
<summary><b>Cursor</b></summary>
113+
114+
Go to **Settings → Features → MCP Servers → Add new MCP server**:
115+
116+
- **Name**: `wireshark`
117+
- **Type**: `command`
118+
- **Command**: `uv tool run wireshark-mcp`
119+
120+
Or edit `.cursor/mcp.json` in your project root:
80121

81122
```json
82123
{
@@ -89,7 +130,46 @@ Add to your MCP client config (e.g. `claude_desktop_config.json`):
89130
}
90131
```
91132

92-
> You can also run directly with `python -m wireshark_mcp`.
133+
</details>
134+
135+
<details>
136+
<summary><b>OpenAI Codex CLI</b></summary>
137+
138+
```bash
139+
codex mcp add wireshark -- uv tool run wireshark-mcp
140+
```
141+
142+
Or edit `~/.codex/config.toml`:
143+
144+
```toml
145+
[mcp_servers.wireshark]
146+
command = "uv"
147+
args = ["tool", "run", "wireshark-mcp"]
148+
```
149+
150+
</details>
151+
152+
<details>
153+
<summary><b>Trae AI IDE</b></summary>
154+
155+
Go to **Settings → MCP → Add MCP Server → Manual**, then paste:
156+
157+
```json
158+
{
159+
"mcpServers": {
160+
"wireshark": {
161+
"command": "uv",
162+
"args": ["tool", "run", "wireshark-mcp"]
163+
}
164+
}
165+
}
166+
```
167+
168+
Or edit `.trae/mcp.json` in your project root.
169+
170+
</details>
171+
172+
> **Docker / SSE mode**: `docker compose up -d` then point your client to `http://localhost:8080/sse`
93173
94174
---
95175

0 commit comments

Comments
 (0)