Class McpEntityConfig

java.lang.Object
com.ssgllc.fish.config.mcp.McpEntityConfig

@Configuration public class McpEntityConfig extends Object
MCP tool configuration for Casetivity entity CRUD operations.

Provides eight tools for reading and writing any entity type in the application:

  • get-entity - fetch a DTO by type and id, with optional expansion
  • get-domain-entity - fetch the raw JPA domain object by type and id
  • find-entity - find a single entity by exact field match
  • search-entity - paged search with filter criteria and sorting
  • create-entity - create a new entity with the provided field values
  • create-entities - create multiple entities in one all-or-nothing transaction
  • update-entity - update an existing entity's fields
  • delete-entity - delete an entity by type and id

Write operations (create-entity, update-entity, delete-entity) accept an optional featureBranch parameter which is recorded in the configuration audit trail via ConfigBranchContext.

Active only when spring.ai.mcp.server.enabled=true.

See Also:
  • Constructor Details

    • McpEntityConfig

      public McpEntityConfig()