feat(ai): enhance metadata handling and add support for tools, prompt… (#14002)

…s, and resources

- Removed unused `ObjectMetadataStandardIdToIdMap`.
- Updated Vite config with additional allowed hosts.
- Improved MCP service to handle `ping` method and lists for tools,
prompts, and resources.
- Refactored utility function `isFieldMetadataEntityOfType` for improved
type handling.
- Expanded MCP metadata service to include tools, prompts, and resources
support.
This commit is contained in:
Antoine Moreaux
2025-08-21 10:45:46 +02:00
committed by GitHub
parent 758fb9ecad
commit 809fe5699f
8 changed files with 106 additions and 44 deletions
@@ -3,7 +3,7 @@ import { type FieldMetadataType } from 'twenty-shared/types';
import { type FieldMetadataEntity } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
export function isFieldMetadataEntityOfType<
Field extends FieldMetadataEntity<FieldMetadataType>,
Field extends FieldMetadataEntity,
Type extends FieldMetadataType,
>(
fieldMetadata: Pick<Field, 'type'>,