import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { registerTools } from "./tools.js";
const DEFAULT_INFO = {
    name: "clawql-mcp",
    version: "3.2.2",
};
/**
 * Single construction path for MCP servers (stdio, Streamable HTTP, gRPC) so tool registration stays identical.
 */
export function createRegisteredMcpServer(serverInfo = DEFAULT_INFO) {
    const server = new McpServer(serverInfo);
    registerTools(server);
    return server;
}
