mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-07 00:15:23 +02:00
Merge 35fe995b52 into 8ed0bcf5ca
This commit is contained in:
commit
53ac35792d
3 changed files with 7 additions and 4 deletions
|
|
@ -52,7 +52,7 @@ export default function BasicInfoSection() {
|
|||
{...register('title', {
|
||||
required: localize('com_ui_field_required'),
|
||||
pattern: {
|
||||
value: /^[a-zA-Z0-9 ]+$/,
|
||||
value: /^[-\p{L}\p{N} '']+$/u,
|
||||
message: localize('com_ui_mcp_title_invalid'),
|
||||
},
|
||||
})}
|
||||
|
|
|
|||
|
|
@ -1155,7 +1155,7 @@
|
|||
"com_ui_mcp_servers_allow_share": "Allow users to share MCP servers",
|
||||
"com_ui_mcp_servers_allow_share_public": "Allow users to share MCP servers publicly",
|
||||
"com_ui_mcp_servers_allow_use": "Allow users to use MCP servers",
|
||||
"com_ui_mcp_title_invalid": "Title can only contain letters, numbers, and spaces",
|
||||
"com_ui_mcp_title_invalid": "Title can only contain letters, numbers, spaces, apostrophes, and hyphens",
|
||||
"com_ui_mcp_tool_options": "Tool Options",
|
||||
"com_ui_mcp_transport": "Transport",
|
||||
"com_ui_mcp_type_sse": "SSE",
|
||||
|
|
|
|||
|
|
@ -3,10 +3,13 @@ import { TokenExchangeMethodEnum } from './types/agents';
|
|||
import { extractEnvVariable } from './utils';
|
||||
|
||||
const BaseOptionsSchema = z.object({
|
||||
/** Display name for the MCP server - only letters, numbers, and spaces allowed */
|
||||
/** Display name for the MCP server */
|
||||
title: z
|
||||
.string()
|
||||
.regex(/^[a-zA-Z0-9 ]+$/, 'Title can only contain letters, numbers, and spaces')
|
||||
.regex(
|
||||
/^[\p{L}\p{N} ''\-]+$/u,
|
||||
'Title can only contain letters, numbers, spaces, apostrophes, and hyphens',
|
||||
)
|
||||
.optional(),
|
||||
/** Description of the MCP server */
|
||||
description: z.string().optional(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue