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
The `MCP_SERVER_URL` environment variable controls MCP (Model Context Protocol) integration:
58
+
The `MCP_SERVER_URL` environment variable controls MCP (Model Context Protocol) integration. The tool automatically detects whether to use HTTP or StdIO transport based on the value format.
59
+
60
+
**HTTP MCP Servers (Remote):**
59
61
60
62
```bash
61
63
# Enable MCP with Svelte server (default for this benchmark)
62
64
MCP_SERVER_URL=https://mcp.svelte.dev/mcp
63
65
66
+
# Use a different HTTP MCP server
67
+
MCP_SERVER_URL=https://your-mcp-server.com/mcp
68
+
```
69
+
70
+
**StdIO MCP Servers (Local):**
71
+
72
+
For local MCP servers, simply provide the command string (any non-HTTP value):
73
+
74
+
```bash
75
+
# Use the default Svelte MCP server via npx
76
+
MCP_SERVER_URL=npx -y @sveltejs/mcp
77
+
78
+
# Use a custom local MCP server
79
+
MCP_SERVER_URL=node path/to/your/mcp-server.js
80
+
81
+
# Use with Bun runtime
82
+
MCP_SERVER_URL=bun run src/mcp-server.ts --verbose
83
+
```
84
+
85
+
**Disable MCP:**
86
+
87
+
```bash
64
88
# Disable MCP integration (run without external tools)
65
89
MCP_SERVER_URL=
66
-
67
-
# Use a different MCP server
68
-
MCP_SERVER_URL=https://your-mcp-server.com/mcp
69
90
```
70
91
71
92
**Behavior:**
72
93
73
-
- If `MCP_SERVER_URL` is set and not empty: MCP tools are injected into the agent
94
+
- If `MCP_SERVER_URL` starts with `http://` or `https://`: Uses HTTP transport with that URL
95
+
- If `MCP_SERVER_URL` is set but not an HTTP URL: Uses StdIO transport, treating the value as a command string
74
96
- If `MCP_SERVER_URL` is empty or not set: Agent runs without MCP tools (only built-in tools)
75
-
- MCP status is documented in the result JSON and HTML report with a badge
97
+
- MCP transport type (HTTP or StdIO) and configuration are documented in the result JSON and HTML report
0 commit comments