Security and Domain Access Control in mcpdoc
mainTo prevent unauthorized access to domains, mcpdoc implements strict domain access controls:
- Remote
llms.txtfiles: When you specify a remote URL (e.g.,https://langchain-ai.github.io/langgraph/llms.txt),mcpdocautomatically adds only that specific domain (langchain-ai.github.io) to the allowed domains list. - Local
llms.txtfiles: When using a local file, NO domains are automatically added. You MUST explicitly specify allowed domains using the--allowed-domainsparameter. - Adding additional domains:
- Use
--allowed-domains domain1.com domain2.comto add specific domains. - Use
--allowed-domains '*'to allow all domains (use with caution).
- Use