feat(mcp): enhance wizard with title field and optimize placeholders
- Add MCP title field to wizard (required) - Remove working directory (cwd) field and related logic - Update wizard callback to return both title and JSON - Optimize placeholder text for better user guidance: - Command: "npx or uvx" - Args: "arg1\narg2" - Env: "KEY1=value1\nKEY2=value2" - Headers: "Authorization: Bearer your_token_here\n..." - Simplify args label by removing "(one per line)" hint - Update parent component to handle title from wizard
This commit is contained in:
@@ -152,7 +152,8 @@ const McpFormModal: React.FC<McpFormModalProps> = ({
|
||||
setJsonError("");
|
||||
};
|
||||
|
||||
const handleWizardApply = (json: string) => {
|
||||
const handleWizardApply = (title: string, json: string) => {
|
||||
setFormId(title);
|
||||
setFormJson(json);
|
||||
setJsonError(validateJson(json));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user