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 will handle MCP-related routes (/.well-known/, /oauth/, /mcp) and call next() for other routes.
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.