diff --git a/webview-ui/src/components/mcp/McpView.tsx b/webview-ui/src/components/mcp/McpView.tsx index 9143121..b923fe7 100644 --- a/webview-ui/src/components/mcp/McpView.tsx +++ b/webview-ui/src/components/mcp/McpView.tsx @@ -125,8 +125,8 @@ const McpView = ({ onDone }: McpViewProps) => { bottom: 0, display: "flex", flexDirection: "column", - overflow: "hidden", }}> + {/* Fixed Header */}
{

MCP Servers

Done
-

- MCP (Model Context Protocol) enables AI models to access external tools and data through standardized - interfaces. Add MCP servers to extend Claude's capabilities with custom functionality and real-time data - access. -

- {/* Server List */} + {/* Scrollable Content */}
- {servers.map((server) => ( - - ))} -
+

+ MCP (Model Context Protocol) enables AI models to access external tools and data through + standardized interfaces. Add MCP servers to extend Claude's capabilities with custom functionality + and real-time data access. +

- {/* Add Server UI */} -
- {isAdding ? ( -
- setConfigInput((e.target as HTMLTextAreaElement).value)} - /> -
- - Add Server - - setIsAdding(false)}> - Cancel - + {/* Server List */} +
+ {servers.map((server) => ( + + ))} + + {/* Add Server UI as a row */} + {isAdding ? ( +
+ New MCP Server +

+ Enter the MCP server configuration in JSON format. You can find this configuration in + the setup instructions for your MCP server. The config defines how to start and connect + to the server, typically specifying a command and arguments. +

+ setConfigInput((e.target as HTMLTextAreaElement).value)} + /> +
+ + Save + + setIsAdding(false)}> + Cancel + +
-
- ) : ( - setIsAdding(true)}> - - Add MCP Server - - )} + ) : ( + setIsAdding(true)}> + + Add MCP Server + + )} +
+ + {/* Add bottom padding for scrolling */} +
) @@ -345,6 +367,7 @@ const ServerRow = ({ server }: { server: McpServer }) => { {isEditing ? ( <> setEditConfig((e.target as HTMLTextAreaElement).value)} style={{ width: "100%" }}