SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.3

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
182 128 0 0

Files

Class Bugs
org.apache.shardingsphere.mcp.support.database.capability.MCPDatabaseCapability 2
org.apache.shardingsphere.mcp.support.database.exception.MCPJDBCExceptionClassifier 1
org.apache.shardingsphere.mcp.support.database.metadata.context.RequestScopedMetadataContext 1
org.apache.shardingsphere.mcp.support.database.metadata.model.MCPMetadataSnapshot 3
org.apache.shardingsphere.mcp.support.database.tool.result.RuntimeDatabaseValidationResult 1
org.apache.shardingsphere.mcp.support.database.tool.result.SQLExecutionResult 2
org.apache.shardingsphere.mcp.support.descriptor.MCPProtocolDescriptorCatalog 8
org.apache.shardingsphere.mcp.support.descriptor.MCPResourceNavigationDescriptor 4
org.apache.shardingsphere.mcp.support.descriptor.MCPShardingSphereDescriptorCatalog 10
org.apache.shardingsphere.mcp.support.descriptor.ShardingSphereMCPResourceMetadata 8
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPCompletionTargetDescriptor 4
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog 12
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPPromptDescriptor 6
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceAnnotations 2
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceDescriptor 6
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceNavigationDescriptor 4
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPToolDescriptor 10
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlShardingSphereMCPResourceMetadata 8
org.apache.shardingsphere.mcp.support.protocol.MCPCompletionAction 3
org.apache.shardingsphere.mcp.support.protocol.MCPCompletionAction$MCPCompletionActionBuilder 3
org.apache.shardingsphere.mcp.support.protocol.MCPModelFacingPayloadContract 1
org.apache.shardingsphere.mcp.support.protocol.payload.MCPMapPayload 2
org.apache.shardingsphere.mcp.support.workflow.model.ClarifiedIntent 3
org.apache.shardingsphere.mcp.support.workflow.model.InteractionPlan 2
org.apache.shardingsphere.mcp.support.workflow.model.RuleWorkflowFeatureData 1
org.apache.shardingsphere.mcp.support.workflow.model.ValidationReport 1
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot 13
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowIssue 2
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowRequest 2
org.apache.shardingsphere.mcp.support.workflow.service.WorkflowPlanningArguments 1
org.apache.shardingsphere.mcp.support.workflow.service.WorkflowSynchronizationException 2

org.apache.shardingsphere.mcp.support.database.capability.MCPDatabaseCapability

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.database.capability.MCPDatabaseCapability.getSupportedMetadataObjectTypes() may expose internal representation by returning MCPDatabaseCapability.supportedMetadataObjectTypes MALICIOUS_CODE EI_EXPOSE_REP 39 Medium
org.apache.shardingsphere.mcp.support.database.capability.MCPDatabaseCapability.getSupportedStatementClasses() may expose internal representation by returning MCPDatabaseCapability.supportedStatementClasses MALICIOUS_CODE EI_EXPOSE_REP 41 Medium

org.apache.shardingsphere.mcp.support.database.exception.MCPJDBCExceptionClassifier

Bug Category Details Line Priority
Dead store to ignored in org.apache.shardingsphere.mcp.support.database.exception.MCPJDBCExceptionClassifier.classify(Optional, Throwable) STYLE DLS_DEAD_LOCAL_STORE 81 Medium

org.apache.shardingsphere.mcp.support.database.metadata.context.RequestScopedMetadataContext

Bug Category Details Line Priority
new org.apache.shardingsphere.mcp.support.database.metadata.context.RequestScopedMetadataContext(Map, MCPDatabaseCapabilityProvider) may expose internal representation by storing an externally mutable object into RequestScopedMetadataContext.runtimeDatabases MALICIOUS_CODE EI_EXPOSE_REP2 40 Medium

org.apache.shardingsphere.mcp.support.database.metadata.model.MCPMetadataSnapshot

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.database.metadata.model.MCPMetadataSnapshot.getSchemas() may expose internal representation by returning MCPMetadataSnapshot.schemas MALICIOUS_CODE EI_EXPOSE_REP 34 Medium
new org.apache.shardingsphere.mcp.support.database.metadata.model.MCPMetadataSnapshot(Collection, Map) may expose internal representation by storing an externally mutable object into MCPMetadataSnapshot.schemas MALICIOUS_CODE EI_EXPOSE_REP2 31 Medium
new org.apache.shardingsphere.mcp.support.database.metadata.model.MCPMetadataSnapshot(Collection, Map) may expose internal representation by storing an externally mutable object into MCPMetadataSnapshot.sequences MALICIOUS_CODE EI_EXPOSE_REP2 31 Medium

org.apache.shardingsphere.mcp.support.database.tool.result.RuntimeDatabaseValidationResult

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.database.tool.result.RuntimeDatabaseValidationResult.getChecks() may expose internal representation by returning RuntimeDatabaseValidationResult.checks MALICIOUS_CODE EI_EXPOSE_REP 37 Medium

org.apache.shardingsphere.mcp.support.database.tool.result.SQLExecutionResult

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.database.tool.result.SQLExecutionResult.getColumns() may expose internal representation by returning SQLExecutionResult.columns MALICIOUS_CODE EI_EXPOSE_REP 40 Medium
org.apache.shardingsphere.mcp.support.database.tool.result.SQLExecutionResult.getRows() may expose internal representation by returning SQLExecutionResult.rows MALICIOUS_CODE EI_EXPOSE_REP 42 Medium

org.apache.shardingsphere.mcp.support.descriptor.MCPProtocolDescriptorCatalog

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.descriptor.MCPProtocolDescriptorCatalog.getPromptDescriptors() may expose internal representation by returning MCPProtocolDescriptorCatalog.promptDescriptors MALICIOUS_CODE EI_EXPOSE_REP 42 Medium
org.apache.shardingsphere.mcp.support.descriptor.MCPProtocolDescriptorCatalog.getResourceDescriptors() may expose internal representation by returning MCPProtocolDescriptorCatalog.resourceDescriptors MALICIOUS_CODE EI_EXPOSE_REP 36 Medium
org.apache.shardingsphere.mcp.support.descriptor.MCPProtocolDescriptorCatalog.getResourceTemplateDescriptors() may expose internal representation by returning MCPProtocolDescriptorCatalog.resourceTemplateDescriptors MALICIOUS_CODE EI_EXPOSE_REP 38 Medium
org.apache.shardingsphere.mcp.support.descriptor.MCPProtocolDescriptorCatalog.getToolDescriptors() may expose internal representation by returning MCPProtocolDescriptorCatalog.toolDescriptors MALICIOUS_CODE EI_EXPOSE_REP 40 Medium
new org.apache.shardingsphere.mcp.support.descriptor.MCPProtocolDescriptorCatalog(Collection, Collection, Collection, Collection) may expose internal representation by storing an externally mutable object into MCPProtocolDescriptorCatalog.promptDescriptors MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium
new org.apache.shardingsphere.mcp.support.descriptor.MCPProtocolDescriptorCatalog(Collection, Collection, Collection, Collection) may expose internal representation by storing an externally mutable object into MCPProtocolDescriptorCatalog.resourceDescriptors MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium
new org.apache.shardingsphere.mcp.support.descriptor.MCPProtocolDescriptorCatalog(Collection, Collection, Collection, Collection) may expose internal representation by storing an externally mutable object into MCPProtocolDescriptorCatalog.resourceTemplateDescriptors MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium
new org.apache.shardingsphere.mcp.support.descriptor.MCPProtocolDescriptorCatalog(Collection, Collection, Collection, Collection) may expose internal representation by storing an externally mutable object into MCPProtocolDescriptorCatalog.toolDescriptors MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium

org.apache.shardingsphere.mcp.support.descriptor.MCPResourceNavigationDescriptor

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.descriptor.MCPResourceNavigationDescriptor.getCarriedArguments() may expose internal representation by returning MCPResourceNavigationDescriptor.carriedArguments MALICIOUS_CODE EI_EXPOSE_REP 38 Medium
org.apache.shardingsphere.mcp.support.descriptor.MCPResourceNavigationDescriptor.getRequiredArguments() may expose internal representation by returning MCPResourceNavigationDescriptor.requiredArguments MALICIOUS_CODE EI_EXPOSE_REP 36 Medium
new org.apache.shardingsphere.mcp.support.descriptor.MCPResourceNavigationDescriptor(String, String, Collection, Collection, String) may expose internal representation by storing an externally mutable object into MCPResourceNavigationDescriptor.carriedArguments MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium
new org.apache.shardingsphere.mcp.support.descriptor.MCPResourceNavigationDescriptor(String, String, Collection, Collection, String) may expose internal representation by storing an externally mutable object into MCPResourceNavigationDescriptor.requiredArguments MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium

org.apache.shardingsphere.mcp.support.descriptor.MCPShardingSphereDescriptorCatalog

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.descriptor.MCPShardingSphereDescriptorCatalog.getCompletionTargetDescriptors() may expose internal representation by returning MCPShardingSphereDescriptorCatalog.completionTargetDescriptors MALICIOUS_CODE EI_EXPOSE_REP 37 Medium
org.apache.shardingsphere.mcp.support.descriptor.MCPShardingSphereDescriptorCatalog.getPromptTemplateBindings() may expose internal representation by returning MCPShardingSphereDescriptorCatalog.promptTemplateBindings MALICIOUS_CODE EI_EXPOSE_REP 35 Medium
org.apache.shardingsphere.mcp.support.descriptor.MCPShardingSphereDescriptorCatalog.getResourceMetadata() may expose internal representation by returning MCPShardingSphereDescriptorCatalog.resourceMetadata MALICIOUS_CODE EI_EXPOSE_REP 33 Medium
org.apache.shardingsphere.mcp.support.descriptor.MCPShardingSphereDescriptorCatalog.getResourceNavigationDescriptors() may expose internal representation by returning MCPShardingSphereDescriptorCatalog.resourceNavigationDescriptors MALICIOUS_CODE EI_EXPOSE_REP 39 Medium
org.apache.shardingsphere.mcp.support.descriptor.MCPShardingSphereDescriptorCatalog.getToolRuntimeDescriptors() may expose internal representation by returning MCPShardingSphereDescriptorCatalog.toolRuntimeDescriptors MALICIOUS_CODE EI_EXPOSE_REP 41 Medium
new org.apache.shardingsphere.mcp.support.descriptor.MCPShardingSphereDescriptorCatalog(Collection, Collection, Collection, Collection, Collection) may expose internal representation by storing an externally mutable object into MCPShardingSphereDescriptorCatalog.completionTargetDescriptors MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium
new org.apache.shardingsphere.mcp.support.descriptor.MCPShardingSphereDescriptorCatalog(Collection, Collection, Collection, Collection, Collection) may expose internal representation by storing an externally mutable object into MCPShardingSphereDescriptorCatalog.promptTemplateBindings MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium
new org.apache.shardingsphere.mcp.support.descriptor.MCPShardingSphereDescriptorCatalog(Collection, Collection, Collection, Collection, Collection) may expose internal representation by storing an externally mutable object into MCPShardingSphereDescriptorCatalog.resourceMetadata MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium
new org.apache.shardingsphere.mcp.support.descriptor.MCPShardingSphereDescriptorCatalog(Collection, Collection, Collection, Collection, Collection) may expose internal representation by storing an externally mutable object into MCPShardingSphereDescriptorCatalog.resourceNavigationDescriptors MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium
new org.apache.shardingsphere.mcp.support.descriptor.MCPShardingSphereDescriptorCatalog(Collection, Collection, Collection, Collection, Collection) may expose internal representation by storing an externally mutable object into MCPShardingSphereDescriptorCatalog.toolRuntimeDescriptors MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium

org.apache.shardingsphere.mcp.support.descriptor.ShardingSphereMCPResourceMetadata

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.descriptor.ShardingSphereMCPResourceMetadata.getRelatedResources() may expose internal representation by returning ShardingSphereMCPResourceMetadata.relatedResources MALICIOUS_CODE EI_EXPOSE_REP 46 Medium
org.apache.shardingsphere.mcp.support.descriptor.ShardingSphereMCPResourceMetadata.getRelatedTools() may expose internal representation by returning ShardingSphereMCPResourceMetadata.relatedTools MALICIOUS_CODE EI_EXPOSE_REP 44 Medium
org.apache.shardingsphere.mcp.support.descriptor.ShardingSphereMCPResourceMetadata.getUriVariables() may expose internal representation by returning ShardingSphereMCPResourceMetadata.uriVariables MALICIOUS_CODE EI_EXPOSE_REP 36 Medium
org.apache.shardingsphere.mcp.support.descriptor.ShardingSphereMCPResourceMetadata.getUseBefore() may expose internal representation by returning ShardingSphereMCPResourceMetadata.useBefore MALICIOUS_CODE EI_EXPOSE_REP 48 Medium
new org.apache.shardingsphere.mcp.support.descriptor.ShardingSphereMCPResourceMetadata(String, Collection, String, String, String, Collection, Collection, Collection) may expose internal representation by storing an externally mutable object into ShardingSphereMCPResourceMetadata.relatedResources MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium
new org.apache.shardingsphere.mcp.support.descriptor.ShardingSphereMCPResourceMetadata(String, Collection, String, String, String, Collection, Collection, Collection) may expose internal representation by storing an externally mutable object into ShardingSphereMCPResourceMetadata.relatedTools MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium
new org.apache.shardingsphere.mcp.support.descriptor.ShardingSphereMCPResourceMetadata(String, Collection, String, String, String, Collection, Collection, Collection) may expose internal representation by storing an externally mutable object into ShardingSphereMCPResourceMetadata.uriVariables MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium
new org.apache.shardingsphere.mcp.support.descriptor.ShardingSphereMCPResourceMetadata(String, Collection, String, String, String, Collection, Collection, Collection) may expose internal representation by storing an externally mutable object into ShardingSphereMCPResourceMetadata.useBefore MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPCompletionTargetDescriptor

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPCompletionTargetDescriptor.getArguments() may expose internal representation by returning YamlMCPCompletionTargetDescriptor.arguments MALICIOUS_CODE EI_EXPOSE_REP 50 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPCompletionTargetDescriptor.getMeta() may expose internal representation by returning YamlMCPCompletionTargetDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP 57 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPCompletionTargetDescriptor.setArguments(Collection) may expose internal representation by storing an externally mutable object into YamlMCPCompletionTargetDescriptor.arguments MALICIOUS_CODE EI_EXPOSE_REP2 39 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPCompletionTargetDescriptor.setMeta(Map) may expose internal representation by storing an externally mutable object into YamlMCPCompletionTargetDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP2 39 Medium

org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog.getCompletionTargets() may expose internal representation by returning YamlMCPDescriptorCatalog.completionTargets MALICIOUS_CODE EI_EXPOSE_REP 43 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog.getPrompts() may expose internal representation by returning YamlMCPDescriptorCatalog.prompts MALICIOUS_CODE EI_EXPOSE_REP 41 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog.getResourceNavigation() may expose internal representation by returning YamlMCPDescriptorCatalog.resourceNavigation MALICIOUS_CODE EI_EXPOSE_REP 45 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog.getResourceTemplates() may expose internal representation by returning YamlMCPDescriptorCatalog.resourceTemplates MALICIOUS_CODE EI_EXPOSE_REP 37 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog.getResources() may expose internal representation by returning YamlMCPDescriptorCatalog.resources MALICIOUS_CODE EI_EXPOSE_REP 35 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog.getTools() may expose internal representation by returning YamlMCPDescriptorCatalog.tools MALICIOUS_CODE EI_EXPOSE_REP 39 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog.setCompletionTargets(Collection) may expose internal representation by storing an externally mutable object into YamlMCPDescriptorCatalog.completionTargets MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog.setPrompts(Collection) may expose internal representation by storing an externally mutable object into YamlMCPDescriptorCatalog.prompts MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog.setResourceNavigation(Collection) may expose internal representation by storing an externally mutable object into YamlMCPDescriptorCatalog.resourceNavigation MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog.setResourceTemplates(Collection) may expose internal representation by storing an externally mutable object into YamlMCPDescriptorCatalog.resourceTemplates MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog.setResources(Collection) may expose internal representation by storing an externally mutable object into YamlMCPDescriptorCatalog.resources MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPDescriptorCatalog.setTools(Collection) may expose internal representation by storing an externally mutable object into YamlMCPDescriptorCatalog.tools MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium

org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPPromptDescriptor

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPPromptDescriptor.getArguments() may expose internal representation by returning YamlMCPPromptDescriptor.arguments MALICIOUS_CODE EI_EXPOSE_REP 52 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPPromptDescriptor.getBinding() may expose internal representation by returning YamlMCPPromptDescriptor.binding MALICIOUS_CODE EI_EXPOSE_REP 56 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPPromptDescriptor.getMeta() may expose internal representation by returning YamlMCPPromptDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP 60 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPPromptDescriptor.setArguments(Collection) may expose internal representation by storing an externally mutable object into YamlMCPPromptDescriptor.arguments MALICIOUS_CODE EI_EXPOSE_REP2 39 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPPromptDescriptor.setBinding(YamlMCPPromptBindingDescriptor) may expose internal representation by storing an externally mutable object into YamlMCPPromptDescriptor.binding MALICIOUS_CODE EI_EXPOSE_REP2 39 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPPromptDescriptor.setMeta(Map) may expose internal representation by storing an externally mutable object into YamlMCPPromptDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP2 39 Medium

org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceAnnotations

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceAnnotations.getAudience() may expose internal representation by returning YamlMCPResourceAnnotations.audience MALICIOUS_CODE EI_EXPOSE_REP 39 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceAnnotations.setAudience(List) may expose internal representation by storing an externally mutable object into YamlMCPResourceAnnotations.audience MALICIOUS_CODE EI_EXPOSE_REP2 35 Medium

org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceDescriptor

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceDescriptor.getAnnotations() may expose internal representation by returning YamlMCPResourceDescriptor.annotations MALICIOUS_CODE EI_EXPOSE_REP 55 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceDescriptor.getMeta() may expose internal representation by returning YamlMCPResourceDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP 58 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceDescriptor.getShardingSphereMetadata() may expose internal representation by returning YamlMCPResourceDescriptor.shardingSphereMetadata MALICIOUS_CODE EI_EXPOSE_REP 61 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceDescriptor.setAnnotations(YamlMCPResourceAnnotations) may expose internal representation by storing an externally mutable object into YamlMCPResourceDescriptor.annotations MALICIOUS_CODE EI_EXPOSE_REP2 35 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceDescriptor.setMeta(Map) may expose internal representation by storing an externally mutable object into YamlMCPResourceDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP2 35 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceDescriptor.setShardingSphereMetadata(YamlShardingSphereMCPResourceMetadata) may expose internal representation by storing an externally mutable object into YamlMCPResourceDescriptor.shardingSphereMetadata MALICIOUS_CODE EI_EXPOSE_REP2 35 Medium

org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceNavigationDescriptor

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceNavigationDescriptor.getCarriedArguments() may expose internal representation by returning YamlMCPResourceNavigationDescriptor.carriedArguments MALICIOUS_CODE EI_EXPOSE_REP 43 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceNavigationDescriptor.getRequiredArguments() may expose internal representation by returning YamlMCPResourceNavigationDescriptor.requiredArguments MALICIOUS_CODE EI_EXPOSE_REP 41 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceNavigationDescriptor.setCarriedArguments(Collection) may expose internal representation by storing an externally mutable object into YamlMCPResourceNavigationDescriptor.carriedArguments MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPResourceNavigationDescriptor.setRequiredArguments(Collection) may expose internal representation by storing an externally mutable object into YamlMCPResourceNavigationDescriptor.requiredArguments MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium

org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPToolDescriptor

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPToolDescriptor.getAnnotations() may expose internal representation by returning YamlMCPToolDescriptor.annotations MALICIOUS_CODE EI_EXPOSE_REP 56 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPToolDescriptor.getInputSchema() may expose internal representation by returning YamlMCPToolDescriptor.inputSchema MALICIOUS_CODE EI_EXPOSE_REP 49 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPToolDescriptor.getMeta() may expose internal representation by returning YamlMCPToolDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP 62 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPToolDescriptor.getOutputSchema() may expose internal representation by returning YamlMCPToolDescriptor.outputSchema MALICIOUS_CODE EI_EXPOSE_REP 52 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPToolDescriptor.getRuntime() may expose internal representation by returning YamlMCPToolDescriptor.runtime MALICIOUS_CODE EI_EXPOSE_REP 59 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPToolDescriptor.setAnnotations(YamlMCPToolAnnotations) may expose internal representation by storing an externally mutable object into YamlMCPToolDescriptor.annotations MALICIOUS_CODE EI_EXPOSE_REP2 36 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPToolDescriptor.setInputSchema(Map) may expose internal representation by storing an externally mutable object into YamlMCPToolDescriptor.inputSchema MALICIOUS_CODE EI_EXPOSE_REP2 36 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPToolDescriptor.setMeta(Map) may expose internal representation by storing an externally mutable object into YamlMCPToolDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP2 36 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPToolDescriptor.setOutputSchema(Map) may expose internal representation by storing an externally mutable object into YamlMCPToolDescriptor.outputSchema MALICIOUS_CODE EI_EXPOSE_REP2 36 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlMCPToolDescriptor.setRuntime(YamlMCPToolRuntimeDescriptor) may expose internal representation by storing an externally mutable object into YamlMCPToolDescriptor.runtime MALICIOUS_CODE EI_EXPOSE_REP2 36 Medium

org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlShardingSphereMCPResourceMetadata

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlShardingSphereMCPResourceMetadata.getRelatedResources() may expose internal representation by returning YamlShardingSphereMCPResourceMetadata.relatedResources MALICIOUS_CODE EI_EXPOSE_REP 44 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlShardingSphereMCPResourceMetadata.getRelatedTools() may expose internal representation by returning YamlShardingSphereMCPResourceMetadata.relatedTools MALICIOUS_CODE EI_EXPOSE_REP 42 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlShardingSphereMCPResourceMetadata.getUriVariables() may expose internal representation by returning YamlShardingSphereMCPResourceMetadata.uriVariables MALICIOUS_CODE EI_EXPOSE_REP 34 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlShardingSphereMCPResourceMetadata.getUseBefore() may expose internal representation by returning YamlShardingSphereMCPResourceMetadata.useBefore MALICIOUS_CODE EI_EXPOSE_REP 46 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlShardingSphereMCPResourceMetadata.setRelatedResources(Collection) may expose internal representation by storing an externally mutable object into YamlShardingSphereMCPResourceMetadata.relatedResources MALICIOUS_CODE EI_EXPOSE_REP2 31 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlShardingSphereMCPResourceMetadata.setRelatedTools(Collection) may expose internal representation by storing an externally mutable object into YamlShardingSphereMCPResourceMetadata.relatedTools MALICIOUS_CODE EI_EXPOSE_REP2 31 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlShardingSphereMCPResourceMetadata.setUriVariables(Collection) may expose internal representation by storing an externally mutable object into YamlShardingSphereMCPResourceMetadata.uriVariables MALICIOUS_CODE EI_EXPOSE_REP2 31 Medium
org.apache.shardingsphere.mcp.support.descriptor.yaml.YamlShardingSphereMCPResourceMetadata.setUseBefore(Collection) may expose internal representation by storing an externally mutable object into YamlShardingSphereMCPResourceMetadata.useBefore MALICIOUS_CODE EI_EXPOSE_REP2 31 Medium

org.apache.shardingsphere.mcp.support.protocol.MCPCompletionAction

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.protocol.MCPCompletionAction.getContextArguments() may expose internal representation by returning MCPCompletionAction.contextArguments MALICIOUS_CODE EI_EXPOSE_REP 50 Medium
org.apache.shardingsphere.mcp.support.protocol.MCPCompletionAction.getMissingContextArguments() may expose internal representation by returning MCPCompletionAction.missingContextArguments MALICIOUS_CODE EI_EXPOSE_REP 53 Medium
org.apache.shardingsphere.mcp.support.protocol.MCPCompletionAction.getResumeArguments() may expose internal representation by returning MCPCompletionAction.resumeArguments MALICIOUS_CODE EI_EXPOSE_REP 62 Medium

org.apache.shardingsphere.mcp.support.protocol.MCPCompletionAction$MCPCompletionActionBuilder

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.protocol.MCPCompletionAction$MCPCompletionActionBuilder.contextArguments(Map) may expose internal representation by storing an externally mutable object into MCPCompletionAction$MCPCompletionActionBuilder.contextArguments$value MALICIOUS_CODE EI_EXPOSE_REP2 33 Medium
org.apache.shardingsphere.mcp.support.protocol.MCPCompletionAction$MCPCompletionActionBuilder.missingContextArguments(Collection) may expose internal representation by storing an externally mutable object into MCPCompletionAction$MCPCompletionActionBuilder.missingContextArguments$value MALICIOUS_CODE EI_EXPOSE_REP2 33 Medium
org.apache.shardingsphere.mcp.support.protocol.MCPCompletionAction$MCPCompletionActionBuilder.resumeArguments(Map) may expose internal representation by storing an externally mutable object into MCPCompletionAction$MCPCompletionActionBuilder.resumeArguments$value MALICIOUS_CODE EI_EXPOSE_REP2 33 Medium

org.apache.shardingsphere.mcp.support.protocol.MCPModelFacingPayloadContract

Bug Category Details Line Priority
Public static org.apache.shardingsphere.mcp.support.protocol.MCPModelFacingPayloadContract.getNextActionSchemaAllowedFields() may expose internal representation by returning MCPModelFacingPayloadContract.NEXT_ACTION_SCHEMA_ALLOWED_FIELDS MALICIOUS_CODE MS_EXPOSE_REP 106 Medium

org.apache.shardingsphere.mcp.support.protocol.payload.MCPMapPayload

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.protocol.payload.MCPMapPayload.toPayload() may expose internal representation by returning MCPMapPayload.payload MALICIOUS_CODE EI_EXPOSE_REP 37 Medium
new org.apache.shardingsphere.mcp.support.protocol.payload.MCPMapPayload(Map) may expose internal representation by storing an externally mutable object into MCPMapPayload.payload MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.apache.shardingsphere.mcp.support.workflow.model.ClarifiedIntent

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.workflow.model.ClarifiedIntent.getClarificationMessages() may expose internal representation by returning ClarifiedIntent.clarificationMessages MALICIOUS_CODE EI_EXPOSE_REP 39 Medium
org.apache.shardingsphere.mcp.support.workflow.model.ClarifiedIntent.getInferredValues() may expose internal representation by returning ClarifiedIntent.inferredValues MALICIOUS_CODE EI_EXPOSE_REP 35 Medium
org.apache.shardingsphere.mcp.support.workflow.model.ClarifiedIntent.getUnresolvedFields() may expose internal representation by returning ClarifiedIntent.unresolvedFields MALICIOUS_CODE EI_EXPOSE_REP 37 Medium

org.apache.shardingsphere.mcp.support.workflow.model.InteractionPlan

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.workflow.model.InteractionPlan.getSteps() may expose internal representation by returning InteractionPlan.steps MALICIOUS_CODE EI_EXPOSE_REP 45 Medium
org.apache.shardingsphere.mcp.support.workflow.model.InteractionPlan.getValidationStrategy() may expose internal representation by returning InteractionPlan.validationStrategy MALICIOUS_CODE EI_EXPOSE_REP 47 Medium

org.apache.shardingsphere.mcp.support.workflow.model.RuleWorkflowFeatureData

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.workflow.model.RuleWorkflowFeatureData.getExpectedRules() may expose internal representation by returning RuleWorkflowFeatureData.expectedRules MALICIOUS_CODE EI_EXPOSE_REP 34 Medium

org.apache.shardingsphere.mcp.support.workflow.model.ValidationReport

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.workflow.model.ValidationReport.getMismatches() may expose internal representation by returning ValidationReport.mismatches MALICIOUS_CODE EI_EXPOSE_REP 43 Medium

org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot.getAlgorithmCandidates() may expose internal representation by returning WorkflowContextSnapshot.algorithmCandidates MALICIOUS_CODE EI_EXPOSE_REP 57 Medium
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot.getClarifiedIntent() may expose internal representation by returning WorkflowContextSnapshot.clarifiedIntent MALICIOUS_CODE EI_EXPOSE_REP 49 Medium
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot.getInteractionPlan() may expose internal representation by returning WorkflowContextSnapshot.interactionPlan MALICIOUS_CODE EI_EXPOSE_REP 53 Medium
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot.getIssues() may expose internal representation by returning WorkflowContextSnapshot.issues MALICIOUS_CODE EI_EXPOSE_REP 55 Medium
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot.getPropertyRequirements() may expose internal representation by returning WorkflowContextSnapshot.propertyRequirements MALICIOUS_CODE EI_EXPOSE_REP 59 Medium
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot.getRequest() may expose internal representation by returning WorkflowContextSnapshot.request MALICIOUS_CODE EI_EXPOSE_REP 47 Medium
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot.getResourceUriTemplates() may expose internal representation by returning WorkflowContextSnapshot.resourceUriTemplates MALICIOUS_CODE EI_EXPOSE_REP 61 Medium
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot.getRuleArtifacts() may expose internal representation by returning WorkflowContextSnapshot.ruleArtifacts MALICIOUS_CODE EI_EXPOSE_REP 66 Medium
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot.getValidationReport() may expose internal representation by returning WorkflowContextSnapshot.validationReport MALICIOUS_CODE EI_EXPOSE_REP 64 Medium
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot.setClarifiedIntent(ClarifiedIntent) may expose internal representation by storing an externally mutable object into WorkflowContextSnapshot.clarifiedIntent MALICIOUS_CODE EI_EXPOSE_REP2 34 Medium
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot.setInteractionPlan(InteractionPlan) may expose internal representation by storing an externally mutable object into WorkflowContextSnapshot.interactionPlan MALICIOUS_CODE EI_EXPOSE_REP2 34 Medium
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot.setRequest(WorkflowRequest) may expose internal representation by storing an externally mutable object into WorkflowContextSnapshot.request MALICIOUS_CODE EI_EXPOSE_REP2 34 Medium
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowContextSnapshot.setValidationReport(ValidationReport) may expose internal representation by storing an externally mutable object into WorkflowContextSnapshot.validationReport MALICIOUS_CODE EI_EXPOSE_REP2 63 Medium

org.apache.shardingsphere.mcp.support.workflow.model.WorkflowIssue

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowIssue.getDetails() may expose internal representation by returning WorkflowIssue.details MALICIOUS_CODE EI_EXPOSE_REP 46 Medium
new org.apache.shardingsphere.mcp.support.workflow.model.WorkflowIssue(String, String, String, String, String, boolean, Map) may expose internal representation by storing an externally mutable object into WorkflowIssue.details MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.apache.shardingsphere.mcp.support.workflow.model.WorkflowRequest

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowRequest.getPrimaryAlgorithmProperties() may expose internal representation by returning WorkflowRequest.primaryAlgorithmProperties MALICIOUS_CODE EI_EXPOSE_REP 52 Medium
org.apache.shardingsphere.mcp.support.workflow.model.WorkflowRequest.getPrimaryAlgorithmSecretReferences() may expose internal representation by returning WorkflowRequest.primaryAlgorithmSecretReferences MALICIOUS_CODE EI_EXPOSE_REP 54 Medium

org.apache.shardingsphere.mcp.support.workflow.service.WorkflowPlanningArguments

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.workflow.service.WorkflowPlanningArguments.getBooleanArgument(String) has Boolean return type and returns explicit null BAD_PRACTICE NP_BOOLEAN_RETURN_NULL 57 Medium

org.apache.shardingsphere.mcp.support.workflow.service.WorkflowSynchronizationException

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.support.workflow.service.WorkflowSynchronizationException.getMismatches() may expose internal representation by returning WorkflowSynchronizationException.mismatches MALICIOUS_CODE EI_EXPOSE_REP 33 Medium
new org.apache.shardingsphere.mcp.support.workflow.service.WorkflowSynchronizationException(String, String, List) may expose internal representation by storing an externally mutable object into WorkflowSynchronizationException.mismatches MALICIOUS_CODE EI_EXPOSE_REP2 38 Medium