"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 agentsCreate_js_1 = require("./tools/agentsCreate.js");
const agentsDelete_js_1 = require("./tools/agentsDelete.js");
const agentsInvoke_js_1 = require("./tools/agentsInvoke.js");
const agentsList_js_1 = require("./tools/agentsList.js");
const agentsResponsesCreate_js_1 = require("./tools/agentsResponsesCreate.js");
const agentsRetrieve_js_1 = require("./tools/agentsRetrieve.js");
const agentsRun_js_1 = require("./tools/agentsRun.js");
const agentsStream_js_1 = require("./tools/agentsStream.js");
const agentsStreamRun_js_1 = require("./tools/agentsStreamRun.js");
const agentsUpdate_js_1 = require("./tools/agentsUpdate.js");
const budgetsCreate_js_1 = require("./tools/budgetsCreate.js");
const budgetsDelete_js_1 = require("./tools/budgetsDelete.js");
const budgetsGet_js_1 = require("./tools/budgetsGet.js");
const budgetsList_js_1 = require("./tools/budgetsList.js");
const budgetsUpdate_js_1 = require("./tools/budgetsUpdate.js");
const chunkingParse_js_1 = require("./tools/chunkingParse.js");
const contactsCreate_js_1 = require("./tools/contactsCreate.js");
const contactsDelete_js_1 = require("./tools/contactsDelete.js");
const contactsList_js_1 = require("./tools/contactsList.js");
const contactsRetrieve_js_1 = require("./tools/contactsRetrieve.js");
const contactsUpdate_js_1 = require("./tools/contactsUpdate.js");
const datasetsClear_js_1 = require("./tools/datasetsClear.js");
const datasetsCreate_js_1 = require("./tools/datasetsCreate.js");
const datasetsCreateDatapoint_js_1 = require("./tools/datasetsCreateDatapoint.js");
const datasetsDelete_js_1 = require("./tools/datasetsDelete.js");
const datasetsDeleteDatapoint_js_1 = require("./tools/datasetsDeleteDatapoint.js");
const datasetsList_js_1 = require("./tools/datasetsList.js");
const datasetsListDatapoints_js_1 = require("./tools/datasetsListDatapoints.js");
const datasetsRetrieve_js_1 = require("./tools/datasetsRetrieve.js");
const datasetsRetrieveDatapoint_js_1 = require("./tools/datasetsRetrieveDatapoint.js");
const datasetsUpdate_js_1 = require("./tools/datasetsUpdate.js");
const datasetsUpdateDatapoint_js_1 = require("./tools/datasetsUpdateDatapoint.js");
const deploymentsGetConfig_js_1 = require("./tools/deploymentsGetConfig.js");
const deploymentsInvoke_js_1 = require("./tools/deploymentsInvoke.js");
const deploymentsList_js_1 = require("./tools/deploymentsList.js");
const deploymentsMetricsCreate_js_1 = require("./tools/deploymentsMetricsCreate.js");
const deploymentsStream_js_1 = require("./tools/deploymentsStream.js");
const evalsAll_js_1 = require("./tools/evalsAll.js");
const evalsCreate_js_1 = require("./tools/evalsCreate.js");
const evalsDelete_js_1 = require("./tools/evalsDelete.js");
const evalsUpdate_js_1 = require("./tools/evalsUpdate.js");
const feedbackCreate_js_1 = require("./tools/feedbackCreate.js");
const filesCreate_js_1 = require("./tools/filesCreate.js");
const filesDelete_js_1 = require("./tools/filesDelete.js");
const filesGet_js_1 = require("./tools/filesGet.js");
const filesList_js_1 = require("./tools/filesList.js");
const knowledgeCreate_js_1 = require("./tools/knowledgeCreate.js");
const knowledgeCreateChunks_js_1 = require("./tools/knowledgeCreateChunks.js");
const knowledgeCreateDatasource_js_1 = require("./tools/knowledgeCreateDatasource.js");
const knowledgeDelete_js_1 = require("./tools/knowledgeDelete.js");
const knowledgeDeleteChunk_js_1 = require("./tools/knowledgeDeleteChunk.js");
const knowledgeDeleteChunks_js_1 = require("./tools/knowledgeDeleteChunks.js");
const knowledgeDeleteDatasource_js_1 = require("./tools/knowledgeDeleteDatasource.js");
const knowledgeGetChunksCount_js_1 = require("./tools/knowledgeGetChunksCount.js");
const knowledgeList_js_1 = require("./tools/knowledgeList.js");
const knowledgeListChunks_js_1 = require("./tools/knowledgeListChunks.js");
const knowledgeListChunksPaginated_js_1 = require("./tools/knowledgeListChunksPaginated.js");
const knowledgeListDatasources_js_1 = require("./tools/knowledgeListDatasources.js");
const knowledgeRetrieve_js_1 = require("./tools/knowledgeRetrieve.js");
const knowledgeRetrieveChunk_js_1 = require("./tools/knowledgeRetrieveChunk.js");
const knowledgeRetrieveDatasource_js_1 = require("./tools/knowledgeRetrieveDatasource.js");
const knowledgeSearch_js_1 = require("./tools/knowledgeSearch.js");
const knowledgeUpdate_js_1 = require("./tools/knowledgeUpdate.js");
const knowledgeUpdateChunk_js_1 = require("./tools/knowledgeUpdateChunk.js");
const knowledgeUpdateDatasource_js_1 = require("./tools/knowledgeUpdateDatasource.js");
const memoryStoresCreate_js_1 = require("./tools/memoryStoresCreate.js");
const memoryStoresCreateDocument_js_1 = require("./tools/memoryStoresCreateDocument.js");
const memoryStoresCreateMemory_js_1 = require("./tools/memoryStoresCreateMemory.js");
const memoryStoresDelete_js_1 = require("./tools/memoryStoresDelete.js");
const memoryStoresDeleteDocument_js_1 = require("./tools/memoryStoresDeleteDocument.js");
const memoryStoresDeleteMemory_js_1 = require("./tools/memoryStoresDeleteMemory.js");
const memoryStoresList_js_1 = require("./tools/memoryStoresList.js");
const memoryStoresListDocuments_js_1 = require("./tools/memoryStoresListDocuments.js");
const memoryStoresListMemories_js_1 = require("./tools/memoryStoresListMemories.js");
const memoryStoresRetrieve_js_1 = require("./tools/memoryStoresRetrieve.js");
const memoryStoresRetrieveDocument_js_1 = require("./tools/memoryStoresRetrieveDocument.js");
const memoryStoresRetrieveMemory_js_1 = require("./tools/memoryStoresRetrieveMemory.js");
const memoryStoresUpdate_js_1 = require("./tools/memoryStoresUpdate.js");
const memoryStoresUpdateDocument_js_1 = require("./tools/memoryStoresUpdateDocument.js");
const memoryStoresUpdateMemory_js_1 = require("./tools/memoryStoresUpdateMemory.js");
const modelsList_js_1 = require("./tools/modelsList.js");
const promptsCreate_js_1 = require("./tools/promptsCreate.js");
const promptsDelete_js_1 = require("./tools/promptsDelete.js");
const promptsGetVersion_js_1 = require("./tools/promptsGetVersion.js");
const promptsList_js_1 = require("./tools/promptsList.js");
const promptsListVersions_js_1 = require("./tools/promptsListVersions.js");
const promptsRetrieve_js_1 = require("./tools/promptsRetrieve.js");
const promptsUpdate_js_1 = require("./tools/promptsUpdate.js");
const remoteconfigsRetrieve_js_1 = require("./tools/remoteconfigsRetrieve.js");
const toolsCreate_js_1 = require("./tools/toolsCreate.js");
const toolsDelete_js_1 = require("./tools/toolsDelete.js");
const toolsList_js_1 = require("./tools/toolsList.js");
const toolsRetrieve_js_1 = require("./tools/toolsRetrieve.js");
const toolsUpdate_js_1 = require("./tools/toolsUpdate.js");
function createMCPServer(deps) {
    const server = new mcp_js_1.McpServer({
        name: "Orq",
        version: "4.0.13",
    });
    const client = new core_js_1.OrqCore({
        apiKey: deps.apiKey,
        contactId: deps.contactId,
        environment: deps.environment,
        serverURL: deps.serverURL,
        serverIdx: deps.serverIdx,
    });
    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(contactsCreate_js_1.tool$contactsCreate);
    tool(contactsList_js_1.tool$contactsList);
    tool(contactsRetrieve_js_1.tool$contactsRetrieve);
    tool(contactsUpdate_js_1.tool$contactsUpdate);
    tool(contactsDelete_js_1.tool$contactsDelete);
    tool(feedbackCreate_js_1.tool$feedbackCreate);
    tool(evalsAll_js_1.tool$evalsAll);
    tool(evalsCreate_js_1.tool$evalsCreate);
    tool(evalsUpdate_js_1.tool$evalsUpdate);
    tool(evalsDelete_js_1.tool$evalsDelete);
    tool(deploymentsInvoke_js_1.tool$deploymentsInvoke);
    tool(deploymentsList_js_1.tool$deploymentsList);
    tool(deploymentsGetConfig_js_1.tool$deploymentsGetConfig);
    tool(deploymentsStream_js_1.tool$deploymentsStream);
    tool(agentsCreate_js_1.tool$agentsCreate);
    tool(agentsDelete_js_1.tool$agentsDelete);
    tool(agentsRetrieve_js_1.tool$agentsRetrieve);
    tool(agentsUpdate_js_1.tool$agentsUpdate);
    tool(agentsInvoke_js_1.tool$agentsInvoke);
    tool(agentsList_js_1.tool$agentsList);
    tool(agentsRun_js_1.tool$agentsRun);
    tool(agentsStreamRun_js_1.tool$agentsStreamRun);
    tool(agentsStream_js_1.tool$agentsStream);
    tool(filesCreate_js_1.tool$filesCreate);
    tool(filesList_js_1.tool$filesList);
    tool(filesGet_js_1.tool$filesGet);
    tool(filesDelete_js_1.tool$filesDelete);
    tool(promptsList_js_1.tool$promptsList);
    tool(promptsCreate_js_1.tool$promptsCreate);
    tool(promptsRetrieve_js_1.tool$promptsRetrieve);
    tool(promptsUpdate_js_1.tool$promptsUpdate);
    tool(promptsDelete_js_1.tool$promptsDelete);
    tool(promptsListVersions_js_1.tool$promptsListVersions);
    tool(promptsGetVersion_js_1.tool$promptsGetVersion);
    tool(remoteconfigsRetrieve_js_1.tool$remoteconfigsRetrieve);
    tool(modelsList_js_1.tool$modelsList);
    tool(toolsList_js_1.tool$toolsList);
    tool(toolsCreate_js_1.tool$toolsCreate);
    tool(toolsUpdate_js_1.tool$toolsUpdate);
    tool(toolsDelete_js_1.tool$toolsDelete);
    tool(toolsRetrieve_js_1.tool$toolsRetrieve);
    tool(budgetsList_js_1.tool$budgetsList);
    tool(budgetsCreate_js_1.tool$budgetsCreate);
    tool(budgetsGet_js_1.tool$budgetsGet);
    tool(budgetsUpdate_js_1.tool$budgetsUpdate);
    tool(budgetsDelete_js_1.tool$budgetsDelete);
    tool(knowledgeList_js_1.tool$knowledgeList);
    tool(knowledgeCreate_js_1.tool$knowledgeCreate);
    tool(knowledgeRetrieve_js_1.tool$knowledgeRetrieve);
    tool(knowledgeUpdate_js_1.tool$knowledgeUpdate);
    tool(knowledgeDelete_js_1.tool$knowledgeDelete);
    tool(knowledgeSearch_js_1.tool$knowledgeSearch);
    tool(knowledgeListDatasources_js_1.tool$knowledgeListDatasources);
    tool(knowledgeCreateDatasource_js_1.tool$knowledgeCreateDatasource);
    tool(knowledgeRetrieveDatasource_js_1.tool$knowledgeRetrieveDatasource);
    tool(knowledgeDeleteDatasource_js_1.tool$knowledgeDeleteDatasource);
    tool(knowledgeUpdateDatasource_js_1.tool$knowledgeUpdateDatasource);
    tool(knowledgeCreateChunks_js_1.tool$knowledgeCreateChunks);
    tool(knowledgeListChunks_js_1.tool$knowledgeListChunks);
    tool(knowledgeDeleteChunks_js_1.tool$knowledgeDeleteChunks);
    tool(knowledgeListChunksPaginated_js_1.tool$knowledgeListChunksPaginated);
    tool(knowledgeGetChunksCount_js_1.tool$knowledgeGetChunksCount);
    tool(knowledgeUpdateChunk_js_1.tool$knowledgeUpdateChunk);
    tool(knowledgeDeleteChunk_js_1.tool$knowledgeDeleteChunk);
    tool(knowledgeRetrieveChunk_js_1.tool$knowledgeRetrieveChunk);
    tool(chunkingParse_js_1.tool$chunkingParse);
    tool(memoryStoresList_js_1.tool$memoryStoresList);
    tool(memoryStoresCreate_js_1.tool$memoryStoresCreate);
    tool(memoryStoresRetrieve_js_1.tool$memoryStoresRetrieve);
    tool(memoryStoresUpdate_js_1.tool$memoryStoresUpdate);
    tool(memoryStoresDelete_js_1.tool$memoryStoresDelete);
    tool(memoryStoresListMemories_js_1.tool$memoryStoresListMemories);
    tool(memoryStoresCreateMemory_js_1.tool$memoryStoresCreateMemory);
    tool(memoryStoresRetrieveMemory_js_1.tool$memoryStoresRetrieveMemory);
    tool(memoryStoresUpdateMemory_js_1.tool$memoryStoresUpdateMemory);
    tool(memoryStoresDeleteMemory_js_1.tool$memoryStoresDeleteMemory);
    tool(memoryStoresListDocuments_js_1.tool$memoryStoresListDocuments);
    tool(memoryStoresCreateDocument_js_1.tool$memoryStoresCreateDocument);
    tool(memoryStoresRetrieveDocument_js_1.tool$memoryStoresRetrieveDocument);
    tool(memoryStoresUpdateDocument_js_1.tool$memoryStoresUpdateDocument);
    tool(memoryStoresDeleteDocument_js_1.tool$memoryStoresDeleteDocument);
    tool(datasetsList_js_1.tool$datasetsList);
    tool(datasetsCreate_js_1.tool$datasetsCreate);
    tool(datasetsRetrieve_js_1.tool$datasetsRetrieve);
    tool(datasetsUpdate_js_1.tool$datasetsUpdate);
    tool(datasetsDelete_js_1.tool$datasetsDelete);
    tool(datasetsListDatapoints_js_1.tool$datasetsListDatapoints);
    tool(datasetsCreateDatapoint_js_1.tool$datasetsCreateDatapoint);
    tool(datasetsRetrieveDatapoint_js_1.tool$datasetsRetrieveDatapoint);
    tool(datasetsUpdateDatapoint_js_1.tool$datasetsUpdateDatapoint);
    tool(datasetsDeleteDatapoint_js_1.tool$datasetsDeleteDatapoint);
    tool(datasetsClear_js_1.tool$datasetsClear);
    tool(deploymentsMetricsCreate_js_1.tool$deploymentsMetricsCreate);
    tool(agentsResponsesCreate_js_1.tool$agentsResponsesCreate);
    return server;
}
//# sourceMappingURL=server.js.map