/*
 * Copyright 2017-2025 noear.org and authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.noear.solon.ai.mcp.server;

import lombok.Getter;
import lombok.Setter;
import org.noear.solon.ai.mcp.McpChannel;

import java.time.Duration;

/**
 * Mcp 服务属性
 *
 * @author noear
 * @since 3.1
 */
@Setter
@Getter
public class McpServerProperties {
    /**
     * 服务名称
     */
    private String name = "Solon-Mcp-Server";

    /**
     * 服务端版本号
     */
    private String version = "1.0.0";

    /**
     * 通道
     */
    private String channel;

    /**
     * mcp 端点（路径）
     */
    private String mcpEndpoint;

    /**
     * sse 端点（路径）
     *
     * @deprecated 3.5
     */
    @Deprecated
    private String sseEndpoint;

    /**
     * message 端点（路径）
     *
     * @deprecated 3.5
     */
    @Deprecated
    private String messageEndpoint;

    /**
     * 上下文路径（主要给 messageEndpoint 使用）
     *
     * @since 3.5
     * @deprecated 3.5
     */
    @Deprecated
    private String contextPath;

    /**
     * 服务器SSE心跳间隔（空表示不启用）
     */
    private Duration heartbeatInterval = Duration.ofSeconds(30);

    /**
     * 启用输出架构
     */
    private boolean enableOutputSchema;
}