Skip to content

Commit 743bb52

Browse files
Merge branch 'main' into main
2 parents 90ab419 + f1c78fd commit 743bb52

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ The MCP Inspector provides convenient buttons to export server launch configurat
9898
}
9999
```
100100

101+
**Streamable HTTP transport example:**
102+
103+
```json
104+
{
105+
"type": "streamable-http",
106+
"url": "http://localhost:3000/mcp",
107+
"note": "For Streamable HTTP connections, add this URL directly in your MCP Client"
108+
}
109+
```
110+
101111
- **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`.
102112

103113
**STDIO transport example:**
@@ -131,9 +141,23 @@ The MCP Inspector provides convenient buttons to export server launch configurat
131141
}
132142
```
133143

144+
**Streamable HTTP transport example:**
145+
146+
```json
147+
{
148+
"mcpServers": {
149+
"default-server": {
150+
"type": "streamable-http",
151+
"url": "http://localhost:3000/mcp",
152+
"note": "For Streamable HTTP connections, add this URL directly in your MCP Client"
153+
}
154+
}
155+
}
156+
```
157+
134158
These buttons appear in the Inspector UI after you've configured your server settings, making it easy to save and reuse your configurations.
135159

136-
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.
160+
For SSE and Streamable HTTP transport connections, the Inspector provides similar functionality for both buttons. The "Server Entry" button copies the configuration that can be added to your existing configuration file, while the "Servers File" button creates a complete configuration file containing the URL for direct use in clients.
137161

138162
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.
139163

client/src/components/Sidebar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ const Sidebar = ({
183183
description:
184184
transportType === "stdio"
185185
? "Server configuration has been copied to clipboard. Add this to your mcp.json inside the 'mcpServers' object with your preferred server name."
186-
: "SSE URL has been copied. Use this URL directly in your MCP Client.",
186+
: transportType === "streamable-http"
187+
? "Streamable HTTP URL has been copied. Use this URL directly in your MCP Client."
188+
: "SSE URL has been copied. Use this URL directly in your MCP Client.",
187189
});
188190

189191
setTimeout(() => {

client/src/components/__tests__/Sidebar.test.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,11 @@ describe("Sidebar", () => {
456456
4,
457457
);
458458
expect(mockClipboardWrite).toHaveBeenCalledWith(expectedConfig);
459+
expect(mockToast).toHaveBeenCalledWith({
460+
title: "Config entry copied",
461+
description:
462+
"Server configuration has been copied to clipboard. Add this to your mcp.json inside the 'mcpServers' object with your preferred server name.",
463+
});
459464
});
460465

461466
it("should copy servers file configuration to clipboard for STDIO transport", async () => {
@@ -514,6 +519,11 @@ describe("Sidebar", () => {
514519
4,
515520
);
516521
expect(mockClipboardWrite).toHaveBeenCalledWith(expectedConfig);
522+
expect(mockToast).toHaveBeenCalledWith({
523+
title: "Config entry copied",
524+
description:
525+
"SSE URL has been copied. Use this URL directly in your MCP Client.",
526+
});
517527
});
518528

519529
it("should copy servers file configuration to clipboard for SSE transport", async () => {
@@ -564,6 +574,11 @@ describe("Sidebar", () => {
564574
4,
565575
);
566576
expect(mockClipboardWrite).toHaveBeenCalledWith(expectedConfig);
577+
expect(mockToast).toHaveBeenCalledWith({
578+
title: "Config entry copied",
579+
description:
580+
"Streamable HTTP URL has been copied. Use this URL directly in your MCP Client.",
581+
});
567582
});
568583

569584
it("should copy servers file configuration to clipboard for streamable-http transport", async () => {

0 commit comments

Comments
 (0)