McpResource.java
package fr.tiogars.chat.domains.mcp.models;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* Represents an MCP resource.
*/
@Schema(description = "MCP resource")
public record McpResource(
@Schema(description = "Resource URI", example = "file:///path/to/file.txt")
String uri,
@Schema(description = "Resource name", example = "file.txt")
String name,
@Schema(description = "Resource type", example = "file")
String type,
@Schema(description = "MIME type", example = "text/plain")
String mimeType,
@Schema(description = "Resource size in bytes")
Long size
) {
}