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
For more details on ways to use the inspector, see the [Inspector section of the MCP docs site](https://modelcontextprotocol.io/docs/tools/inspector). For help with debugging, see the [Debugging guide](https://modelcontextprotocol.io/docs/tools/debugging).
44
44
45
+
### Servers File Export
46
+
47
+
The MCP Inspector provides convenient buttons to export server launch configurations for use in clients such as Cursor, Claude Code, or the Inspector's CLI. The file is usually called `mcp.json`.
48
+
49
+
-**Server Entry** - Copies a single server configuration entry to your clipboard. This can be added to your `mcp.json` file inside the `mcpServers` object with your preferred server name.
50
+
51
+
**STDIO transport example:**
52
+
53
+
```json
54
+
{
55
+
"command": "node",
56
+
"args": ["build/index.js", "--debug"],
57
+
"env": {
58
+
"API_KEY": "your-api-key",
59
+
"DEBUG": "true"
60
+
}
61
+
}
62
+
```
63
+
64
+
**SSE transport example:**
65
+
66
+
```json
67
+
{
68
+
"type": "sse",
69
+
"url": "http://localhost:3000/events",
70
+
"note": "For SSE connections, add this URL directly in Client"
71
+
}
72
+
```
73
+
74
+
-**Servers File** - Copies a complete MCP configuration file structure to your clipboard, with your current server configuration added as `default-server`. This can be saved directly as `mcp.json`.
75
+
76
+
**STDIO transport example:**
77
+
78
+
```json
79
+
{
80
+
"mcpServers": {
81
+
"default-server": {
82
+
"command": "node",
83
+
"args": ["build/index.js", "--debug"],
84
+
"env": {
85
+
"API_KEY": "your-api-key",
86
+
"DEBUG": "true"
87
+
}
88
+
}
89
+
}
90
+
}
91
+
```
92
+
93
+
**SSE transport example:**
94
+
95
+
```json
96
+
{
97
+
"mcpServers": {
98
+
"default-server": {
99
+
"type": "sse",
100
+
"url": "http://localhost:3000/events",
101
+
"note": "For SSE connections, add this URL directly in Client"
102
+
}
103
+
}
104
+
}
105
+
```
106
+
107
+
These buttons appear in the Inspector UI after you've configured your server settings, making it easy to save and reuse your configurations.
108
+
109
+
For SSE transport connections, the Inspector provides similar functionality for both buttons. The "Server Entry" button copies the SSE URL configuration that can be added to your existing configuration file, while the "Servers File" button creates a complete configuration file containing the SSE URL for direct use in clients.
110
+
111
+
You can paste the Server Entry into your existing `mcp.json` file under your chosen server name, or use the complete Servers File payload to create a new configuration file.
112
+
45
113
### Authentication
46
114
47
115
The inspector supports bearer token authentication for SSE connections. Enter your token in the UI when connecting to an MCP server, and it will be sent in the Authorization header. You can override the header name using the input field in the sidebar.
@@ -54,12 +122,13 @@ The MCP Inspector includes a proxy server that can run and communicate with loca
54
122
55
123
The MCP Inspector supports the following configuration settings. To change them, click on the `Configuration` button in the MCP Inspector UI:
|`MCP_SERVER_REQUEST_TIMEOUT`| Timeout for requests to the MCP server (ms) | 10000 |
128
+
|`MCP_REQUEST_TIMEOUT_RESET_ON_PROGRESS`| Reset timeout on progress notifications | true |
129
+
|`MCP_REQUEST_MAX_TOTAL_TIMEOUT`| Maximum total timeout for requests sent to the MCP server (ms) (Use with progress notifications) | 60000 |
130
+
|`MCP_PROXY_FULL_ADDRESS`| Set this if you are running the MCP Inspector Proxy on a non-default address. Example: http://10.1.1.22:5577| "" |
131
+
|`MCP_AUTO_OPEN_ENABLED`| Enable automatic browser opening when inspector starts. Only as environment var, not configurable in browser. | true |
63
132
64
133
These settings can be adjusted in real-time through the UI and will persist across sessions.
65
134
@@ -93,6 +162,24 @@ Example server configuration file:
93
162
}
94
163
```
95
164
165
+
> **Tip:** You can easily generate this configuration format using the **Server Entry** and **Servers File** buttons in the Inspector UI, as described in the Servers File Export section above.
166
+
167
+
You can also set the initial `transport` type, `serverUrl`, `serverCommand`, and `serverArgs` via query params, for example:
0 commit comments