Forest Admin - API reference
    Preparing search index...

    Interface ForestMCPServerOptions

    Options for configuring the Forest Admin MCP Server

    interface ForestMCPServerOptions {
        authSecret?: string;
        basePath?: string;
        enabledTools?: ToolName[];
        envSecret?: string;
        forestAppUrl?: string;
        forestServerClient?: ForestServerClient;
        forestServerUrl?: string;
        logger?: Logger;
    }
    Index

    Properties

    authSecret?: string

    Forest Admin authentication secret

    basePath?: string

    Opt-in path prefix under which the MCP protocol and OAuth routes are mounted, e.g. '/ai'. The .well-known discovery documents stay at the origin root (per RFC 8414/9728) but are served at prefix-suffixed paths. Defaults to the origin root. Use it to avoid colliding with a host app's own OAuth routes when embedded. Requires the agent to be served at the domain root.

    enabledTools?: ToolName[]

    List of tool names to enable (allowlist). Only these tools will be exposed. New tools in future releases will NOT be auto-enabled.

    envSecret?: string

    Forest Admin environment secret

    forestAppUrl?: string

    Forest Admin app URL (for OAuth redirects)

    forestServerClient?: ForestServerClient

    Optional Forest server client for dependency injection (from agent integration)

    forestServerUrl?: string

    Forest Admin server URL

    logger?: Logger

    Optional logger function. Defaults to console logging.