"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.createMCPServer = createMCPServer;
const mcp_js_1 = require("@modelcontextprotocol/sdk/server/mcp.js");
const core_js_1 = require("../core.js");
const prompts_js_1 = require("./prompts.js");
const resources_js_1 = require("./resources.js");
const tools_js_1 = require("./tools.js");
const streamingProfilesCreateStreamingProfile_js_1 = require("./tools/streamingProfilesCreateStreamingProfile.js");
const streamingProfilesDeleteStreamingProfile_js_1 = require("./tools/streamingProfilesDeleteStreamingProfile.js");
const streamingProfilesGetStreamingProfile_js_1 = require("./tools/streamingProfilesGetStreamingProfile.js");
const streamingProfilesGetStreamingProfiles_js_1 = require("./tools/streamingProfilesGetStreamingProfiles.js");
const streamingProfilesUpdateStreamingProfile_js_1 = require("./tools/streamingProfilesUpdateStreamingProfile.js");
const transformationsCreateTransformation_js_1 = require("./tools/transformationsCreateTransformation.js");
const transformationsDeleteTransformation_js_1 = require("./tools/transformationsDeleteTransformation.js");
const transformationsGetTransformation_js_1 = require("./tools/transformationsGetTransformation.js");
const transformationsListTransformations_js_1 = require("./tools/transformationsListTransformations.js");
const transformationsUpdateTransformation_js_1 = require("./tools/transformationsUpdateTransformation.js");
const triggersCreateTrigger_js_1 = require("./tools/triggersCreateTrigger.js");
const triggersDeleteTrigger_js_1 = require("./tools/triggersDeleteTrigger.js");
const triggersListTrigger_js_1 = require("./tools/triggersListTrigger.js");
const triggersUpdateTrigger_js_1 = require("./tools/triggersUpdateTrigger.js");
const uploadMappingsCreateUploadMapping_js_1 = require("./tools/uploadMappingsCreateUploadMapping.js");
const uploadMappingsDeleteUploadMapping_js_1 = require("./tools/uploadMappingsDeleteUploadMapping.js");
const uploadMappingsListUploadMappings_js_1 = require("./tools/uploadMappingsListUploadMappings.js");
const uploadMappingsUpdateUploadMapping_js_1 = require("./tools/uploadMappingsUpdateUploadMapping.js");
const uploadPresetsCreateUploadPreset_js_1 = require("./tools/uploadPresetsCreateUploadPreset.js");
const uploadPresetsDeleteUploadPreset_js_1 = require("./tools/uploadPresetsDeleteUploadPreset.js");
const uploadPresetsGetUploadPreset_js_1 = require("./tools/uploadPresetsGetUploadPreset.js");
const uploadPresetsListUploadPresets_js_1 = require("./tools/uploadPresetsListUploadPresets.js");
const uploadPresetsUpdateUploadPreset_js_1 = require("./tools/uploadPresetsUpdateUploadPreset.js");
function createMCPServer(deps) {
    const server = new mcp_js_1.McpServer({
        name: "CloudinaryEnvConfig",
        version: "0.3.4",
    });
    const client = new core_js_1.CloudinaryEnvConfigCore({
        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 = (0, tools_js_1.createRegisterTool)(deps.logger, server, client, scopes, allowedTools);
    const resource = (0, resources_js_1.createRegisterResource)(deps.logger, server, client, scopes);
    const resourceTemplate = (0, resources_js_1.createRegisterResourceTemplate)(deps.logger, server, client, scopes);
    const prompt = (0, prompts_js_1.createRegisterPrompt)(deps.logger, server, client, scopes);
    const register = { tool, resource, resourceTemplate, prompt };
    void register; // suppress unused warnings
    tool(transformationsListTransformations_js_1.tool$transformationsListTransformations);
    tool(transformationsGetTransformation_js_1.tool$transformationsGetTransformation);
    tool(transformationsCreateTransformation_js_1.tool$transformationsCreateTransformation);
    tool(transformationsUpdateTransformation_js_1.tool$transformationsUpdateTransformation);
    tool(transformationsDeleteTransformation_js_1.tool$transformationsDeleteTransformation);
    tool(uploadPresetsCreateUploadPreset_js_1.tool$uploadPresetsCreateUploadPreset);
    tool(uploadPresetsListUploadPresets_js_1.tool$uploadPresetsListUploadPresets);
    tool(uploadPresetsGetUploadPreset_js_1.tool$uploadPresetsGetUploadPreset);
    tool(uploadPresetsUpdateUploadPreset_js_1.tool$uploadPresetsUpdateUploadPreset);
    tool(uploadPresetsDeleteUploadPreset_js_1.tool$uploadPresetsDeleteUploadPreset);
    tool(uploadMappingsListUploadMappings_js_1.tool$uploadMappingsListUploadMappings);
    tool(uploadMappingsCreateUploadMapping_js_1.tool$uploadMappingsCreateUploadMapping);
    tool(uploadMappingsUpdateUploadMapping_js_1.tool$uploadMappingsUpdateUploadMapping);
    tool(uploadMappingsDeleteUploadMapping_js_1.tool$uploadMappingsDeleteUploadMapping);
    tool(triggersListTrigger_js_1.tool$triggersListTrigger);
    tool(triggersCreateTrigger_js_1.tool$triggersCreateTrigger);
    tool(triggersUpdateTrigger_js_1.tool$triggersUpdateTrigger);
    tool(triggersDeleteTrigger_js_1.tool$triggersDeleteTrigger);
    tool(streamingProfilesCreateStreamingProfile_js_1.tool$streamingProfilesCreateStreamingProfile);
    tool(streamingProfilesGetStreamingProfiles_js_1.tool$streamingProfilesGetStreamingProfiles);
    tool(streamingProfilesGetStreamingProfile_js_1.tool$streamingProfilesGetStreamingProfile);
    tool(streamingProfilesUpdateStreamingProfile_js_1.tool$streamingProfilesUpdateStreamingProfile);
    tool(streamingProfilesDeleteStreamingProfile_js_1.tool$streamingProfilesDeleteStreamingProfile);
    return server;
}
//# sourceMappingURL=server.js.map