Skip to main content

Parameters

See plugin common configurations for configuration options available to all plugins.

  • transport

    string


    required


    default: sse


    vaild vaule:

    sse or streamable_http


    Transport method for client-server communication. The streamable_http method is recommended for production deployments, as it supports stateless communication suitable for multiple gateway instances. The sse method is stateful and may exhibit unexpected behavior when multiple gateways are deployed.

  • openapi_url

    string


    required


    URL of the OpenAPI specification document that defines the API structure to be exposed through MCP.

    Note that the plugin supports only OpenAPI Specification (OAS) version 3. OpenAPI v2 (Swagger) is not supported.

    Additionally, the plugin has a known parsing issue when handling oneOf schemas in OpenAPI v3 document retrieved from openapi_url. In this case, the MCP client will be stuck at tool loading.

  • base_url

    string


    required


    Base URL of the API service where requests will be forwarded. Support built-in variables in values (available from API7 Enterprise version 3.8.19), for example, https://${http_baseurl}.swagger.io.

  • headers

    object


    Headers to include in requests to the upstream service. Support built-in variables in values, for example, $arg_username-$http_apikey.

  • flatten_parameters

    boolean


    default: false


    Whether to flatten query and path parameters in the tool schema.

    If set to false, query parameters are nested under queryParameters and path parameters are nested under pathParameters. If set to true, all query and path parameters are placed directly under properties in the tool schema.

    Setting the parameter to true simplifies AI model interaction by reducing schema complexity. Keep the parameter at false when query and path parameters share the same names, to avoid conflicts.

API7.ai Logo

The digital world is connected by APIs,
API7.ai exists to make APIs more efficient, reliable, and secure.

Sign up for API7 newsletter

Product

API7 Gateway

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2026. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the Apache Software Foundation