/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { CloudinaryAssetMgmtCore } from "../core.js";
import { createRegisterPrompt } from "./prompts.js";
import { createRegisterResource, createRegisterResourceTemplate, } from "./resources.js";
import { createRegisterTool } from "./tools.js";
import { tool$assetRelationsCreateAssetRelationsByAssetId } from "./tools/assetRelationsCreateAssetRelationsByAssetId.js";
import { tool$assetRelationsDeleteAssetRelationsByAssetId } from "./tools/assetRelationsDeleteAssetRelationsByAssetId.js";
import { tool$assetsDerivedDestroy } from "./tools/assetsDerivedDestroy.js";
import { tool$assetsDestroyByAssetId } from "./tools/assetsDestroyByAssetId.js";
import { tool$assetsDownloadAsset } from "./tools/assetsDownloadAsset.js";
import { tool$assetsDownloadBackupAsset } from "./tools/assetsDownloadBackupAsset.js";
import { tool$assetsGenerateArchive } from "./tools/assetsGenerateArchive.js";
import { tool$assetsGetResourceByAssetId } from "./tools/assetsGetResourceByAssetId.js";
import { tool$assetsListImages } from "./tools/assetsListImages.js";
import { tool$assetsListRawFiles } from "./tools/assetsListRawFiles.js";
import { tool$assetsListResourceTags } from "./tools/assetsListResourceTags.js";
import { tool$assetsListVideos } from "./tools/assetsListVideos.js";
import { tool$assetsRenameAsset } from "./tools/assetsRenameAsset.js";
import { tool$assetsUpdateResourceByAssetId } from "./tools/assetsUpdateResourceByAssetId.js";
import { tool$foldersCreateFolder } from "./tools/foldersCreateFolder.js";
import { tool$foldersDestroyFolder } from "./tools/foldersDestroyFolder.js";
import { tool$foldersSearchFolders } from "./tools/foldersSearchFolders.js";
import { tool$foldersUpdateFolder } from "./tools/foldersUpdateFolder.js";
import { tool$searchSearchAssets } from "./tools/searchSearchAssets.js";
import { tool$searchVisualSearchAssets } from "./tools/searchVisualSearchAssets.js";
import { tool$uploadUpload } from "./tools/uploadUpload.js";
import { tool$usageGetUsage } from "./tools/usageGetUsage.js";
export function createMCPServer(deps) {
    const server = new McpServer({
        name: "CloudinaryAssetMgmt",
        version: "0.5.0",
    });
    const client = new CloudinaryAssetMgmtCore({
        security: deps.security,
        cloudName: deps.cloudName,
        serverURL: deps.serverURL,
        serverIdx: deps.serverIdx,
        region: deps.region,
        host: deps.host,
    });
    const scopes = new Set(deps.scopes);
    const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
    const tool = createRegisterTool(deps.logger, server, client, scopes, allowedTools);
    const resource = createRegisterResource(deps.logger, server, client, scopes);
    const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
    const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
    const register = { tool, resource, resourceTemplate, prompt };
    void register; // suppress unused warnings
    tool(tool$uploadUpload);
    tool(tool$assetsRenameAsset);
    tool(tool$assetsDownloadAsset);
    tool(tool$assetsGenerateArchive);
    tool(tool$assetsDownloadBackupAsset);
    tool(tool$assetsDestroyByAssetId);
    tool(tool$assetsListImages);
    tool(tool$assetsListVideos);
    tool(tool$assetsListRawFiles);
    tool(tool$assetsGetResourceByAssetId);
    tool(tool$assetsUpdateResourceByAssetId);
    tool(tool$assetsListResourceTags);
    tool(tool$assetsDerivedDestroy);
    tool(tool$usageGetUsage);
    tool(tool$assetRelationsCreateAssetRelationsByAssetId);
    tool(tool$assetRelationsDeleteAssetRelationsByAssetId);
    tool(tool$foldersUpdateFolder);
    tool(tool$foldersCreateFolder);
    tool(tool$foldersDestroyFolder);
    tool(tool$foldersSearchFolders);
    tool(tool$searchSearchAssets);
    tool(tool$searchVisualSearchAssets);
    return server;
}
//# sourceMappingURL=server.js.map