Merge pull request #425 from modelcontextprotocol/pcarleton/naming

rework naming on config copy
This commit is contained in:
Cliff Hall 2025-05-21 16:17:26 -04:00 • committed by GitHub
commit ec24f7bbbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View file

@ -127,14 +127,14 @@ const Sidebar = ({
return { return {
type: "sse", type: "sse",
url: sseUrl, url: sseUrl,
note: "For SSE connections, add this URL directly in Client", note: "For SSE connections, add this URL directly in your MCP Client",
}; };
} }
if (transportType === "streamable-http") { if (transportType === "streamable-http") {
return { return {
type: "streamable-http", type: "streamable-http",
url: sseUrl, url: sseUrl,
note: "For Streamable HTTP connections, add this URL directly in Client", note: "For Streamable HTTP connections, add this URL directly in your MCP Client",
}; };
} }
return {}; return {};
@ -172,7 +172,7 @@ const Sidebar = ({
description: description:
transportType === "stdio" transportType === "stdio"
? "Server configuration has been copied to clipboard. Add this to your mcp.json inside the 'mcpServers' object with your preferred server name." ? "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 in Cursor directly.", : "SSE URL has been copied. Use this URL directly in your MCP Client.",
}); });
setTimeout(() => { setTimeout(() => {

View file

@ -755,7 +755,7 @@ describe("Sidebar Environment Variables", () => {
{ {
type: "sse", type: "sse",
url: sseUrl, url: sseUrl,
note: "For SSE connections, add this URL directly in Client", note: "For SSE connections, add this URL directly in your MCP Client",
}, },
null, null,
4, 4,
@ -780,7 +780,7 @@ describe("Sidebar Environment Variables", () => {
"default-server": { "default-server": {
type: "sse", type: "sse",
url: sseUrl, url: sseUrl,
note: "For SSE connections, add this URL directly in Client", note: "For SSE connections, add this URL directly in your MCP Client",
}, },
}, },
}, },
@ -805,7 +805,7 @@ describe("Sidebar Environment Variables", () => {
{ {
type: "streamable-http", type: "streamable-http",
url: sseUrl, url: sseUrl,
note: "For Streamable HTTP connections, add this URL directly in Client", note: "For Streamable HTTP connections, add this URL directly in your MCP Client",
}, },
null, null,
4, 4,
@ -830,7 +830,7 @@ describe("Sidebar Environment Variables", () => {
"default-server": { "default-server": {
type: "streamable-http", type: "streamable-http",
url: sseUrl, url: sseUrl,
note: "For Streamable HTTP connections, add this URL directly in Client", note: "For Streamable HTTP connections, add this URL directly in your MCP Client",
}, },
}, },
}, },