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: CLAUDE.md
+92-63Lines changed: 92 additions & 63 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,10 +103,10 @@ MaverickMCP is a personal stock analysis MCP server built for Claude Desktop. It
103
103
104
104
```bash
105
105
# Start the MCP server
106
-
make dev # Start with SSE transport (default, recommended)
107
-
make dev-sse# Start with SSE transport (same as dev)
108
-
make dev-http# Start with Streamable-HTTP transport (for testing/debugging)
109
-
make dev-stdio # Start with STDIO transport (direct connection)
106
+
make dev # Start with Streamable-HTTP transport (default)
107
+
make dev-http# Start with Streamable-HTTP transport (same as dev)
108
+
make dev-sse# Start with SSE transport (debug/inspector use)
109
+
make dev-stdio # Start with STDIO transport (recommended for Claude Desktop)
110
110
111
111
# Development
112
112
make backend # Start backend server only
@@ -145,44 +145,38 @@ make c # Alias for make check
145
145
146
146
### Connection Methods
147
147
148
-
**✅ RECOMMENDED**: Claude Desktop works best with the **SSE endpoint via mcp-remote bridge**. This configuration has been tested and **prevents tools from disappearing**after initial connection.
148
+
**✅ RECOMMENDED**: Claude Desktop works best with **STDIO transport** (`make dev-stdio`) for direct subprocess communication, or via **Streamable-HTTP with mcp-remote bridge**(`make dev` + mcp-remote).
149
149
150
-
#### Method A: SSE Server with mcp-remote Bridge (Recommended - Stable)
150
+
#### Method A: STDIO Transport (Recommended - Most Reliable)
151
151
152
-
This is the **tested and proven method for Claude Desktop** - provides stable tool registration:
152
+
Direct subprocess communication — fastest and most reliable for Claude Desktop:
153
153
154
-
1.**Start the SSE server**:
155
-
```bash
156
-
make dev # Runs SSE server on port 8003
157
-
```
158
-
159
-
2.**Configure with mcp-remote bridge**:
154
+
1.**Configure Claude Desktop**:
160
155
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
**Important**: This exact configuration has been tested and confirmed to prevent the common issue where tools appear initially but then disappear from Claude Desktop. The server now accepts both `/sse` and `/sse/` paths without redirects.
256
-
257
286
**Restart Required:** Always restart Claude Desktop after config changes.
258
287
259
288
#### Cursor IDE - SSE and STDIO Support
@@ -273,17 +302,17 @@ This is the **tested and proven method for Claude Desktop** - provides stable to
273
302
274
303
#### Claude Code CLI - Full Transport Support
275
304
276
-
**SSE Transport (Recommended):**
305
+
**HTTP Transport (Recommended):**
277
306
```bash
278
-
claude mcp add --transport sse maverick-mcp http://localhost:8003/sse
307
+
claude mcp add --transport http maverick-mcp http://localhost:8003/mcp/
279
308
```
280
309
281
-
**HTTP Transport (Alternative):**
310
+
**SSE Transport (Alternative):**
282
311
```bash
283
-
claude mcp add --transport http maverick-mcp http://localhost:8003/mcp/
312
+
claude mcp add --transport sse maverick-mcp http://localhost:8003/sse
284
313
```
285
314
286
-
**STDIO Transport (Development only):**
315
+
**STDIO Transport (Direct):**
287
316
```bash
288
317
claude mcp add maverick-mcp uv run python -m maverick_mcp.api.server --transport stdio
289
318
```
@@ -348,14 +377,14 @@ claude mcp add maverick-mcp uv run python -m maverick_mcp.api.server --transport
348
377
### How It Works
349
378
350
379
**Connection Architecture:**
351
-
-**STDIO Mode (Optimal for Claude Desktop)**: Direct subprocess communication - fastest, most reliable
352
-
-**Streamable-HTTP Endpoint**: `http://localhost:8003/` - For remote access via mcp-remote bridge
353
-
-**SSE Endpoint**: `http://localhost:8003/sse` - For other clients with native SSE support (accepts both `/sse` and `/sse/`)
380
+
-**STDIO Mode (Recommended for Claude Desktop)**: Direct subprocess communication - fastest, most reliable
381
+
-**Streamable-HTTP Endpoint**: `http://localhost:8003/mcp/` - Default dev transport, for remote access or mcp-remote bridge
382
+
-**SSE Endpoint**: `http://localhost:8003/sse` - For clients with native SSE support (accepts both `/sse` and `/sse/`)
354
383
355
-
> **Key Finding**: Direct STDIO is the optimal transport for Claude Desktop. HTTP/SSE require the mcp-remote bridge tool, adding latency and complexity. SSE is particularly problematic as it's incompatible with mcp-remote (GET vs POST mismatch).
384
+
> **Key Finding**: Direct STDIO is the optimal transport for Claude Desktop. Streamable-HTTP via mcp-remote is a good alternative for remote access. The server binds to `127.0.0.1` by default for security.
356
385
357
386
**Transport Limitations by Client:**
358
-
-**Claude Desktop**: STDIO-only, cannot directly connect to HTTP/SSE
0 commit comments