From d728d546148eea27ac77c9e7e3ed8525b6ae78ea Mon Sep 17 00:00:00 2001 From: Wei He Date: Sat, 6 Sep 2025 23:47:54 -0400 Subject: [PATCH 1/4] fix: toast message when copying server entry for a Streamable HTTP transport URL --- client/src/components/Sidebar.tsx | 4 +++- client/src/components/__tests__/Sidebar.test.tsx | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/client/src/components/Sidebar.tsx b/client/src/components/Sidebar.tsx index a44c6e29..2f53b3aa 100644 --- a/client/src/components/Sidebar.tsx +++ b/client/src/components/Sidebar.tsx @@ -175,7 +175,9 @@ const Sidebar = ({ description: transportType === "stdio" ? "Server configuration has been copied to clipboard. Add this to your mcp.json inside the 'mcpServers' object with your preferred server name." - : "SSE URL has been copied. Use this URL directly in your MCP Client.", + : transportType === "streamable-http" + ? "Streamable HTTP URL has been copied. Use this URL directly in your MCP Client." + : "SSE URL has been copied. Use this URL directly in your MCP Client.", }); setTimeout(() => { diff --git a/client/src/components/__tests__/Sidebar.test.tsx b/client/src/components/__tests__/Sidebar.test.tsx index 8f693717..786584d2 100644 --- a/client/src/components/__tests__/Sidebar.test.tsx +++ b/client/src/components/__tests__/Sidebar.test.tsx @@ -446,6 +446,11 @@ describe("Sidebar", () => { 4, ); expect(mockClipboardWrite).toHaveBeenCalledWith(expectedConfig); + expect(mockToast).toHaveBeenCalledWith({ + title: "Config entry copied", + description: + "Server configuration has been copied to clipboard. Add this to your mcp.json inside the 'mcpServers' object with your preferred server name.", + }); }); it("should copy servers file configuration to clipboard for STDIO transport", async () => { @@ -504,6 +509,11 @@ describe("Sidebar", () => { 4, ); expect(mockClipboardWrite).toHaveBeenCalledWith(expectedConfig); + expect(mockToast).toHaveBeenCalledWith({ + title: "Config entry copied", + description: + "SSE URL has been copied. Use this URL directly in your MCP Client.", + }); }); it("should copy servers file configuration to clipboard for SSE transport", async () => { @@ -554,6 +564,11 @@ describe("Sidebar", () => { 4, ); expect(mockClipboardWrite).toHaveBeenCalledWith(expectedConfig); + expect(mockToast).toHaveBeenCalledWith({ + title: "Config entry copied", + description: + "Streamable HTTP URL has been copied. Use this URL directly in your MCP Client.", + }); }); it("should copy servers file configuration to clipboard for streamable-http transport", async () => { From 0caaeed9ce49f0f9d106643fc8bb99ddec57a6af Mon Sep 17 00:00:00 2001 From: Wei He Date: Sat, 6 Sep 2025 23:57:16 -0400 Subject: [PATCH 2/4] docs: add streamable transport examples --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fc563f91..d1922f94 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,16 @@ The MCP Inspector provides convenient buttons to export server launch configurat } ``` + **Streamable HTTP transport example:** + + ```json + { + "type": "streamable-http", + "url": "http://localhost:3000/mcp", + "note": "For Streamable HTTP connections, add this URL directly in your MCP Client" + } + ``` + - **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`. **STDIO transport example:** @@ -131,9 +141,22 @@ The MCP Inspector provides convenient buttons to export server launch configurat } ``` + **Streamable HTTP transport example:** + ```json + { + "mcpServers": { + "default-server": { + "type": "streamable-http", + "url": "http://localhost:3000/mcp", + "note": "For Streamable HTTP connections, add this URL directly in your MCP Client" + } + } + } + ``` + These buttons appear in the Inspector UI after you've configured your server settings, making it easy to save and reuse your configurations. -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. +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. 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. From 1207834b7eccd56692fd071de8be5d5f8a9f1492 Mon Sep 17 00:00:00 2001 From: Wei He Date: Sun, 7 Sep 2025 00:27:56 -0400 Subject: [PATCH 3/4] docs: add streamable transport examples --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d1922f94..29037550 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,7 @@ The MCP Inspector provides convenient buttons to export server launch configurat ``` **Streamable HTTP transport example:** + ```json { "mcpServers": { From f1c78fdde7181a2efb7708481123ba296cfd0c0f Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Wed, 10 Sep 2025 20:40:49 +0100 Subject: [PATCH 4/4] fix prettier --- .github/ISSUE_TEMPLATE/bug_report.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 28e0bbd5..0db5467a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,13 +1,13 @@ --- name: Bug report about: Create a report to help us improve -title: '' -labels: '' -assignees: '' - +title: "" +labels: "" +assignees: "" --- **Inspector Version** + - [e.g. 0.16.5) **Describe the bug** @@ -15,6 +15,7 @@ A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: + 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' @@ -27,8 +28,9 @@ A clear and concise description of what you expected to happen. If applicable, add screenshots to help explain your problem. **Environment (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] + +- OS: [e.g. iOS] +- Browser [e.g. chrome, safari] **Additional context** Add any other context about the problem here.