Skip to content

Commit 119a5a9

Browse files
committed
Update README
1 parent 29cd3b0 commit 119a5a9

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,19 @@ curl -LsSf https://astral.sh/uv/install.sh | sh
2020
#### Choose an `llms.txt` file to use.
2121
* For example, [here's](https://langchain-ai.github.io/langgraph/llms.txt) the LangGraph `llms.txt` file.
2222

23-
The domains list gets populated with the sources of your llms.txt files, but since you're
24-
using a local file, no domains are automatically added to the allowed list.
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.
2536
2637
#### (Optional) Test the MCP server locally with your `llms.txt` file of choice:
2738
```bash

0 commit comments

Comments
 (0)