don't show full config keys
This commit is contained in:
@@ -326,7 +326,7 @@ const Sidebar = ({
|
||||
<div key={key} className="space-y-2">
|
||||
<div className="flex items-center gap-1">
|
||||
<label className="text-sm font-medium text-green-600 break-all">
|
||||
{configKey}
|
||||
{configItem.description}
|
||||
</label>
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
|
||||
@@ -343,7 +343,7 @@ describe("Sidebar Environment Variables", () => {
|
||||
expect(setConfig).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
MCP_SERVER_REQUEST_TIMEOUT: {
|
||||
description: "Timeout for requests to the MCP server (ms)",
|
||||
description: "Request Timeout",
|
||||
value: 5000,
|
||||
},
|
||||
}),
|
||||
@@ -366,8 +366,7 @@ describe("Sidebar Environment Variables", () => {
|
||||
expect(setConfig).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
MCP_PROXY_FULL_ADDRESS: {
|
||||
description:
|
||||
"Set this if you are running the MCP Inspector Proxy on a non-default address. Example: http://10.1.1.22:5577",
|
||||
description: "Inspector Proxy Address",
|
||||
value: "http://localhost:8080",
|
||||
},
|
||||
}),
|
||||
@@ -390,8 +389,7 @@ describe("Sidebar Environment Variables", () => {
|
||||
expect(setConfig).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
MCP_REQUEST_MAX_TOTAL_TIMEOUT: {
|
||||
description:
|
||||
"Maximum total timeout for requests sent to the MCP server (ms) (Use with progress notifications)",
|
||||
description: "Maximum Total Timeout",
|
||||
value: 10000,
|
||||
},
|
||||
}),
|
||||
@@ -412,7 +410,7 @@ describe("Sidebar Environment Variables", () => {
|
||||
expect(setConfig).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
MCP_SERVER_REQUEST_TIMEOUT: {
|
||||
description: "Timeout for requests to the MCP server (ms)",
|
||||
description: "Request Timeout",
|
||||
value: 0,
|
||||
},
|
||||
}),
|
||||
@@ -457,7 +455,7 @@ describe("Sidebar Environment Variables", () => {
|
||||
expect(setConfig).toHaveBeenLastCalledWith(
|
||||
expect.objectContaining({
|
||||
MCP_SERVER_REQUEST_TIMEOUT: {
|
||||
description: "Timeout for requests to the MCP server (ms)",
|
||||
description: "Request Timeout",
|
||||
value: 3000,
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user