Forest Admin - API reference
    Preparing search index...

    Forest Admin MCP Server

    This server provides HTTP REST API access to Forest Admin operations with OAuth authentication support.

    Index

    Constructors

    Properties

    expressApp?: Express
    forestAppUrl: string
    forestServerClient: ForestServerClient
    forestServerUrl: string
    httpServer?: Server

    Methods

    • Build and return the Express app without starting a standalone server. Useful for embedding the MCP server into another application.

      Parameters

      • OptionalbaseUrl: URL

        Optional base URL override. If not provided, will use the environmentApiEndpoint from Forest Admin API.

      Returns Promise<Express>

      The configured Express application

    • Build and return an HTTP callback that can be used as middleware. The callback will handle MCP-related routes (/.well-known/, /oauth/, /mcp) and call next() for other routes.

      Parameters

      • OptionalbaseUrl: URL

        Optional base URL override. If not provided, will use the environmentApiEndpoint from Forest Admin API.

      Returns Promise<HttpCallback>

      An HTTP callback function