You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/products/docs/pages/ai/mcp-server.mdx
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,4 +42,17 @@ To connect to your MCP server:
42
42
3. Authenticate if your documentation requires authentication
43
43
4. Start asking questions about your product directly in the AI client
44
44
</Accordion>
45
-
</AccordionGroup>
45
+
</AccordionGroup>
46
+
47
+
## Direct API access for AI agents
48
+
49
+
AI agents can access your documentation, including authenticated documentation, directly via HTTP. Fern serves content as clean Markdown for token efficiency.
50
+
51
+
For authenticated sites, agents obtain a JWT via [`/api/fern-docs/get-jwt`](/learn/docs/ai-features/mcp-server/api-reference/get-jwt) with a Fern API key to access the protected documentation content and search functionality.
Copy file name to clipboardExpand all lines: fern/products/docs/pages/changelog/2025-11-05.mdx
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,20 @@
1
+
## HTTP API access for AI agents
2
+
3
+
AI agents can now access authenticated documentation directly via HTTP API. This enables custom integrations and AI tools to retrieve protected content programmatically.
4
+
5
+
Agents obtain a JWT via the `/api/fern-docs/get-jwt` endpoint with a Fern API key, then use it to access protected documentation:
6
+
7
+
```bash
8
+
curl https://docs.example.com/platform/overview \
9
+
-H 'Accept: text/plain' \
10
+
-H 'x-fern-host: docs.example.com' \
11
+
-H 'FERN_TOKEN: your-jwt-here'
12
+
```
13
+
14
+
Content is served as clean Markdown for token-efficient processing.
15
+
16
+
Learn more in the [MCP server documentation](/learn/docs/ai-features/mcp-server).
17
+
1
18
## Folder-based navigation
2
19
3
20
Auto-generate navigation from a folder of markdown files using the new `folder` configuration. Instead of manually listing each page in `docs.yml`, point to a folder. Fern discovers all `.md` and `.mdx` files and adds them to the navigation.
0 commit comments