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: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,20 @@ curl -LsSf https://astral.sh/uv/install.sh | sh
20
20
#### Choose an `llms.txt` file to use.
21
21
* For example, [here's](https://langchain-ai.github.io/langgraph/llms.txt) the LangGraph `llms.txt` file.
22
22
23
+
> **Note: Security and Domain Access Control**
24
+
>
25
+
> For security reasons, mcpdoc implements strict domain access controls:
26
+
>
27
+
> 1.**Remote llms.txt files**: When you specify a remote llms.txt URL (e.g., `https://langchain-ai.github.io/langgraph/llms.txt`), mcpdoc automatically adds only that specific domain (`langchain-ai.github.io`) to the allowed domains list. This means the tool can only fetch documentation from URLs on that domain.
28
+
>
29
+
> 2.**Local llms.txt files**: When using a local file, NO domains are automatically added to the allowed list. You MUST explicitly specify which domains to allow using the `--allowed-domains` parameter.
30
+
>
31
+
> 3.**Adding additional domains**: To allow fetching from domains beyond those automatically included:
32
+
> - Use `--allowed-domains domain1.com domain2.com` to add specific domains
33
+
> - Use `--allowed-domains '*'` to allow all domains (use with caution)
34
+
>
35
+
> This security measure prevents unauthorized access to domains not explicitly approved by the user, ensuring that documentation can only be retrieved from trusted sources.
36
+
23
37
#### (Optional) Test the MCP server locally with your `llms.txt` file of choice:
0 commit comments