From 71ddda1d099fb35668b76d6f2d7629899b8ece05 Mon Sep 17 00:00:00 2001 From: Vadym Barda Date: Mon, 24 Mar 2025 10:08:42 -0400 Subject: [PATCH] use set for allowed domains (#9) --- mcpdoc/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcpdoc/main.py b/mcpdoc/main.py index fc7def8..34141a9 100644 --- a/mcpdoc/main.py +++ b/mcpdoc/main.py @@ -81,7 +81,7 @@ def create_server( return content # Parse the domain names in the llms.txt URLs - allowed_domains = [extract_domain(entry["llms_txt"]) for entry in doc_source] + allowed_domains = set(extract_domain(entry["llms_txt"]) for entry in doc_source) @server.tool() async def fetch_docs(url: str) -> str: