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.
@@ -94,6 +162,8 @@ Example server configuration file:
94
162
}
95
163
```
96
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
+
97
167
You can also set the initial `transport` type, `serverUrl`, `serverCommand`, and `serverArgs` via query params, for example:
0 commit comments