Skip to content

Commit 71ddda1

Browse files
authored
use set for allowed domains (#9)
1 parent bb3328b commit 71ddda1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcpdoc/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def list_doc_sources() -> str:
8181
return content
8282

8383
# Parse the domain names in the llms.txt URLs
84-
allowed_domains = [extract_domain(entry["llms_txt"]) for entry in doc_source]
84+
allowed_domains = set(extract_domain(entry["llms_txt"]) for entry in doc_source)
8585

8686
@server.tool()
8787
async def fetch_docs(url: str) -> str:

0 commit comments

Comments
 (0)