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

    Class McpConfig

    Object-oriented interface for working with MCP Configs.

    The McpConfig class provides a high-level, object-oriented API for managing MCP configurations. MCP configs define how to connect to upstream MCP (Model Context Protocol) servers, specifying the target endpoint and which tools are allowed. They can be used with devboxes to securely connect to MCP servers.

    import { RunloopSDK } from '@runloop/api-client-ts';

    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

    Accessors

    Methods

    Accessors

    Methods

    • Get the complete MCP config data from the API.

      Parameters

      • Optionaloptions: RequestOptions<unknown>

        Request options

      Returns Promise<Runloop.McpConfigView>

      The MCP config data

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