Skip to content

docs(mcp-server): document the OAuth client allowlist - #22

Merged
hercemer42 merged 1 commit into
mainfrom
feature/prd-868-document-the-mcp-oauth-client-allowlist-in-the-public
Aug 6, 2026
Merged

docs(mcp-server): document the OAuth client allowlist#22
hercemer42 merged 1 commit into
mainfrom
feature/prd-868-document-the-mcp-oauth-client-allowlist-in-the-public

Conversation

@hercemer42

@hercemer42 hercemer42 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

What

Documents the security-relevant mountAiMcpServer options in the public developer docs (PRD-868):

  • product/embed/mcp-server.mdx — new Restrict which AI clients can connect section (mounted + standalone examples, redirect-URI domain/subdomain matching, custom-scheme rejection, invalid_client semantics, no-loopback-exemption warning), a FOREST_MCP_ALLOWED_OAUTH_CLIENTS row in the standalone env-var table, and a Security-section bullet.
  • reference/agent-api/nodejs.mdxallowedOAuthClients and tokenTtl added to the mountAiMcpServer signature and options table (with minimum versions and links to the product page). The trailing env-var paragraph now lists all four standalone variables and states that a mounted server does not read them — it never did (env parsing lives only in the standalone CLI), fixing a pre-existing inaccuracy.

Behavior semantics sourced from packages/mcp-server/README.md (Restrict OAuth Clients), the source of truth per the ticket.

⚠️ Do not merge before the agent-nodejs release

allowedOAuthClients ships with agent-nodejs #1797 (PRD-861), still open. The documented minimums — @forestadmin/agent ≥ 1.92.0 / @forestadmin/mcp-server ≥ 1.21.0 — are predicted from lerna's feat minor-bump and must be confirmed against the actual release. Merging earlier would document an option that npm-latest silently ignores.

Checks

  • mint broken-links: no broken links found (validates the new cross-page anchors)
  • No other tooling exists in this repo (no package.json)

🤖 Generated with Claude Code

Note

Document the allowedOAuthClients OAuth client allowlist for the MCP server

  • Adds FOREST_MCP_ALLOWED_OAUTH_CLIENTS to the configuration table in mcp-server.mdx and adds a new section explaining allowlist matching rules, rejection behavior (invalid_client), and token handling.
  • Extends the agent.mountAiMcpServer options table in nodejs.mdx with allowedOAuthClients and tokenTtl, and clarifies which environment variables apply only to the standalone server.
  • Includes a warning that native desktop clients using localhost redirect URIs are rejected when the allowlist is set.

Macroscope summarized 4dc717d.

The allowedOAuthClients option (agent-nodejs #1797) only existed in the
package README; administrators evaluating the MCP server's security
posture look at docs.forest.app first. Also closes the older reference
gap for tokenTtl and scopes the reference env-var paragraph to the
standalone CLI, the only place those variables are read.

Refs: PRD-868

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
forest 🟢 Ready View Preview Aug 4, 2026, 3:40 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@linear-code

linear-code Bot commented Aug 4, 2026

Copy link
Copy Markdown

PRD-868

@hercemer42
hercemer42 merged commit 33f65bd into main Aug 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants