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: LLM_GUIDANCE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -355,6 +355,6 @@ For application development, use the `mcp` and `google-genai` libraries to conne
355
355
356
356
Setup: `pip install google-genai mcp`
357
357
358
-
Implementation: Use an `SSEClientTransport` to connect to the VFB URL, list its tools, and pass their schemas to the Gemini model as Function Declarations.
358
+
Implementation: Use a streamable HTTP transport in JSON response mode (e.g. `enableJsonResponse: true`) to connect to the VFB URL, list its tools, and pass their schemas to the Gemini model as Function Declarations.
359
359
360
360
This MCP enables powerful neuroscience research by providing programmatic access to one of the most comprehensive neuroanatomical databases available.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# VFB3-MCP Server
2
2
3
-
A Model Context Protocol (MCP) server for interacting with VirtualFlyBrain (VFB) APIs. This server provides tools to query VFB data, run queries, and search for terms.
3
+
A Model Context Protocol (MCP) server for interacting with VirtualFlyBrain (VFB) APIs. This server provides tools to query VFB data, run queries, and search for terms. In HTTP mode it runs statelessly (no session tracking), so any replica can handle any request and standard load balancing works.
4
4
5
5
## 🚀 Quick Start
6
6
@@ -111,7 +111,7 @@ For application development, use the `mcp` and `google-genai` libraries to conne
111
111
112
112
Setup: `pip install google-genai mcp`
113
113
114
-
Implementation: Use an `SSEClientTransport` to connect to the VFB URL, list its tools, and pass their schemas to the Gemini model as Function Declarations.
114
+
Implementation: Use a streamable HTTP transport in JSON response mode (e.g. `enableJsonResponse: true`) to connect to the VFB URL, list its tools, and pass their schemas to the Gemini model as Function Declarations.
- Built using the official `@modelcontextprotocol/sdk`
25
-
- Express transport for HTTP mode with SSE
25
+
- Express transport for HTTP mode using stateless JSON-over-HTTP (no SSE)
26
26
- Stdio transport for local development
27
-
- Session management with UUID-based session IDs
27
+
- Stateless HTTP mode (no session tracking / no session IDs)
28
+
- GA4 analytics use a stable server-side client ID in HTTP mode (no per-session IDs)
28
29
29
30
## Infrastructure
30
31
@@ -35,9 +36,9 @@ The VFB3-MCP server supports two operational modes:
35
36
The production deployment runs on VFB's Rancher/Cattle Kubernetes infrastructure with:
36
37
37
38
-**Protocol**: HTTPS with automatic SSL certificate management
38
-
-**Transport**: Server-Sent Events (SSE) for real-time bidirectional communication
39
+
-**Transport**: Stateless JSON-over-HTTP request/response (no SSE)
39
40
-**Authentication**: Open server (no authentication required)
40
-
-**Load Balancing**: Kubernetes service with automatic scaling
41
+
-**Load Balancing**: Kubernetes service with automatic scaling (stateless; no sticky sessions required)
41
42
-**Resource Limits**: 512Mi memory, 500m CPU
42
43
-**Security**: Non-root user (UID 1000), read-only filesystem
43
44
-**MCP Endpoint**: `/` (root path)
@@ -227,7 +228,7 @@ For application development, use the `mcp` and `google-genai` libraries to conne
227
228
228
229
Setup: `pip install google-genai mcp`
229
230
230
-
Implementation: Use an `SSEClientTransport` to connect to the VFB URL, list its tools, and pass their schemas to the Gemini model as Function Declarations.
231
+
Implementation: Use a streamable HTTP transport in JSON response mode (e.g. `enableJsonResponse: true`) to connect to the VFB URL, list its tools, and pass their schemas to the Gemini model as Function Declarations.
231
232
232
233
## Security
233
234
@@ -255,7 +256,7 @@ While the server includes OAuth metadata endpoints for MCP SDK compatibility, au
255
256
-**Console Output**: Structured logging to stdout/stderr
256
257
-**Debug Mode**: Verbose logging with `MCP_DEBUG=true`
257
258
-**Error Handling**: Comprehensive error logging with context
258
-
-**Request Tracking**: Session and request ID logging
259
+
-**Request Tracking**: Request ID logging (no session IDs in HTTP mode)
259
260
260
261
### Infrastructure Monitoring
261
262
@@ -271,7 +272,7 @@ While the server includes OAuth metadata endpoints for MCP SDK compatibility, au
271
272
-**API Caching**: VFB provides cached endpoints for performance
272
273
-**Connection Pooling**: Axios configuration for efficient HTTP requests
273
274
-**Memory Management**: Node.js memory limits and garbage collection
274
-
-**Concurrent Requests**: Support for multiple simultaneous MCP sessions
275
+
-**Concurrent Requests**: Support for multiple simultaneous MCP requests (stateless)
Copy file name to clipboardExpand all lines: examples.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,7 +149,7 @@ For application development, use the `mcp` and `google-genai` libraries to conne
149
149
150
150
Setup: `pip install google-genai mcp`
151
151
152
-
Implementation: Use an `SSEClientTransport` to connect to the VFB URL, list its tools, and pass their schemas to the Gemini model as Function Declarations.
152
+
Implementation: Use a streamable HTTP transport in JSON response mode (e.g. `enableJsonResponse: true`) to connect to the VFB URL, list its tools, and pass their schemas to the Gemini model as Function Declarations.
0 commit comments