Optionaloptions: ForestMCPServerOptionsOptionalexpressOptionalhttpBuild and return the Express app without starting a standalone server. Useful for embedding the MCP server into another application.
OptionalbaseUrl: URLOptional base URL override. If not provided, will use the environmentApiEndpoint from Forest Admin API.
The configured Express application
Build and return an HTTP callback that can be used as middleware.
The callback handles the MCP OAuth, .well-known and protocol routes (scoped under
basePath when set) and calls next() for every other route.
OptionalbaseUrl: URLOptional base URL override. If not provided, will use the environmentApiEndpoint from Forest Admin API.
An HTTP callback function
Run the MCP server as a standalone HTTP server.
Forest Admin MCP Server
This server provides HTTP REST API access to Forest Admin operations with OAuth authentication support.