@runloop/api-client - v1.18.1
    Preparing search index...

    Class McpConfigOps

    MCP Config SDK interface for managing MCP configurations.

    The McpConfigOps class provides a high-level abstraction for managing MCP configurations, which define how to connect to upstream MCP (Model Context Protocol) servers. MCP configs specify the target endpoint and which tools are allowed.

    This interface is accessed via RunloopSDK.mcpConfig. You should construct a RunloopSDK instance and use it from there:

    const runloop = new RunloopSDK();
    const mcpConfig = await runloop.mcpConfig.create({
    name: 'my-mcp-server',
    endpoint: 'https://mcp.example.com',
    allowed_tools: ['*'],
    });

    const info = await mcpConfig.getInfo();
    console.log(`MCP Config: ${info.name}`);
    Index

    Methods

    • Create a new MCP config.

      Parameters

      Returns Promise<RunloopSDK.McpConfig>

      A McpConfig instance.

      const runloop = new RunloopSDK();
      const mcpConfig = await runloop.mcpConfig.create({
      name: 'my-mcp-server',
      endpoint: 'https://mcp.example.com',
      allowed_tools: ['*'],
      description: 'MCP server for my tools',
      });
    • Get an MCP config object by its ID.

      Parameters

      • id: string

        The ID of the MCP config.

      Returns RunloopSDK.McpConfig

      A McpConfig instance.

      const runloop = new RunloopSDK();
      const mcpConfig = runloop.mcpConfig.fromId('mcp_1234567890');
      const info = await mcpConfig.getInfo();
      console.log(`MCP Config name: ${info.name}`);